function readCookie(name){var eq=name+"=";var ca=document.cookie.split(';');if(!ca.length)return null;for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(eq)==0)return unescape(c.substring(eq.length,c.length));}
return null;}
function includeInCookie(property_id,edir_path,type){if(!isNaN(property_id)){var name="bookmark"+type;var d=new Date();if(!edir_path)edir_path="/";d.setTime(d.getTime()+(15*24*60*60*1000));var expires='; expires='+d.toGMTString();var bookmark=readCookie("bookmark"+type);if(!bookmark)bookmark="'"+property_id+"'";else{if(bookmark.indexOf("'"+property_id+"'")==-1){bookmark=bookmark+","+"'"+property_id+"'";}}
document.cookie=name+'='+escape(bookmark)+expires+'; path='+edir_path;alert("Your baby name selection has been successfully added to your Quick List. To view, edit or print your list, click on the link My Baby Names.");}}
function removeFromCookie(property_id,edir_path,type){var name="bookmark"+type;var d=new Date();if(!edir_path)edir_path="/";d.setTime(d.getTime()+(15*24*60*60*1000));var expires='; expires='+d.toGMTString();if(isNaN(property_id)){if(property_id=="all"){var bookmark="";document.cookie=name+'='+escape(bookmark)+expires+'; path='+edir_path;}}else{var bookmark=readCookie("bookmark"+type);if(bookmark.length>0){if(bookmark.indexOf("'"+property_id+"'")>-1){finalvar=bookmark.indexOf("'"+property_id+"'")+property_id.length+3;var aux="";aux=bookmark.substr(0,bookmark.indexOf("'"+property_id+"'"));aux+=bookmark.substr(finalvar);bookmark=aux;}}
len=bookmark.length;len--;if(bookmark.lastIndexOf(",")==len){bookmark=bookmark.substr(0,len);}
document.cookie=name+'='+escape(bookmark)+expires+'; path='+edir_path;alert("Baby name successfully removed from quick list.");}
window.location.reload();}
(function($)
{$.fn.easySlider=function(options)
{var defaults={prevNextUp:false,prevId:'prevBtn',prevText:'Previous',nextId:'nextBtn',nextText:'Next',controlsShow:true,controlsBefore:'',controlsAfter:'',controlsFade:true,insertAfter:true,firstId:'firstBtn',firstText:'First',firstShow:false,lastId:'lastBtn',lastText:'Last',lastShow:false,vertical:false,speed:800,ease:'swing',auto:true,pause:5000,continuous:false,prevNext:true,numeric:false,numericId:'controls'};var options=$.extend(defaults,options);this.each(function()
{var obj=$(this);var ul=obj.children("ul");var li=ul.children("li");var s=li.length;var w=obj.width();var h=obj.height();var t=0;var ts=s-1;var clickable=true;obj.css("overflow","hidden");li.each(function(){if(options.vertical)$(this).height(h);else $(this).width(w);});li.css('float','left');if(options.vertical)ul.height(s*w);else ul.width(s*h);if(options.continuous)
{if(options.vertical)
{ul.prepend(li.filter(":last-child").clone().css("margin-top","-"+h+"px"));ul.append(li.filter(":nth-child(2)").clone());ul.height((s+1)*h);}else{ul.prepend(li.filter(":last-child").clone().css("margin-left","-"+w+"px"));ul.append(li.filter(":nth-child(2)").clone());ul.width((s+1)*w);}};if(options.controlsShow)
{var html=options.controlsBefore;if(options.numeric){html+='<ol id="'+options.numericId+'"><span class="corner-3 bottom-left"></span><span class="corner-3 bottom-right"></span></ol>';}
if(options.firstShow){html+='<span id="'+options.firstId+'"><a href="#">'+options.firstText+'</a></span>';}
if(options.prevNext&&options.prevNextUp){html+='<span id="'+options.prevId+'"><a class="prev-button" href="#">'+options.prevText+'</a></span>';html+='<span id="'+options.nextId+'"><a class="next-button" href="#">'+options.nextText+'</a></span>';}
if(options.lastShow){html+='<span id="'+options.lastId+'"><a href="#">'+options.lastText+'</a></span>';}
html+=options.controlsAfter;if(options.insertAfter)$(obj).after(html);else $(obj).before(html);};if(options.numeric)
{for(var i=0;i<s;i++)
{$(document.createElement("li")).attr('id',options.numericId+(i+1)).html('<a rel="'+i+'" href="#" class="tab"><span>'+customTab[i]+'</span></a>').appendTo($("#"+options.numericId)).click(function(){animate($("a",$(this)).attr('rel'),true);return false;});};}
if(options.prevNext)
{$("a","#"+options.nextId).click(function(){animate("next",true);return false;});$("a","#"+options.prevId).click(function(){animate("prev",true);return false;});$("a","#"+options.firstId).click(function(){animate("first",true);return false;});$("a","#"+options.lastId).click(function(){animate("last",true);return false;});};function setCurrent(i)
{i=parseInt(i)+1;$("li","#"+options.numericId).removeClass("current");$("li#"+options.numericId+i).addClass("current");};function adjust()
{if(t>ts)t=0;if(t<0)t=ts;if(!options.vertical){ul.css("margin-left",(t*w*-1));}else{ul.css("margin-top",(t*h*-1));}
clickable=true;if(options.numeric)setCurrent(t);};function animate(dir,clicked)
{if(clickable)
{clickable=false;var ot=t;switch(dir)
{case"next":t=(ot>=ts)?(options.continuous?t+1:ts):t+1;break;case"prev":t=(t<=0)?(options.continuous?t-1:0):t-1;break;case"first":t=0;break;case"last":t=ts;break;default:t=parseInt(dir);break;};var diff=Math.abs(ot-t);var speed=diff*options.speed;if(!options.vertical){p=(t*w*-1);ul.animate({marginLeft:p},{queue:false,duration:speed,easing:options.ease,complete:adjust});}else{p=(t*h*-1);ul.animate({marginTop:p},{queue:false,duration:speed,easing:options.ease,complete:adjust});};if(!options.continuous&&options.controlsFade)
{if(t==0){$("a","#"+options.prevId).fadeOut('slow');$("a","#"+options.firstId).fadeOut('slow');}else if(t==ts){$("a","#"+options.nextId).fadeOut('slow');$("a","#"+options.lastId).fadeOut('slow');}else{$("a","#"+options.prevId).fadeIn('slow');$("a","#"+options.firstId).fadeIn('slow');$("a","#"+options.nextId).fadeIn('slow');$("a","#"+options.lastId).fadeIn('slow');};};if(clicked)clearTimeout(timeout);if(options.auto&&dir=="next"&&!clicked){;timeout=setTimeout(function(){animate("next",false);},diff*options.speed+options.pause);};};};var timeout;if(options.auto){;timeout=setTimeout(function(){animate("next",false);},options.pause);};if(options.numeric)setCurrent(0);if(!options.continuous&&options.controlsFade){$("a","#"+options.prevId).hide();$("a","#"+options.firstId).hide();};});};})(jQuery);;(function($){var ver='2.72';if($.support==undefined){$.support={opacity:!($.browser.msie)};}
function debug(s){if($.fn.cycle.debug)
log(s);}
function log(){if(window.console&&window.console.log)
window.console.log('[cycle] '+Array.prototype.join.call(arguments,' '));};$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!='stop'){if(!$.isReady&&o.s){log('DOM not ready, queuing slideshow');$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}
log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}
return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false)
return;if(this.cycleTimeout)
clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log('terminating; too few slides: '+els.length);return;}
var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false)
return;var startTime=opts2.continuous?10:getTimeout(opts2.currSlide,opts2.nextSlide,opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10)
startTime=10;debug('first timeout: '+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts2.rev)},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined)
cont.cycleStop=0;if(options===undefined||options===null)
options={};if(options.constructor==String){switch(options){case'stop':cont.cycleStop++;if(cont.cycleTimeout)
clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;$(cont).removeData('cycle.opts');return false;case'pause':cont.cyclePause=1;return false;case'resume':cont.cyclePause=0;if(arg2===true){options=$(cont).data('cycle.opts');if(!options){log('options not found, can not resume');return false;}
if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}
go(options.elements,options,1,1);}
return false;case'prev':case'next':var opts=$(cont).data('cycle.opts');if(!opts){log('options not found, "prev/next" ignored');return false;}
$.fn.cycle[options](opts);return false;default:options={fx:options};};return options;}
else if(options.constructor==Number){var num=options;options=$(cont).data('cycle.opts');if(!options){log('options not found, can not advance slide');return false;}
if(num<0||num>=options.elements.length){log('invalid slide index: '+num);return false;}
options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}
if(typeof arg2=='string')
options.oneTimeFx=arg2;go(options.elements,options,1,num>=options.currSlide);return false;}
return options;};function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute('filter');}
catch(smother){}}};function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop)
opts.countdown=opts.autostopCount||els.length;var cont=$cont[0];$cont.data('cycle.opts',opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype)
opts.after.push(function(){removeFilter(this,opts);});if(opts.continuous)
opts.after.push(function(){go(els,opts,0,!opts.rev);});saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg)
clearTypeFix($slides);if($cont.css('position')=='static')
$cont.css('position','relative');if(opts.width)
$cont.width(opts.width);if(opts.height&&opts.height!='auto')
$cont.height(opts.height);if(opts.startingSlide)
opts.startingSlide=parseInt(opts.startingSlide);if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++)
opts.randomMap.push(i);opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=0;opts.startingSlide=opts.randomMap[0];}
else if(opts.startingSlide>=els.length)
opts.startingSlide=0;opts.currSlide=opts.startingSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:'absolute',top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css('z-index',z)});$(els[first]).css('opacity',1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width)
$slides.width(opts.width);if(opts.fit&&opts.height&&opts.height!='auto')
$slides.height(opts.height);var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w)w=e.offsetWidth;if(!h)h=e.offsetHeight;maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}
if(maxw>0&&maxh>0)
$cont.css({width:maxw+'px',height:maxh+'px'});}
if(opts.pause)
$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});if(supportMultiTransitions(opts)===false)
return false;var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:$el.height();this.cycleW=(opts.fit&&opts.width)?opts.width:$el.width();if($el.is('img')){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts,' - img slide not loaded, requeuing slideshow: ',this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options)},opts.requeueTimeout);requeue=true;return false;}
else{log('could not determine size of image: '+this.src,this.cycleW,this.cycleH);}}}
return true;});if(requeue)
return false;opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(':eq('+first+')').css(opts.cssBefore);if(opts.cssFirst)
$($slides[first]).css(opts.cssFirst);if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String)
opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);if(!opts.sync)
opts.speed=opts.speed/2;while((opts.timeout-opts.speed)<250)
opts.timeout+=opts.speed;}
if(opts.easing)
opts.easeIn=opts.easeOut=opts.easing;if(!opts.speedIn)
opts.speedIn=opts.speed;if(!opts.speedOut)
opts.speedOut=opts.speed;opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){opts.nextSlide=opts.currSlide;if(++opts.randomIndex==els.length)
opts.randomIndex=0;opts.nextSlide=opts.randomMap[opts.randomIndex];}
else
opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init))
init($cont,$slides,opts);else if(opts.fx!='custom'&&!opts.multiFx){log('unknown transition: '+opts.fx,'; slideshow terminating');return false;}}
var e0=$slides[first];if(opts.before.length)
opts.before[0].apply(e0,[e0,e0,opts,true]);if(opts.after.length>1)
opts.after[1].apply(e0,[e0,e0,opts,true]);if(opts.next)
$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1)});if(opts.prev)
$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1)});if(opts.pager)
buildPager(els,opts);exposeAddSlide(opts,els);return opts;};function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});};function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(',')>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,'').split(',');for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log('discarding unknown transition: ',fx);opts.fxs.splice(i,1);i--;}}
if(!opts.fxs.length){log('No valid transitions named; slideshow terminating.');return false;}}
else if(opts.fx=='all'){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx))
opts.fxs.push(p);}}
if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}
debug('randomized fx sequence: ',opts.fxs);}
return true;};function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount)
opts.countdown++;els[prepend?'unshift':'push'](s);if(opts.els)
opts.els[prepend?'unshift':'push'](s);opts.slideCount=els.length;$s.css('position','absolute');$s[prepend?'prependTo':'appendTo'](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}
if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg)
clearTypeFix($s);if(opts.fit&&opts.width)
$s.width(opts.width);if(opts.fit&&opts.height&&opts.height!='auto')
$slides.height(opts.height);s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager)
$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);if($.isFunction(opts.onAddSlide))
opts.onAddSlide($s);else
$s.hide();};}
$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init))
init(opts.$cont,$(opts.elements),opts);};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){$(els).stop(true,true);opts.busy=false;}
if(opts.busy)
return;var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual)
return;if(!manual&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end)
opts.end(opts);return;}
if(manual||!p.cyclePause){var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length)
opts.lastFx=0;fx=opts.fxs[opts.lastFx];opts.currFx=fx;}
if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}
$.fn.cycle.resetState(opts,fx);if(opts.before.length)
$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount)return;o.apply(next,[curr,next,opts,fwd]);});var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount)return;o.apply(next,[curr,next,opts,fwd]);});};if(opts.nextSlide!=opts.currSlide){opts.busy=1;if(opts.fxFn)
opts.fxFn(curr,next,opts,after,fwd);else if($.isFunction($.fn.cycle[opts.fx]))
$.fn.cycle[opts.fx](curr,next,opts,after);else
$.fn.cycle.custom(curr,next,opts,after,manual&&opts.fastOnEvent);}
opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length)
opts.randomIndex=0;opts.nextSlide=opts.randomMap[opts.randomIndex];}
else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}
if(opts.pager)
$.fn.cycle.updateActivePagerLink(opts.pager,opts.currSlide);}
var ms=0;if(opts.timeout&&!opts.continuous)
ms=getTimeout(curr,next,opts,fwd);else if(opts.continuous&&p.cyclePause)
ms=10;if(ms>0)
p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev)},ms);};$.fn.cycle.updateActivePagerLink=function(pager,currSlide){$(pager).find('a').removeClass('activeSlide').filter('a:eq('+currSlide+')').addClass('activeSlide');};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);while((t-opts.speed)<250)
t+=opts.speed;debug('calculated timeout: '+t+'; speed: '+opts.speed);if(t!==false)
return t;}
return opts.timeout;};$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}
if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2)
opts.randomIndex=els.length-2;else if(opts.randomIndex==-1)
opts.randomIndex=els.length-1;opts.nextSlide=opts.randomMap[opts.randomIndex];}
else if(opts.random){if(++opts.randomIndex==els.length)
opts.randomIndex=0;opts.nextSlide=opts.randomMap[opts.randomIndex];}
else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap)return false;opts.nextSlide=els.length-1;}
else if(opts.nextSlide>=els.length){if(opts.nowrap)return false;opts.nextSlide=0;}}
if($.isFunction(opts.prevNextClick))
opts.prevNextClick(val>0,opts.nextSlide,els[opts.nextSlide]);go(els,opts,1,val>=0);return false;};function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});$.fn.cycle.updateActivePagerLink(opts.pager,opts.startingSlide);};$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder))
a=opts.pagerAnchorBuilder(i,el);else
a='<a href="#">'+(i+1)+'</a>';if(!a)
return;var $a=$(a);if($a.parents('body').length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone);});$a=$(arr);}
else{$a.appendTo($p);}}
$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}
if($.isFunction(opts.pagerClick))
opts.pagerClick(opts.nextSlide,els[opts.nextSlide]);go(els,opts,1,opts.currSlide<i);return false;});if(opts.pagerEvent!='click')
$a.click(function(){return false;});if(opts.pauseOnPagerHover)
$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd)
hops=c>l?c-l:opts.slideCount-l;else
hops=c<l?l-c:l+opts.slideCount-c;return hops;};function clearTypeFix($slides){function hex(s){s=parseInt(s).toString(16);return s.length<2?'0'+s:s;};function getBg(e){for(;e&&e.nodeName.toLowerCase()!='html';e=e.parentNode){var v=$.css(e,'background-color');if(v.indexOf('rgb')>=0){var rgb=v.match(/\d+/g);return'#'+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}
if(v&&v!='transparent')
return v;}
return'#ffffff';};$slides.each(function(){$(this).css('background-color',getBg(this));});};$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display='block';if(w!==false&&next.cycleW>0)
opts.cssBefore.width=next.cycleW;if(h!==false&&next.cycleH>0)
opts.cssBefore.height=next.cycleH;opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display='none';$(curr).css('zIndex',opts.slideCount+(rev===true?1:0));$(next).css('zIndex',opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=='number')
speedIn=speedOut=speedOverride;else
speedIn=speedOut=1;easeIn=easeOut=null;}
var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb)};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter)$l.css(opts.cssAfter);if(!opts.sync)fn();});if(opts.sync)fn();};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(':eq('+opts.currSlide+')').css('opacity',0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:'fade',timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:'click',pager:null,pagerClick:null,pagerEvent:'click',pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:'auto',startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250};})(jQuery);(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};}
$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css('overflow','hidden').width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:'show'};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:'show'};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css('overflow','visible').width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}
opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++)
opts.els.push($slides[i]);for(i=0;i<opts.currSlide;i++)
opts.els.push(opts.els.shift());opts.fxFn=function(curr,next,opts,cb,fwd){var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++)
fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());if(fwd){for(var i=0,len=opts.els.length;i<len;i++)
$(opts.els[i]).css('z-index',len-i+count);}
else{var z=$(curr).css('z-index');$el.css('z-index',parseInt(z)+1+count);}
$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb)cb();});});};opts.cssBefore={display:'block',opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,height:0};opts.animIn={top:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,top:0,height:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore={top:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={top:0,left:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};opts.animOut={width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2};});opts.cssFirst={top:0,left:0};opts.cssBefore={width:0,height:0};};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};});opts.cssBefore={width:0,height:0};opts.animOut={opacity:0};};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css('overflow','hidden').width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css('overflow','hidden').height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css('overflow','hidden').height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:w};opts.animIn={top:0,left:0};opts.animOut={top:h,left:w};};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:0};});opts.cssBefore={width:0,top:0};};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn={top:0,height:this.cycleH};opts.animOut={top:0};});opts.cssBefore={height:0,left:0};};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:curr.cycleW/2,width:0};});opts.cssBefore={top:0,width:0};};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,height:next.cycleH};opts.animOut={top:curr.cycleH/2,height:0};});opts.cssBefore={left:0,height:0};};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||'left';var w=$cont.css('overflow','hidden').width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=='right')
opts.cssBefore.left=-w;else if(d=='up')
opts.cssBefore.top=h;else if(d=='down')
opts.cssBefore.top=-h;else
opts.cssBefore.left=w;});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||'left';var w=$cont.css('overflow','hidden').width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=='right')
opts.animOut.left=w;else if(d=='up')
opts.animOut.top=-h;else if(d=='down')
opts.animOut.top=h;else
opts.animOut.left=-w;});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css('overflow','visible').width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top)
opts.animOut={left:w*2,top:-h/2,opacity:0};else
opts.animOut.opacity=0;});opts.cssBefore={left:0,top:0};opts.animIn={left:0};};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css('overflow','hidden').width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip))
clip='rect(0px 0px '+h+'px 0px)';else if(/r2l/.test(opts.clip))
clip='rect(0px '+w+'px '+h+'px '+w+'px)';else if(/t2b/.test(opts.clip))
clip='rect(0px '+w+'px 0px 0px)';else if(/b2t/.test(opts.clip))
clip='rect('+h+'px '+w+'px '+h+'px 0px)';else if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip='rect('+top+'px '+left+'px '+top+'px '+left+'px)';}}
opts.cssBefore.clip=opts.cssBefore.clip||clip||'rect(0px 0px 0px 0px)';var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next)return;var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display='block';var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)'});(step++<=count)?setTimeout(f,13):$curr.css('display','none');})();});opts.cssBefore={display:'block',opacity:1,top:0,left:0};opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);
var timeout=500;var closetimer=0;var ddmenuitem=0;function jsddm_open()
{jsddm_canceltimer();jsddm_close();ddmenuitem=$(this).find('ul').css('visibility','visible');}
function jsddm_close()
{if(ddmenuitem)ddmenuitem.css('visibility','hidden');}
function jsddm_timer()
{closetimer=window.setTimeout(jsddm_close,timeout);}
function jsddm_canceltimer()
{if(closetimer)
{window.clearTimeout(closetimer);closetimer=null;}}
$(document).ready(function()
{$('#dropdown > li').bind('mouseover',jsddm_open)
$('#dropdown > li').bind('mouseout',jsddm_timer)});document.onclick=jsddm_close;var smenuitem=0;function jssm_open()
{if(smenuitem){jssm_close();}else{jssm_canceltimer();jssm_close();$('#search-arrow').attr('class','search-arrow-expanded');smenuitem=$('.drop-list').css('visibility','visible');}
return false;}
function jssm_close()
{if(smenuitem){smenuitem.css('visibility','hidden');smenuitem=0;$('#search-arrow').attr('class','search-arrow');}}
function jssm_timer()
{closetimer=window.setTimeout(jssm_close,timeout);}
function jssm_canceltimer()
{if(closetimer)
{window.clearTimeout(closetimer);closetimer=null;}}
$(document).ready(function()
{$('#search-arrow').unbind('click').bind('click',jssm_open);$('ul.drop-list > li > a').bind('click',function(){$('#search-results-on').html($(this).html());$('#sitesearch').val($(this).attr('href'));if($('#sitesearch').val()=='colorado.parenthood.com'){$('#sitesearch').parent('form').attr('action','http://colorado.parenthood.com/colorado_parent_search_results.php');}
jssm_close();return false;});if($('#sitesearch').val()=='colorado.parenthood.com'){$('#sitesearch').parent('form').attr('action','http://colorado.parenthood.com/colorado_parent_search_results.php');}});document.onclick=jssm_close;head.ready(function(){$("ul.letters li a").click(function(){$("ul.letters li").removeClass("active");$(this).parent("li").addClass("active");$(".letters-content").hide();var activeTab=$(this).attr("href");$(activeTab).fadeIn();return false;});$(".parenthood-search").find("a").click(function(){$(".parenthood-search").find("a").attr("class","");$("#sitesearch").val($(this).attr("title"));$(this).attr("class","active");return false;}); /* if($('.xBanners').lenght>0){ */$('.xBanners').cycle({fx:'fade',timeout:10000,speed:900,before:function(){$(this).find("#adFrame").height(103).width(504)}})/* } */});$(document).ready(function(){/*anchor.init()});*/anchor={init:function(){$("a.top").click(function(){elementClick=$(this).attr("href")
destination=$(elementClick).offset().top;$("html:not(:animated),body:not(:animated)").animate({scrollTop:destination},800);return false;})}}
anchor.init()});
var p7EPMi=false,p7EPMa=false,p7EPMctl=[],p7EPMmo,p7EPMmanim=false;function P7_EPMset(){var i,h,sh,hd,x,v;if(!document.getElementById){return;}
sh='.p7epm_cwrapper {overflow:hidden;display:none}\n';if(document.styleSheets){h='\n<st'+'yle type="text/css">\n'+sh+'\n</s'+'tyle>';document.write(h);}
else{h=document.createElement('style');h.type='text/css';h.appendChild(document.createTextNode(sh));hd=document.getElementsByTagName('head');hd[0].appendChild(h);}}
P7_EPMset();function P7_EPMaddLoad(){if(!document.getElementById){return;}
if(window.addEventListener){window.addEventListener("load",P7_initEPM,false);window.addEventListener("unload",P7_EPMff,false);}
else if(window.attachEvent){window.attachEvent("onload",P7_initEPM);}
else if(typeof window.onload=='function'){var p7vloadit=onload;window.onload=function(){p7vloadit();P7_initEPM();};}
else{window.onload=P7_initEPM;}
p7EPMi=true;}
function P7_EPMff(){return;}
function P7_opEPM(){var h='',hh,b,cn,sD,d,tB,cTD,mD;if(!document.getElementById){return;}
p7EPMctl[p7EPMctl.length]=arguments;if(!p7EPMi){P7_EPMaddLoad();}}
function P7_initEPM(){var i,j,x,tB,tD,tA,tg,cP,dh,tr,ob;for(i=0;i<p7EPMctl.length;i++){tB=document.getElementById(p7EPMctl[i][0]);if(tB){tB.p7opt=p7EPMctl[i];if(navigator.appVersion.indexOf("MSIE 5")>-1){tB.p7opt[2]=0;}
tB.p7trgs=[];tD=document.getElementById(tB.id.replace("EPM_","EPMt_"));if(tD){tA=tD.getElementsByTagName("A");tg='p7EPMtrg';x=0;for(j=0;j<tA.length;j++){if(tA[j].id&&tA[j].id.indexOf(tg)===0){tA[j].onclick=function(){return P7_EPMtrig(this);};if(tB.p7opt[4]==1){tA[j].onmouseover=function(){if(p7EPMmo){clearTimeout(p7EPMmo);}
p7EPMmanim=true;p7EPMmo=setTimeout("P7_EPMmtrg('"+this.id+"',1)",200);};tA[j].onmouseout=function(){if(p7EPMmo){clearTimeout(p7EPMmo);}
p7EPMmanim=false;};}
tB.p7trgs[x]=tA[j];x++;tA[j].p7state='closed';tA[j].p7EPMpr=tB.id;cP=document.getElementById(tA[j].id.replace("trg","w"));if(cP){tA[j].p7EPMw=cP.id;}
else{tA[j].p7EPMw=false;}}}
tr=tB.id.replace("_","trg")+"_"+tB.p7opt[1];ob=document.getElementById(tr);if(ob){P7_EPMopen(ob);}
P7_EPMurl(tB.id);if(tB.p7opt[5]>0){P7_EPMrotate(tB.id,tB.p7opt[5]);}}}}
p7EPMa=true;}
function P7_EPMmtrg(d){P7_EPMtrig(document.getElementById(d),1);}
function P7_EPMctl(tr,ac,bp){var tA=document.getElementById(tr);if(tA){if(ac=='open'){if(tA.p7state!='open'){P7_EPMtrig(tA,0,bp);}}
else if(ac=='close'){if(tA.p7state!='closed'){P7_EPMtrig(tA,0,bp);}}
else if(ac=='trigger'){P7_EPMtrig(tA,0,bp);}}
return false;}
function P7_EPMall(dv,ac){var i,j,mD,a;if(dv=='all'){for(i=0;i<p7EPMctl.length;i++){if(ac=='open'){mD=document.getElementById(p7EPMctl[i][0]);for(j=0;j<mD.p7trgs.length;j++){if(mD.p7trgs[j].p7state!='open'){P7_EPMopen(mD.p7trgs[j]);}}}
else{P7_EPMtoggle(p7EPMctl[i][0]);}}}
else{mD=document.getElementById(dv);if(mD){if(ac=='open'){for(j=0;j<mD.p7trgs.length;j++){if(mD.p7trgs[j].p7state!='open'){P7_EPMopen(mD.p7trgs[j]);}}}
else{P7_EPMtoggle(dv);}}}}
function P7_EPMtrig(a,mv,bp){var i,j,mD,tB,m=true;if(!p7EPMa&&!bp){return false;}
if(mv==1&&a.p7state=='open'){return false;}
if(!mv&&p7EPMmanim){return false;}
mD=document.getElementById(a.p7EPMpr);if(a.p7EPMw){m=false;}
if(mD.p7rtmr){clearTimeout(mD.p7rtmr);}
if(mD.p7opt[3]==1){P7_EPMtoggle(a.p7EPMpr,a);}
else if(mD.p7opt[3]==2){for(j=0;j<p7EPMctl.length;j++){P7_EPMtoggle(p7EPMctl[j][0],a);}}
if(a.p7state=='open'){if(mD.p7opt[7]==1&&mD.p7opt[3]>0){return m;}
else{P7_EPMclose(a);}}
else{P7_EPMopen(a);}
return m;}
function P7_EPMtoggle(dv,a){var i,mD;mD=document.getElementById(dv);if(mD){for(i=0;i<mD.p7trgs.length;i++){if(mD.p7trgs[i].p7state!='closed'){if(mD.p7trgs[i]!=a){P7_EPMclose(mD.p7trgs[i]);}}}}}
function P7_EPMopen(a){var i,mD,wD,cD,ch,th,ov=false,cl;a.p7state='open';cl=a.className;a.className=(cl&&cl.length>0)?cl+' p7epm_open':'p7epm_open';mD=document.getElementById(a.p7EPMpr);wD=document.getElementById(a.p7EPMw);if(wD){cD=document.getElementById(wD.id.replace('w','c'));if(mD.p7opt[2]>0){if(navigator.userAgent.toLowerCase().indexOf("gecko")>-1){if(P7_EPMov(cD)){cD.style.overflow="hidden";cD.p7ov=true;}}
if(wD.p7epmG){clearTimeout(wD.p7epmG);}
wD.style.overflow="hidden";ch=1;wD.style.height=ch+"px";wD.style.display='block';th=cD.offsetHeight;P7_EPMglide(wD.id,ch,th,mD.p7opt[2]);}
else{wD.style.height="auto";wD.style.display="block";p7EPMmanim=false;}}}
function P7_EPMclose(a){var i,mD,wD,cD,ch,th,ov=false,r1;a.p7state='closed';r1=/\p7epm_open/;a.className=a.className.replace(r1,'');mD=document.getElementById(a.p7EPMpr);wD=document.getElementById(a.p7EPMw);if(wD){cD=document.getElementById(wD.id.replace('w','c'));if(mD.p7opt[2]>0){if(navigator.userAgent.toLowerCase().indexOf("gecko")>-1){if(P7_EPMov(cD)){cD.style.overflow="hidden";cD.p7ov=true;}}
if(wD.p7epmG){clearTimeout(wD.p7epmG);}
wD.style.overflow="hidden";ch=wD.offsetHeight;th=0;P7_EPMglide(wD.id,ch,th,mD.p7opt[2]);}
else{wD.style.height="auto";wD.style.display="none";}}}
function P7_EPMrotate(dv,md,pn){var i;tB=document.getElementById(dv);if(md===0){if(tB.p7rtmr){clearTimeout(tB.p7rtmr);}
if(tB.p7rtrun){tB.p7rtcntr--;tB.p7rtrun=false;}
return;}
else{if(tB.p7rtrun){return;}}
if(tB&&tB.p7trgs){if(md>0){tB.p7rtmd=md;tB.p7rtcy=1;tB.p7rtcntr=1;}
if(!pn){pn=-1;for(i=0;i<tB.p7trgs.length;i++){if(tB.p7trgs[i].p7state=='open'){pn=i;break;}}}
else{pn--;}
pn=(pn<-1)?0:pn;pn=(pn>tB.p7trgs.length-1)?tB.p7trgs.length-1:pn;if(md>0){tB.p7rtsp=pn;}
if(tB.p7rtmr){clearTimeout(tB.p7rtmr);}
tB.p7rtmr=setTimeout("P7_EPMrunrt('"+dv+"',"+pn+")",10);}}
function P7_EPMrunrt(dv,n){var a,tB;tB=document.getElementById(dv);tB.p7rtrun=true;if(tB.p7rtmr){clearTimeout(tB.p7rtmr);}
if(n>-1&&n<tB.p7trgs.length){a=tB.p7trgs[n];if(a.p7state!="open"){P7_EPMtrig(a,0,true);}
tB.p7rtcntr++;}
n++;if(tB.p7rtcntr>tB.p7trgs.length){tB.p7rtcy++;tB.p7rtcntr=1;}
if(n>=tB.p7trgs.length){n=0;}
if(tB.p7rtcy>tB.p7rtmd){if(tB.p7rtsp==-1){tB.p7rtmr=setTimeout("P7_EPMall('"+dv+"','all')",tB.p7opt[6]);}
else{tB.p7rtmr=setTimeout("P7_EPMctl('"+tB.p7trgs[n].id+"','open',true)",tB.p7opt[6]);}
tB.p7rtrun=false;}
else{tB.p7rtmr=setTimeout("P7_EPMrunrt('"+dv+"',"+n+")",tB.p7opt[6]);}}
function P7_EPMglide(dd,ch,th,p){var m,d,cD,dy=10,inc=10,pc=0.15;d=document.getElementById(dd);m=(ch<=th)?0:1;if(p==2){tt=Math.abs(parseInt(Math.abs(th)-Math.abs(ch),10));inc=(tt*pc<1)?1:tt*pc;}
inc=(m==1)?inc*-1:inc;d.style.height=ch+"px";if(ch==th){if(th===0){d.style.display="none";}
else{p7EPMmanim=false;}
d.style.height="auto";cD=document.getElementById(d.id.replace("w","c"));if(cD.p7ov){cD.style.overflow="auto";cD.p7ov=false;}}
else{ch+=inc;if(m===0){ch=(ch>=th)?th:ch;}
else{ch=(ch<=th)?th:ch;}
d.p7epmG=setTimeout("P7_EPMglide('"+dd+"',"+ch+","+th+","+p+")",dy);}}
function P7_EPMurl(dv){var i,h,s,x,d='epm',a,n=dv.replace("p7EPM_","");if(document.getElementById){h=document.location.search;if(h){h=h.replace('?','');s=h.split(/[=&]/g);if(s&&s.length){for(i=0;i<s.length;i+=2){if(s[i]==d){x=s[i+1];if(n!=x.charAt(0)){x=false;}
if(x){a=document.getElementById('p7EPMtrg'+x);if(a&&a.p7state!="open"){P7_EPMtrig(a,0,true);}}}}}}
h=document.location.hash;if(h){x=h.substring(1,h.length);if(n!=x.charAt(3)){x=false;}
if(x&&x.indexOf(d)===0){a=document.getElementById('p7EPMtrg'+x.substring(3));if(a&&a.p7state!="open"){P7_EPMtrig(a,0,true);}}}}}
function P7_EPMov(ob){var s,m;s=ob.style.overflow;if(!s){if(ob.currentStyle){s=ob.currentStyle.overflow;}
else if(document.defaultView.getComputedStyle(ob,"")){s=document.defaultView.getComputedStyle(ob,"").getPropertyValue("overflow");}}
m=(s&&s=='auto')?true:false;return m;}
var xmlHttp;var xmlHttp2;var flag;var nm;function updateBrowse1(nm){flag=nm;if(flag=="1"){var str=document.getElementById("membershipid2").value;var url="ajax4.php?membershipid="+str}
if(flag=="2"){var str=document.getElementById("manid").value;var url="ajax1.php?manid="+str}
if(flag=="3"){var str=document.getElementById("typeid").value;var url="aircraftajax2.php?typeid="+str}
xmlHttp=GetXmlHttpObject(stateChanged5)
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function stateChanged5(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var results;results=xmlHttp.responseText.split(",");if(flag=="1"){var obj=document.getElementById("optionid2");}
if(flag=="2"){var obj=document.getElementById("modid");}
if(flag=="3"){var obj=document.getElementById("manid");}
var len;len=obj.length;while(len>0){len=len-1;obj.options[len]=null;}
if(flag=="1"){obj.options[len]=new Option("Select Add On Duration","0");}
if(flag=="2"){obj.options[len]=new Option("Select Aircraft Model","0");}
if(flag=="3"){obj.options[len]=new Option("Select Aircraft Manufacturer","0");}
len=obj.length;for(i=0;i<results.length;i++){len=obj.length;result_array=results[i].split("=");obj.options[len]=new Option(result_array[0],result_array[1]);}}}
function checkMaxSelected(select,maxSelected){if(!select.storeSelections){select.storeSelections=new Array(select.options.length);select.selectedOptions=0;}
for(var i=0;i<select.options.length;i++){if(select.options[i].selected&&!select.storeSelections[i]){if(select.selectedOptions<maxSelected){select.storeSelections[i]=true;select.selectedOptions++;}
else{alert('The last selection will be discarded. The limit of '+maxSelected
+' has been reached.');select.options[i].selected=false;}}
else if(!select.options[i].selected&&select.storeSelections[i]){select.storeSelections[i]=false;select.selectedOptions--;}}}
function limitText(limitField,limitCount,limitNum){if(limitField.value.length>limitNum){limitField.value=limitField.value.substring(0,limitNum);}else{limitCount.value=limitNum-limitField.value.length;}}
function updateBrowse(nm){flag=nm;if(flag=="1"){var str=document.getElementById("membershipid").value;var url="ajaxaircraft.php?membershipid="+str
var url2="ajaxaircraft3.php?membershipid="+str}
if(flag=="2"){var str=document.getElementById("typeid").value;var str2=document.getElementById("manid").value;var url="aircraftajax1.php?manid="+str2+"&typeid="+str}
xmlHttp=GetXmlHttpObject(stateChanged3)
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
xmlHttp2=GetXmlHttpObject(stateChanged4)
xmlHttp2.open("GET",url2,true)
xmlHttp2.send(null)}
function stateChanged3(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var results;results=xmlHttp.responseText.split(",");if(flag=="1"){var obj=document.getElementById("optionid");}
if(flag=="2"){var obj=document.getElementById("modid");}
if(flag=="3"){var obj=document.getElementById("manid");}
var len;len=obj.length;while(len>0){len=len-1;obj.options[len]=null;}
if(flag=="1"){obj.options[len]=new Option("Select Payment Option","0");}
if(flag=="2"){obj.options[len]=new Option("Select Aircraft Model","0");}
if(flag=="3"){obj.options[len]=new Option("Select Aircraft Manufacturer","0");}
len=obj.length;for(i=0;i<results.length;i++){len=obj.length;result_array=results[i].split("=");obj.options[len]=new Option(result_array[0],result_array[1]);}}}
function stateChanged4(){if(xmlHttp2.readyState==4||xmlHttp2.readyState=="complete"){var results;results=xmlHttp2.responseText.split(",");if(flag=="1"){var obj=document.getElementById("membershipid2");}
if(flag=="2"){var obj=document.getElementById("modid");}
if(flag=="3"){var obj=document.getElementById("manid");}
var len;len=obj.length;while(len>0){len=len-1;obj.options[len]=null;}
if(flag=="1"){obj.options[len]=new Option("Select Add On Product","0");}
if(flag=="2"){obj.options[len]=new Option("Select Aircraft Model","0");}
if(flag=="3"){obj.options[len]=new Option("Select Aircraft Manufacturer","0");}
len=obj.length;for(i=0;i<results.length;i++){len=obj.length;result_array=results[i].split("=");obj.options[len]=new Option(result_array[0],result_array[1]);}}}
var xmlHttp;var flag;function updateModel(nm){flag=nm;if(flag=="1"){var str=document.getElementById("manid").value;var url="ajax.php?manid="+str}
xmlHttp=GetXmlHttpObject(stateChanged)
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function stateChanged(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var results;results=xmlHttp.responseText.split(",");if(flag=="1"){var obj=document.getElementById("modid");}
var len;len=obj.length;while(len>0){len=len-1;obj.options[len]=null;}
if(flag=="1"){obj.options[len]=new Option("Any Model","0");}
len=obj.length;for(i=0;i<results.length;i++){len=obj.length;result_array=results[i].split("=");obj.options[len]=new Option(result_array[0],result_array[1]);}}}
function GetXmlHttpObject(handler){var objXmlHttp=null
if(navigator.userAgent.indexOf("Opera")>=0){alert("This example doesn't work in Opera")
return}
if(navigator.userAgent.indexOf("MSIE")>=0){var strName="Msxml2.XMLHTTP"
if(navigator.appVersion.indexOf("MSIE 5.5")>=0){strName="Microsoft.XMLHTTP"}
try{objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler
return objXmlHttp}
catch(e){alert("Error. Scripting for ActiveX might be disabled")
return}}
if(navigator.userAgent.indexOf("Mozilla")>=0){objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler
return objXmlHttp}}
function checkAircraft()
{if(document.aircraft.typeid.value=="")
{alert('Please select your aircraft type.');document.aircraft.typeid.focus();return false;}
if(document.aircraft.manid.value=="")
{alert('Please select your aircraft manufacturer.');document.aircraft.manid.focus();return false;}
if(document.aircraft.modid.value=="")
{alert('Please select your aircraft model.');document.aircraft.modid.focus();return false;}
if(document.aircraft.serialno.value=="")
{alert('Please enter your aircraft serial no.');document.aircraft.serialno.focus();return false;}
if(document.aircraft.regno.value=="")
{alert('Please enter your aircraft registration no.');document.aircraft.regno.focus();return false;}
if(document.aircraft.aircraftyear.value=="")
{alert('Please enter your aircraft year.');document.aircraft.aircraftyear.focus();return false;}
if(document.aircraft.aircraftstatus.value=="")
{alert('Please enter your aircraft status.');document.aircraft.aircraftstatus.focus();return false;}
if(document.aircraft.locationcity.value=="")
{alert('Please enter your aircraft location city.');document.aircraft.locationcity.focus();return false;}
if(document.aircraft.locationstate.value=="")
{alert('Please enter your aircraft location state.');document.aircraft.locationstate.focus();return false;}
if(document.aircraft.locationcountry.value=="")
{alert('Please enter your aircraft location country.');document.aircraft.locationcountry.focus();return false;}
if(document.aircraft.locationzip.value=="")
{alert('Please enter your aircraft location zip code.');document.aircraft.locationzip.focus();return false;}
return true();}
function checkAircraft2()
{if(document.aircraft.aircraftstatus.value=="")
{alert('Please enter your aircraft status.');document.aircraft.aircraftstatus.focus();return false;}
if(document.aircraft.locationcity.value=="")
{alert('Please enter your aircraft location city.');document.aircraft.locationcity.focus();return false;}
if(document.aircraft.locationstate.value=="")
{alert('Please enter your aircraft location state.');document.aircraft.locationstate.focus();return false;}
if(document.aircraft.locationcountry.value=="")
{alert('Please enter your aircraft location country.');document.aircraft.locationcountry.focus();return false;}
if(document.aircraft.locationzip.value=="")
{alert('Please enter your aircraft location zip code.');document.aircraft.locationzip.focus();return false;}
return true();}
function checkPayment()
{if(document.payment.payment_method.value=="")
{alert('Please select your payment method.');document.payment.payment_method.focus();return false;}
if(document.payment.cardname.value=="")
{alert('Please the name on your credit card.');document.payment.cardname.focus();return false;}
if(document.payment.cardno.value=="")
{alert('Please enter your credit card number.');document.payment.cardno.focus();return false;}
if(document.payment.exp.value=="")
{alert('Please enter your credit card expiration date.');document.payment.exp.focus();return false;}
if(document.payment.cvv.value=="")
{alert('Please enter your credit card security code.');document.payment.cvv.focus();return false;}
if(document.payment.billingaddress.value=="")
{alert('Please enter your billing address.');document.payment.billingaddress.focus();return false;}
if(document.payment.billingzip.value=="")
{alert('Please enter your billing zip code.');document.payment.billingzip.focus();return false;}
return true();}
function checkblank()
{if(document.newsletter.firstname.value=="")
{alert('Please enter your first name.');document.newsletter.firstname.focus();return false;}
if(document.newsletter.lastname.value=="")
{alert('Please enter your first name.');document.newsletter.lastname.focus();return false;}
if(document.newsletter.email.value.indexOf("@")<0)
{alert('Your email address format is incorrect.');document.newsletter.email.focus();return false;}
if(document.newsletter.email.value.indexOf(".")<0)
{alert('Your email address format is incorrect.');document.newsletter.email.focus();return false;}
if((document.newsletter.email.value)!=(document.newsletter.email2.value))
{alert('Your emails do not match.');document.newsletter.email.focus();return false;}
if(document.newsletter.terms.checked==false)
{alert('You must agree to the terms and conditions.');document.newsletter.terms.focus();return false;}
return true;}
function checkblank1()
{if(document.register.username.value=="")
{alert('Please enter a username.');document.register.username.focus();return false;}
var myRegxp=/([a-zA-Z0-9_-]+)$/;if(myRegxp.test(document.register.username.value)==false)
{alert('Username allows alphanumeric characters only.');document.register.username.focus();return false;}
if(myRegxp.test(document.register.password.value)==false)
{alert('Password allows alphanumeric characters only.');document.register.password.focus();return false;}
if(document.register.password.value=="")
{alert('Please enter a password.');document.register.password.focus();return false;}
if(document.register.password2.value=="")
{alert('Please enter a password.');document.register.password2.focus();return false;}
if((document.register.password.value)!=(document.register.password2.value))
{alert('Your passwords do not match.');document.register.password.focus();return false;}
if(document.register.firstname.value=="")
{alert('Please enter your first name.');document.register.firstname.focus();return false;}
if(document.register.lastname.value=="")
{alert('Please enter your last name.');document.register.lastname.focus();return false;}
if(document.register.address1.value=="")
{alert('Please enter your address.');document.register.address1.focus();return false;}
if(document.register.city.value=="")
{alert('Please enter your city.');document.register.city.focus();return false;}
if(document.register.zip.value=="")
{alert('Please enter your zip or postal code.');document.register.zip.focus();return false;}
if(document.register.country.value=="")
{alert('Please select your country.');return false;}
if(document.register.country.value=="United States")
{if(document.register.state.value=="")
{alert('Please select your state.');return false;}}
if(document.register.email.value.indexOf("@")<0)
{alert('Your email address format is incorrect.');document.register.email.focus();return false;}
if(document.register.email.value.indexOf(".")<0)
{alert('Your email address format is incorrect.');document.register.email.focus();return false;}
if((document.register.email.value)!=(document.register.email2.value))
{alert('Your emails do not match.');document.register.email.focus();return false;}
if(document.register.terms.checked==false)
{alert('You must agree to the terms and conditions.');return false;}else{return true;}
if(document.register.terms.checked==true)
return true;}
function checkblank2()
{if(document.myhangar.firstname.value=="")
{alert('Please enter your first name.');document.myhangar.firstname.focus();return false;}
if(document.myhangar.lastname.value=="")
{alert('Please enter your last name.');document.myhangar.lastname.focus();return false;}
if(document.myhangar.company.value=="")
{alert('Please enter your company name.');document.myhangar.company.focus();return false;}
if(document.myhangar.email.value.indexOf("@")<0)
{alert('Your email address format is incorrect.');document.myhangar.email.focus();return false;}
if(document.myhangar.email.value.indexOf(".")<0)
{alert('Your email address format is incorrect.');document.myhangar.email.focus();return false;}
if(document.myhangar.address1.value=="")
{alert('Please enter your address.');document.myhangar.address1.focus();return false;}
if(document.myhangar.city.value=="")
{alert('Please enter your city.');document.myhangar.city.focus();return false;}
if(document.myhangar.zip.value=="")
{alert('Please enter your zip or postal code.');document.myhangar.zip.focus();return false;}
if(document.myhangar.country.value=="")
{alert('Please select your country.');return false;}
if(document.register.myhangar.value=="United States")
{if(document.myhangar.state.value=="")
{alert('Please select your state.');return false;}}
if(document.myhangar.phone.value=="")
{alert('Please enter your phone number.');document.myhangar.phone.focus();return false;}
return true;}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function ISnumeric(argNum)
{if(argNum=="")
{return false;}
var valid="0123456789X"
var ok="yes";var temp;for(var i=0;i<argNum.length;i++)
{temp=""+argNum.substring(i,i+1);if(valid.indexOf(temp)=="-1")
{return false;break;}}
return true;}
function validateEmail(email)
{if(email==""){return false;}
badStuff=";:/,' \"\\";for(i=0;i<badStuff.length;i++){badCheck=badStuff.charAt(i)
if(email.indexOf(badCheck,0)!=-1){return false;}}
posOfAtSign=email.indexOf("@",1)
if(posOfAtSign==-1){return false;}
if(email.indexOf("@",posOfAtSign+1)!=-1){return false;}
posOfPeriod=email.indexOf(".",posOfAtSign)
if(posOfPeriod==-1){return false;}
if(posOfPeriod+2>email.length){return false;}
return true}
function emailCheck(emailStr)
{var checkTLD=1;var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s"+specialChars+"\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars+'+';var word="("+atom+"|"+quotedUser+")";var userPat=new RegExp("^"+word+"(\\."+word+")*$");var domainPat=new RegExp("^"+atom+"(\\."+atom+")*$");var matchArray=emailStr.match(emailPat);if(matchArray==null)
{return false;}
var user=matchArray[1];var domain=matchArray[2];for(i=0;i<user.length;i++)
{if(user.charCodeAt(i)>127)
{return false;}}
for(i=0;i<domain.length;i++)
{if(domain.charCodeAt(i)>127)
{return false;}}
if(user.match(userPat)==null)
{return false;}
var IPArray=domain.match(ipDomainPat);if(IPArray!=null)
{for(var i=1;i<=4;i++)
{if(IPArray[i]>255)
{return false;}}
return true;}
var atomPat=new RegExp("^"+atom+"$");var domArr=domain.split(".");var len=domArr.length;for(i=0;i<len;i++)
{if(domArr[i].search(atomPat)==-1)
{return false;}}
if(checkTLD&&domArr[domArr.length-1].length!=2&&domArr[domArr.length-1].search(knownDomsPat)==-1)
{return false;}
if(len<2)
{return false;}
return true;}
function verify(msg)
{if(confirm(msg))
return true;else
return false;}
function PopupPic(img_src)
{window.open("large.php?imgsrc="+img_src,"mydoc","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,maximize=0");}
function winBRopen(theURL,height,width)
{var winleft=(screen.width-500)/2;var winUp=(screen.height-500)/4;winProp='width='+width+',height='+height+',left='+winleft+',top='+winUp+',scrollbars=yes,resizable=yes,toolbar=0,menubar=0';Win=window.open(theURL,'',winProp)
if(parseInt(navigator.appVersion)>=4)
{Win.window.focus();}}
function chk_registration()
{frm=document.user_registration;if(frm.username.value=='')
{alert("Please specify your username!");frm.username.focus();return false;}
if(frm.password.value=='')
{alert("Please specify the password!");frm.password.focus();return false;}
if(frm.firstname.value=='')
{alert("Please specify the first name!");frm.firstname.focus();return false;}
if(frm.lastname.value=='')
{alert("Please specify the last name!");frm.lastname.focus();return false;}
if(frm.company.value=='')
{alert("Please specify the company name!");frm.company.focus();return false;}
if(frm.bphone.value=='')
{alert("Please specify the business phone!");frm.bphone.focus();return false;}
if(frm.bphone.value!='')
{if(!ISnumeric(frm.bphone.value))
{alert("Please input a valid phone number.");frm.bphone.focus();return false;}}
if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}}
function chk_loginVal()
{frm=document.frmlogin;if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}
if(frm.password.value=='')
{alert("Please specify the password!");frm.password.focus();return false;}
frm.submit();}
function chk_forgotVal()
{frm=document.frmforgot;if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}}
function clearField(frm)
{if((frm.value=="XXX")||(frm.value=="XXXX"))
{frm.value="";frm.focus();}}
function checksubuser()
{if(document.subuser.relationid.value=='')
{alert("Please select associated membership.");document.subuser.firstname.focus();return false;}
if(document.subuser.username.value=='')
{alert("Please enter a username.");document.subuser.username.focus();return false;}
if(document.subuser.firstname.value=='')
{alert("Please enter the firstname.");document.subuser.firstname.focus();return false;}
if(document.subuser.lastname.value=='')
{alert("Please enter a lastname.");document.subuser.lastname.focus();return false;}
return true;}
function chk_myacount()
{frm=document.frmMyAccountEdit;if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}
if(frm.password.value=='')
{alert("Please specify the password!");frm.password.focus();return false;}
if(frm.title.value=='')
{alert("Please specify the title!");frm.title.focus();return false;}
if(frm.company.value=='')
{alert("Please specify the company name!");frm.company.focus();return false;}
if(frm.company_address.value=='')
{alert("Please specify the company address!");frm.company_address.focus();return false;}
if(frm.city.value=='')
{alert("Please specify the company city!");frm.city.focus();return false;}
if(frm.zip.value=='')
{alert("Please specify the zipcode!");frm.zip.focus();return false;}
if(frm.country.value=='')
{alert("Please specify the country!");frm.country.focus();return false;}
if(frm.phone1.value!='')
{if(!ISnumeric(frm.phone1.value))
{alert("Please input a valid phone number.");frm.phone1.focus();return false;}}
if(frm.phone2.value!='')
{if(!ISnumeric(frm.phone2.value))
{alert("Please input a valid phone number.");frm.phone2.focus();return false;}}
if(frm.phone3.value!='')
{if(!ISnumeric(frm.phone3.value))
{alert("Please input a valid phone number.");frm.phone3.focus();return false;}}
if(frm.phone4.value!='')
{if(!ISnumeric(frm.phone4.value))
{alert("Please input a valid phone number.");frm.phone4.focus();return false;}}
if(frm.badge_name.value=='')
{alert("Please specify the name on badge!");frm.badge_name.focus();return false;}
if(frm.company_badge_name.value=='')
{alert("Please specify the comapany on badge!");frm.company_badge_name.focus();return false;}}
function chk_EventRegis(val)
{frm=document.event_registtration;if(frm.email.value=='')
{alert("Please specify the email!");frm.email.focus();return false;}
if(!emailCheck(frm.email.value))
{alert("Email is in an invalid format - Please RE-Enter");frm.email.focus();return false;}
if(frm.fname.value=='')
{alert("Please specify the first name!");frm.fname.focus();return false;}
if(frm.lname.value=='')
{alert("Please specify the last name!");frm.lname.focus();return false;}
if(frm.phone1.value!='')
{if(!ISnumeric(frm.phone1.value))
{alert("Please input a valid phone number.");frm.phone1.focus();return false;}}
if(frm.phone2.value!='')
{if(!ISnumeric(frm.phone2.value))
{alert("Please input a valid phone number.");frm.phone2.focus();return false;}}
if(frm.phone3.value!='')
{if(!ISnumeric(frm.phone3.value))
{alert("Please input a valid phone number.");frm.phone3.focus();return false;}}
if(frm.phone4.value!='')
{if(!ISnumeric(frm.phone4.value))
{alert("Please input a valid phone number.");frm.phone4.focus();return false;}}
if(frm.badge_name.value=='')
{alert("Please specify the name on badge!");frm.badge_name.focus();return false;}
if(frm.company_badge_name.value=='')
{alert("Please specify the comapany on badge!");frm.company_badge_name.focus();return false;}
if(val==1)
{if(frm.ccfname.value=='')
{alert("Please specify the credit card first name!");frm.ccfname.focus();return false;}
if(frm.cclname.value=='')
{alert("Please specify the credit card last name!");frm.cclname.focus();return false;}
if(frm.ccnumber.value=='')
{alert("Please specify the credit card number!");frm.ccnumber.focus();return false;}
if(frm.ccexpdate.value=='')
{alert("Please specify the credit card expiry date!");frm.ccexpdate.focus();return false;}
if(frm.csv.value=='')
{alert("Please specify the csv number!");frm.csv.focus();return false;}}}
function chk_searchuser()
{if(document.searchform.searchfor.value=='')
{alert("Please specify the text for search.");document.searchform.searchfor.focus();return false;}}
function loadContent(id){$("#contentArea").load("home_search.php?o="+id+"");}
function swapEdform()
{var nm;var nm=document.getElementById("formtype").value;var obj2=document.getElementById("college");var obj3=document.getElementById("trade");var obj4=document.getElementById("military");var obj5=document.getElementById("other");if(nm==1)
{obj2.style.visibility="visible";obj2.style.display="";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";}
if(nm==2)
{obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="visible";obj3.style.display="";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";}
if(nm==3)
{obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="visible";obj4.style.display="";obj5.style.visibility="hidden";obj5.style.display="none";}
if(nm==4)
{obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="visible";obj5.style.display="";}
if(nm==0)
{obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";}}
function startList(){if(document.all&&document.getElementById){if(document.getElementById("nav")){navRoot=document.getElementById("nav");for(i=0;i<navRoot.childNodes.length;i++){node=navRoot.childNodes[i];if(node.nodeName=="LI"){node.onmouseover=function(){this.className+=" over";}
node.onmouseout=function(){this.className=this.className.replace(" over","");}}}}}}
startList();
function swapMsg(nm)
{var nm;var obj1=document.getElementById("content1");var obj2=document.getElementById("content2");var obj3=document.getElementById("content3");var obj4=document.getElementById("content4");if(nm==1)
{obj1.style.visibility="visible";obj1.style.display="";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";}
if(nm==2)
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="visible";obj2.style.display="";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";}
if(nm==3)
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="visible";obj3.style.display="";obj4.style.visibility="hidden";obj4.style.display="none";}
if(nm==4)
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="visible";obj4.style.display="";}}
function swapTopics(nm,objid)
{var nm;var obj1=document.getElementById("A");var obj2=document.getElementById("B");var obj3=document.getElementById("C");var obj4=document.getElementById("D");var obj5=document.getElementById("E");var obj6=document.getElementById("F");var obj7=document.getElementById("G");var obj8=document.getElementById("H");var obj9=document.getElementById("I");var obj10=document.getElementById("J");var obj11=document.getElementById("K");var obj12=document.getElementById("L");var obj13=document.getElementById("M");var obj14=document.getElementById("N");var obj15=document.getElementById("O");var obj16=document.getElementById("P");var obj17=document.getElementById("Q");var obj18=document.getElementById("R");var obj19=document.getElementById("S");var obj20=document.getElementById("T");var obj21=document.getElementById("U");var obj22=document.getElementById("V");var obj23=document.getElementById("W");var obj24=document.getElementById("X");var obj25=document.getElementById("Y");var obj26=document.getElementById("Z");var objName;for(x=1;x<=26;x++){objName=x+'l';document.getElementById(objName).className="number";}
if(document.getElementById(objid))document.getElementById(objid).className="number2";if(nm=="1")
{obj1.style.visibility="visible";obj1.style.display="";obj1.style.className="";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="2")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="visible";obj2.style.display="";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="3")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="visible";obj3.style.display="";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="4")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="visible";obj4.style.display="";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="5")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="visible";obj5.style.display="";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="6")
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="visible";obj6.style.display="";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="7")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="visible";obj7.style.display="";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="8")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="visible";obj8.style.display="";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="9")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="visible";obj9.style.display="";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="10")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="visible";obj10.style.display="";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="11")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="visible";obj11.style.display="";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="12")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="visible";obj12.style.display="";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="13")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="visible";obj13.style.display="";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="14")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="visible";obj14.style.display="";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="15")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="visible";obj15.style.display="";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="16")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="visible";obj16.style.display="";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="17")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="visible";obj17.style.display="";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="18")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="visible";obj18.style.display="";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="19")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="visible";obj19.style.display="";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="20")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="visible";obj20.style.display="";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="21")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="visible";obj21.style.display="";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="22")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="visible";obj22.style.display="";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="23")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="visible";obj23.style.display="";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="24")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="visible";obj24.style.display="";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="25")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="visible";obj25.style.display="";obj26.style.visibility="hidden";obj26.style.display="none";}
if(nm=="26")
{obj1.style.visibility=="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";obj3.style.visibility="hidden";obj3.style.display="none";obj4.style.visibility="hidden";obj4.style.display="none";obj5.style.visibility="hidden";obj5.style.display="none";obj6.style.visibility="hidden";obj6.style.display="none";obj7.style.visibility="hidden";obj7.style.display="none";obj8.style.visibility="hidden";obj8.style.display="none";obj9.style.visibility="hidden";obj9.style.display="none";obj10.style.visibility="hidden";obj10.style.display="none";obj11.style.visibility="hidden";obj11.style.display="none";obj12.style.visibility="hidden";obj12.style.display="none";obj13.style.visibility="hidden";obj13.style.display="none";obj14.style.visibility="hidden";obj14.style.display="none";obj15.style.visibility="hidden";obj15.style.display="none";obj16.style.visibility="hidden";obj16.style.display="none";obj17.style.visibility="hidden";obj17.style.display="none";obj18.style.visibility="hidden";obj18.style.display="none";obj19.style.visibility="hidden";obj19.style.display="none";obj20.style.visibility="hidden";obj20.style.display="none";obj21.style.visibility="hidden";obj21.style.display="none";obj22.style.visibility="hidden";obj22.style.display="none";obj23.style.visibility="hidden";obj23.style.display="none";obj24.style.visibility="hidden";obj24.style.display="none";obj25.style.visibility="hidden";obj25.style.display="none";obj26.style.visibility="visible";obj26.style.display="";}}
function checkBaby4()
{if(document.advancedbabysearch.begin.value=="")
{if(document.advancedbabysearch.end.value=="")
{alert('Please enter a search value.');document.advancedbabysearch.begin.focus();return false;}}}
function checkBaby3()
{if(document.quickbabysearch.search.value=="")
{alert('Please enter a search value.');document.quickbabysearch.search.focus();return false;}}
function checkBaby2()
{if(document.babysearch2.NAME.value=="")
{alert('Please enter a search value.');document.babysearch2.NAME.focus();return false;}}
function checkBaby()
{if(document.babysearch.NAME.value=="")
{alert('Please enter a search value.');document.babysearch.NAME.focus();return false;}}
function copyBilling()
{if(donation.billing.checked)
{document.donation.billingaddress1.value=document.donation.address1.value;document.donation.billingaddress2.value=document.donation.address2.value;document.donation.billingzip.value=document.donation.zip.value;}}
function checkDonation()
{myOption=-1;for(i=0;i<donation.giftfrom.length;i++)
{if(donation.giftfrom[i].checked)
{myOption=i;}}
if(myOption==-1)
{alert("You must select individual or corporation.");return false;}
if(donation.giftfrom[myOption].value=='individual')
{if(donation.firstname.value=="")
{alert('Please enter your first name.');donation.firstname.focus();return false;}
if(donation.lastname.value=="")
{alert('Please enter your last name.');donation.lastname.focus();return false;}}
if(donation.giftfrom[myOption].value=='corporate')
{if(donation.corporation.value=="")
{alert('Please enter your corporation name.');donation.corporation.focus();return false;}}
myOption2=-1;for(b=0;b<donation.joint.length;b++)
{if(donation.joint[b].checked)
{myOption2=b;}}
if(myOption2==-1)
{alert("You must a joint donation option.");return false;}
if(donation.email.value=="")
{alert('Please enter your email address.');donation.email.focus();return false;}
if(!emailCheck(donation.email.value))
{alert("Email is in an invalid format - Please RE-Enter");donation.email.focus();return false;}
if(document.donation.phone.value=="")
{alert('Please enter your phone number.');document.donation.phone.focus();return false;}
if(document.donation.address1.value=="")
{alert('Please enter your address.');document.donation.address1.focus();return false;}
if(document.donation.city.value=="")
{alert('Please enter the billing city.');document.donation.city.focus();return false;}
if(document.donation.state.value=="")
{alert('Please select the billing state.');document.donation.city.focus();return false;}
if(document.donation.zip.value=="")
{alert('Please enter the billing zip code.');document.donation.zip.focus();return false;}
if(document.donation.country.value=="")
{alert('Please select your country.');document.donation.zip.focus();return false;}
myOption3=-1;for(c=0;c<donation.giftfor.length;c++)
{if(donation.giftfor[c].checked)
{myOption3=c;}}
if(myOption3==-1)
{alert("You must designate the use of your gift.");return false;}
if(donation.giftfor[myOption].value=='researchspecific')
{if(document.donation.otherprogram.value=="")
{alert('Please enter the program name.');document.donation.otherprogram.focus();return false;}}
myOption4=-1;for(d=0;d<donation.giftamt.length;d++)
{if(donation.giftamt[d].checked)
{myOption4=d;}}
if(myOption4==-1)
{alert("You must designate the amount of your gift.");return false;}
if(donation.otheramount[myOption].value=='amount')
{if(document.donation.otheramount.value=="")
{alert('Please enter the program name.');document.donation.otheramount.focus();return false;}}
if(document.donation.ccno.value=="")
{alert('Please enter your credit card number.');document.donation.ccno.focus();return false;}
if(document.donation.expdate.value=="")
{alert('Please enter your credt card expiration date.');document.donation.expdate.focus();return false;}
if(document.donation.cvv.value=="")
{alert('Please enter your credit card security code.');document.donation.cvv.focus();return false;}
donation.submit();}
function checkPayment()
{if(document.billinginfo.firstname.value=="")
{alert('Please enter the billing first name.');document.billinginfo.firstname.focus();return false;}
if(document.billinginfo.lastname.value=="")
{alert('Please enter the billing last name.');document.billinginfo.lastname.focus();return false;}
if(document.billinginfo.address.value=="")
{alert('Please enter the billing address.');document.billinginfo.address.focus();return false;}
if(document.billinginfo.city.value=="")
{alert('Please enter the billing city.');document.billinginfo.city.focus();return false;}
if(document.billinginfo.state.value=="")
{alert('Please select the billing state.');document.billinginfo.city.focus();return false;}
if(document.billinginfo.zip.value=="")
{alert('Please enter the billing zip code.');document.billinginfo.zip.focus();return false;}
if(document.billinginfo.phone.value=="")
{alert('Please enter the billing phone number.');document.billinginfo.phone.focus();return false;}
if(document.billinginfo.email.value=="")
{alert('Please enter your email address.');document.billinginfo.email.focus();return false;}
if(!emailCheck(billinginfo.email.value))
{alert("Email is in an invalid format - Please RE-Enter");billinginfo.email.focus();return false;}
if(document.billinginfo.ccno.value=="")
{alert('Please enter your credit card number.');document.billinginfo.ccno.focus();return false;}
if(document.billinginfo.expdate.value=="")
{alert('Please enter your credt card expiration date.');document.billinginfo.expdate.focus();return false;}
if(document.billinginfo.cvv.value=="")
{alert('Please enter your credit card security code.');document.billinginfo.cvv.focus();return false;}
return true();}
function checkEcard()
{if(document.ecard.patientname.value=="")
{alert('Please enter the patient\'s name.');document.ecard.patientname.focus();return false;}
if(document.ecard.fromemail.value=="")
{alert('Please enter your email address.');document.ecard.fromemail.focus();return false;}}
function careersPer()
{if(document.personalinfo.lastname.value=="")
{alert('Please enter your lastname.');document.personalinfo.lastname.focus();return false;}
if(document.personalinfo.firstname.value=="")
{alert('Please enter your firstname.');document.personalinfo.firstname.focus();return false;}}
function copyEm()
{if(contact.same.checked)
{document.contact.kname.value=document.contact.emname.value;document.contact.krelation.value=document.contact.emrelation.value;document.contact.kaddress1.value=document.contact.emaddress1.value;document.contact.kaddress2.value=document.contact.emaddress2.value;document.contact.kcity.value=document.contact.emcity.value;document.contact.kstate.value=document.contact.emstate.value;document.contact.kzip.value=document.contact.emzip.value;document.contact.kphone.value=document.contact.emphone.value;document.contact.kwkphone.value=document.contact.emwkphone.value;}}
function valbutton(thisform){myOption=-1;for(i=thisform.prev.length-1;i>-1;i--){if(thisform.prev[i].checked){myOption=i;i=-1;}}
if(myOption==-1){alert("You must select an answer.");return false;}
if(thisform.prev[myOption].value=='y');{myOption=-1;for(i=thisform.contactchange.length-1;i>-1;i--){if(thisform.contactchange[i].checked){myOption=i;i=-1;}}
if(myOption==-1){alert("You must select an answer.");return false;}}
thisform.submit();}
function checkPatient()
{if(document.patientinfo.firstname.value=="")
{alert('Please enter your firstname.');document.patientinfo.firstname.focus();return false;}
if(document.patientinfo.lastname.value=="")
{alert('Please enter your lastname.');document.patientinfo.lastname.focus();return false;}
if(document.patientinfo.marital_status.value=="")
{alert('Please select your marital status.');document.patientinfo.lastname.focus();return false;}
if(document.patientinfo.race.value=="")
{alert('Please enter your race.');document.patientinfo.race.focus();return false;}
if(document.patientinfo.month.value=="")
{alert('Please select your birth month.');document.patientinfo.race.focus();return false;}
if(document.patientinfo.day.value=="")
{alert('Please select your birth day.');document.patientinfo.race.focus();return false;}
if(document.patientinfo.year.value=="")
{alert('Please select your birth year.');document.patientinfo.race.focus();return false;}
if(document.patientinfo.address1.value=="")
{alert('Please enter street address.');document.patientinfo.address1.focus();return false;}
if(document.patientinfo.city.value=="")
{alert('Please enter city.');document.patientinfo.city.focus();return false;}
if(document.patientinfo.state.value=="")
{alert('Please enter your state.');document.patientinfo.address1.focus();return false;}
if(document.patientinfo.zip.value=="")
{alert('Please enter your zip code.');document.patientinfo.zip.focus();return false;}
if(document.patientinfo.phone.value=="")
{alert('Please enter your phone number.');document.patientinfo.phone.focus();return false;}
if(document.patientinfo.employer.value=="")
{alert('Please enter employer.');document.patientinfo.employer.focus();return false;}
if(document.patientinfo.eaddress1.value=="")
{alert('Please enter your employer street address.');document.patientinfo.eaddress1.focus();return false;}
if(document.patientinfo.ecity.value=="")
{alert('Please enter city.');document.patientinfo.ecity.focus();return false;}
if(document.patientinfo.state.value=="")
{alert('Please enter your employer state.');document.patientinfo.eaddress1.focus();return false;}
if(document.patientinfo.ezip.value=="")
{alert('Please enter your employer zip code.');document.patientinfo.ezip.focus();return false;}
if(document.patientinfo.ephone.value=="")
{alert('Please enter your employer phone number.');document.patientinfo.ephone.focus();return false;}
return(patientinfo.action='patient_registration.php?pageid=false&frompageid=otherskills&link_id=124&tertiary=true');}
function checkContact()
{if(document.contact.emname.value=="")
{alert('Please enter contact name.');document.contact.emname.focus();return false;}
if(document.contact.emrelation.value=="")
{alert('Please enter relationship to patient.');document.contact.emrelation.focus();return false;}
if(document.contact.emaddress1.value=="")
{alert('Please enter contact address.');document.contact.emaddress1.focus();return false;}
if(document.contact.emcity.value=="")
{alert('Please enter contact city.');document.contact.emcity.focus();return false;}
if(document.contact.emstate.value=="")
{alert('Please select contact state.');document.contact.emcity.focus();return false;}
if(document.contact.emzip.value=="")
{alert('Please enter contact zip code.');document.contact.emzip.focus();return false;}
if(document.contact.emphone.value=="")
{alert('Please enter contact phone.');document.contact.emphone.focus();return false;}
if(document.contact.emwkphone.value=="")
{alert('Please enter contact work phone.');document.contact.emwkphone.focus();return false;}
if(document.contact.kname.value=="")
{alert('Please contact name.');document.contact.kname.focus();return false;}
if(document.contact.krelation.value=="")
{alert('Please enter relationship to patient.');document.contact.krelation.focus();return false;}
if(document.contact.kaddress1.value=="")
{alert('Please enter contact address.');document.contact.kaddress1.focus();return false;}
if(document.contact.kcity.value=="")
{alert('Please enter contact city.');document.contact.kcity.focus();return false;}
if(document.contact.kstate.value=="")
{alert('Please select contact state.');document.contact.kcity.focus();return false;}
if(document.contact.kzip.value=="")
{alert('Please enter contact zip code.');document.contact.kzip.focus();return false;}
if(document.contact.kphone.value=="")
{alert('Please enter contact phone.');document.contact.kphone.focus();return false;}
if(document.contact.kwkphone.value=="")
{alert('Please enter contact work phone.');document.contact.kwkphone.focus();return false;}
return(contact.action='patient_registration.php?pageid=false&frompageid=general&link_id=124&tertiary=true');}
function checkInsurance()
{if(document.references.ins1address1.value=="")
{alert('Please enter the insurance company address.');document.references.ins1address1.focus();return false;}
if(document.references.ins1city.value=="")
{alert('Please enter the insurance company city.');document.references.ins1city.focus();return false;}
if(document.references.ins1state.value=="")
{alert('Please select insurance company state.');document.references.ins1city.focus();return false;}
if(document.references.ins1zip.value=="")
{alert('Please enter insurance company zip code.');document.references.ins1zip.focus();return false;}
return(references.action='patient_registration.php?skip=true&pageid=false&frompageid=references&link_id=124&tertiary=true');}
function swapPatient(nm)
{var nm;var obj1=document.getElementById("1");var obj2=document.getElementById("2");if(nm==1)
{obj1.style.visibility="visible";obj1.style.display="";obj2.style.visibility="visible";obj2.style.display="";}
if(nm==2)
{obj1.style.visibility="hidden";obj1.style.display="none";obj2.style.visibility="hidden";obj2.style.display="none";}}
function swapPatient2(nm)
{var nm;var obj1=document.getElementById("3");if(nm==1)
{obj1.style.visibility="visible";obj1.style.display="";}
if(nm==2)
{obj1.style.visibility="hidden";obj1.style.display="none";}}
function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true;}else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r;}else{return false;}}
function removeEvent(obj,evType,fn,useCapture){if(obj.removeEventListener){obj.removeEventListener(evType,fn,useCapture);return true;}else if(obj.detachEvent){var r=obj.detachEvent("on"+evType,fn);return r;}else{alert("Handler could not be removed");}}
function getViewportHeight(){if(window.innerHeight!=window.undefined)return window.innerHeight;if(document.compatMode=='CSS1Compat')return document.documentElement.clientHeight;if(document.body)return document.body.clientHeight;return window.undefined;}
function getViewportWidth(){var offset=17;var width=null;if(window.innerWidth!=window.undefined)return window.innerWidth;if(document.compatMode=='CSS1Compat')return document.documentElement.clientWidth;if(document.body)return document.body.clientWidth;}
function getScrollTop(){if(self.pageYOffset)
{return self.pageYOffset;}
else if(document.documentElement&&document.documentElement.scrollTop)
{return document.documentElement.scrollTop;}
else if(document.body)
{return document.body.scrollTop;}}
function getScrollLeft(){if(self.pageXOffset)
{return self.pageXOffset;}
else if(document.documentElement&&document.documentElement.scrollLeft)
{return document.documentElement.scrollLeft;}
else if(document.body)
{return document.body.scrollLeft;}}
var gPopupMask=null;var gPopupContainer=null;var gPopFrame=null;var gReturnFunc;var gPopupIsShown=false;var gDefaultPage="http://backend.parenthood.com/include/loading.html";var gHideSelects=false;var gReturnVal=null;var gTabIndexes=new Array();var gTabbableTags=new Array("A","BUTTON","TEXTAREA","INPUT","IFRAME");if(!document.all){document.onkeypress=keyDownHandler;}
function initPopUp(){theBody=document.getElementsByTagName('BODY')[0];popmask=document.createElement('div');popmask.id='popupMask';popcont=document.createElement('div');popcont.id='popupContainer';popcont.innerHTML=''+'<div id="popupInner">'+'<div id="popupTitleBar">'+'<div id="popupTitle">Parenthood.com</div>'+'<div id="popupControls">'+'<a href="javascript:void(0);" onclick="hidePopWin(false);" id="popCloseBox">close</a>'+'</div>'+'</div>'+'<iframe src="'+gDefaultPage+'" style="width:100%;height:100%;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="100%" height="100%"></iframe>'+'</div>';theBody.appendChild(popmask);theBody.appendChild(popcont);gPopupMask=document.getElementById("popupMask");gPopupContainer=document.getElementById("popupContainer");gPopFrame=document.getElementById("popupFrame");var brsVersion=parseInt(window.navigator.appVersion.charAt(0),10);if(brsVersion<=6&&window.navigator.userAgent.indexOf("MSIE")>-1){gHideSelects=true;}
var elms=document.getElementsByTagName('a');for(i=0;i<elms.length;i++){if(elms[i].className.indexOf("submodal")==0){elms[i].onclick=function(){var width=400;var height=200;params=this.className.split('-');if(params.length==3){width=parseInt(params[1]);height=parseInt(params[2]);}
showPopWin(this.href,width,height,null);return false;}}}}
addEvent(window,"load",initPopUp);function showPopWin(url,width,height,returnFunc,showCloseBox){if(showCloseBox==null||showCloseBox==true){document.getElementById("popCloseBox").style.display="block";}else{document.getElementById("popCloseBox").style.display="none";}
gPopupIsShown=true;disableTabIndexes();gPopupMask.style.display="block";gPopupContainer.style.display="block";centerPopWin(width,height);var titleBarHeight=parseInt(document.getElementById("popupTitleBar").offsetHeight,10);gPopupContainer.style.width=width+"px";gPopupContainer.style.height=(height+titleBarHeight)+"px";setMaskSize();gPopFrame.style.width=parseInt(document.getElementById("popupTitleBar").offsetWidth,10)+"px";gPopFrame.style.height=(height)+"px";gPopFrame.src=url;gReturnFunc=returnFunc;if(gHideSelects==true){hideSelectBoxes();}
window.setTimeout("setPopTitle();",600);}
var gi=0;function centerPopWin(width,height){if(gPopupIsShown==true){if(width==null||isNaN(width)){width=gPopupContainer.offsetWidth;}
if(height==null){height=gPopupContainer.offsetHeight;}
var theBody=document.getElementsByTagName("BODY")[0];var scTop=parseInt(getScrollTop(),10);var scLeft=parseInt(theBody.scrollLeft,10);setMaskSize();var titleBarHeight=parseInt(document.getElementById("popupTitleBar").offsetHeight,10);var fullHeight=getViewportHeight();var fullWidth=getViewportWidth();gPopupContainer.style.top=(scTop+((fullHeight-(height+titleBarHeight))/2))+"px";gPopupContainer.style.left=(scLeft+((fullWidth-width)/2))+"px";}}
addEvent(window,"resize",centerPopWin);addEvent(window,"scroll",centerPopWin);window.onscroll=centerPopWin;function setMaskSize(){var theBody=document.getElementsByTagName("BODY")[0];var fullHeight=getViewportHeight();var fullWidth=getViewportWidth();if(fullHeight>theBody.scrollHeight){popHeight=fullHeight;}else{popHeight=theBody.scrollHeight;}
if(fullWidth>theBody.scrollWidth){popWidth=fullWidth;}else{popWidth=theBody.scrollWidth;}
gPopupMask.style.height=popHeight+"px";gPopupMask.style.width=popWidth+"px";}
function hidePopWin(callReturnFunc,location){var location;gPopupIsShown=false;var theBody=document.getElementsByTagName("BODY")[0];theBody.style.overflow="";restoreTabIndexes();if(gPopupMask==null){return;}
gPopupMask.style.display="none";gPopupContainer.style.display="none";if(callReturnFunc==true&&gReturnFunc!=null){gReturnVal=window.frames["popupFrame"].returnVal;window.setTimeout('gReturnFunc(gReturnVal);',1);}
gPopFrame.src=gDefaultPage;if(gHideSelects==true){displaySelectBoxes();}
if(location=="userlogin.php")
document.location=location;}
function setPopTitle(){return;if(window.frames["popupFrame"].document.title==null){window.setTimeout("setPopTitle();",10);}else{document.getElementById("popupTitle").innerHTML=window.frames["popupFrame"].document.title;}}
function keyDownHandler(e){if(gPopupIsShown&&e.keyCode==9)return false;}
function disableTabIndexes(){if(document.all){var i=0;for(var j=0;j<gTabbableTags.length;j++){var tagElements=document.getElementsByTagName(gTabbableTags[j]);for(var k=0;k<tagElements.length;k++){gTabIndexes[i]=tagElements[k].tabIndex;tagElements[k].tabIndex="-1";i++;}}}}
function restoreTabIndexes(){if(document.all){var i=0;for(var j=0;j<gTabbableTags.length;j++){var tagElements=document.getElementsByTagName(gTabbableTags[j]);for(var k=0;k<tagElements.length;k++){tagElements[k].tabIndex=gTabIndexes[i];tagElements[k].tabEnabled=true;i++;}}}}
function hideSelectBoxes(){for(var i=0;i<document.forms.length;i++){for(var e=0;e<document.forms[i].length;e++){if(document.forms[i].elements[e].tagName=="SELECT"){document.forms[i].elements[e].style.visibility="hidden";}}}}
function displaySelectBoxes(){for(var i=0;i<document.forms.length;i++){for(var e=0;e<document.forms[i].length;e++){if(document.forms[i].elements[e].tagName=="SELECT"){document.forms[i].elements[e].style.visibility="visible";}}}}

