function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt;}}
function changeImages(){if(document.images&&(preloadFlag==true)){for(var i=0;i<changeImages.arguments.length;i+=2){document[changeImages.arguments[i]].src=changeImages.arguments[i+1];}}}
var preloadFlag=false;function preloadImages(){if(document.images){mover1=newImage("/images/beta/blank.gif");mover2=newImage("/beta/images/signcorner.png");mover3=newImage("/beta/images/signcorner-over.png");preloadFlag=true;}}
var checkobj
function agreesubmit(el){checkobj=el
if(document.all||document.getElementById){for(i=0;i<checkobj.form.length;i++){var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked}}}
function defaultagree(el){if(!document.all&&!document.getElementById){if(window.checkobj&&checkobj.checked)
return true
else{alert("Please read/accept terms to submit form")
return false}}}
var menuids=["mainNav"]
function buildsubmenus_horizontal()
{for(var i=0;i<menuids.length;i++)
{var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
for(var t=0;t<ultags.length;t++)
{if(ultags[t].parentNode.parentNode.id==menuids[i]){ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"}
else{ultags[t].style.left='185px';ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"}
ultags[t].parentNode.onmouseover=function(){this.getElementsByTagName("ul")[0].style.visibility="visible";this.getElementsByTagName("a")[0].className+=" mnHover";this.className+="mnHover";if(this.id.length>0&&this.id.indexOf("btn")>-1)
{var imageName="/images/"+this.id+"-over.gif";changeImages(this.id,imageName);}}
ultags[t].parentNode.onmouseout=function(){this.getElementsByTagName("ul")[0].style.visibility="hidden";this.getElementsByTagName("a")[0].className=this.getElementsByTagName("a")[0].className.replace(new RegExp(" mnHover"),"");this.className=this.className.replace(new RegExp("mnHover"),"");if(this.id.length>0&&this.id.indexOf("btn")>-1)
{var imageName="/images/"+this.id+".gif";changeImages(this.id,imageName);}}}}}
if(window.addEventListener){window.addEventListener("load",buildsubmenus_horizontal,false)}else if(window.attachEvent){window.attachEvent("onload",buildsubmenus_horizontal);}
function changeInputs(){var els=document.getElementsByTagName('input');var elsLen=els.length;var i=0;for(i=0;i<elsLen;i++)
{if(els[i].getAttribute('type'))
{if(els[i].getAttribute('type')=="text"||els[i].getAttribute('type')=="password")
els[i].className='text';}}}
Object.extend(Event,{wheel:function(event){var delta=0;if(event.wheelDelta){delta=event.wheelDelta/120;if(window.opera)delta=-delta;}else if(event.detail){delta=-event.detail/3;}
if(navigator.userAgent.indexOf('Mac')!=-1)delta=-delta;return Math.round(delta);}});var Horinaja=Class.create();Horinaja.prototype={initialize:function(capture,duree,secExecution,pagination){this.capture=capture;this.duree=duree;this.secExecution=secExecution;this.pagination=pagination;this.nCell=0;this.id=1;this.po=0;this.f=$$('div#'+this.capture+' ul li');this.px=$(this.capture).getWidth();this.pxH=$(this.capture).getHeight();this.start();},start:function(){this.mover=$(this.capture).firstDescendant();this.nCell=this.f.length;for(i=0;i!=this.nCell;i++){this.f[i].setStyle({width:this.px+'px',height:(this.pxH-40)+'px',float:'left'});}
$(this.capture).setStyle({overflow:'hidden',position:'relative'});$(this.capture).firstDescendant().setStyle({width:(this.px*this.nCell)+'px'});if(this.pagination){$(this.capture).insert({bottom:'<ol class="horinaja_pagination"></ol>'});this.olPagination=$(this.capture).firstDescendant().next();$(this.olPagination).setStyle({width:this.px+'px'});this.wb=Math.floor(this.px/this.f.length);for(i=1;i!=(this.f.length+1);i++){$(this.olPagination).insert({bottom:'<li><a style="width:'+this.wb+'px;">'+i+'</a></li>'});if(i!=this.id){$(this.olPagination).childElements()[i-1].setStyle({opacity:0.2});}}
$(this.olPagination).childElements()[0].setStyle({opacity:1});this.startOC();}
this.startPe();Event.observe($(this.capture),"mouseout",this.startPe.bind(this));Event.observe($(this.capture),"mouseover",this.stopPe.bind(this));Event.observe($(this.capture),"mousewheel",this.wheelwheel.bind(this));Event.observe($(this.capture),"DOMMouseScroll",this.wheelwheel.bind(this));},startOC:function(){Event.observe($(this.olPagination),"click",this.moveP.bind(this));},startPe:function(){this.periodik=new PeriodicalExecuter(this.Pe.bind(this),this.secExecution);},stopPe:function(){this.periodik.stop();},effaceP:function(mop){this.mop=mop;if(this.pagination)
new Effect.Fade($(this.olPagination).childElements()[this.mop-1],{duration:0.3,to:0.2})},move:function(xp){this.xp=xp;new Effect.Move(this.mover,{x:this.xp,y:0,mode:'absolute',duration:this.duree,transition:Effect.Transitions.sinoidal});if(this.pagination){new Effect.Appear($(this.olPagination).childElements()[this.id-1],{duration:0.3,to:1})}},Pe:function(){if(this.id<this.nCell){this.po=this.po-this.px;this.effaceP(this.id);this.id=this.id+1;this.move(this.po);}else{this.po=0;this.effaceP(this.id);this.id=1;this.move(this.po);}},moveP:function(evt){var child=Event.element(evt);this.occ=parseInt(child.innerHTML);if(this.id>this.occ){this.diff=this.id-this.occ;this.po=this.po+(this.px*this.diff);this.effaceP(this.id);this.id=this.occ;this.move(this.po);}else if(this.id<this.occ){this.diff=this.occ-this.id;this.po=this.po-(this.px*this.diff);this.effaceP(this.id);this.id=this.occ;this.move(this.po);}},stopEvent:function(pE)
{if(!pE)
if(window.event)
pE=window.event;else
return;if(pE.cancelBubble!=null)
pE.cancelBubble=true;if(pE.stopPropagation)
pE.stopPropagation();if(pE.preventDefault)
pE.preventDefault();},wheelwheel:function(e){this.event=e;this.stopPe();this.stopEvent(e);if(Event.wheel(this.event)<0){if(this.id<this.nCell){this.po=this.po-this.px;this.effaceP(this.id);this.id=this.id+1;this.move(this.po);}}else{if(this.id!=1){this.po=this.po+this.px;this.effaceP(this.id);this.id=this.id-1;this.move(this.po);}}}};function dwfaq_IEMacReloadPage(init){if(init==true){if(document.all&&navigator.appVersion.indexOf('Mac')!=-1){onresize=dwfaq_IEMacReloadPage;}}
else{location.reload();}}
dwfaq_IEMacReloadPage(true);function dwfaq_getCSSPropertyValue(obj,cP,jP){if(typeof(obj)!='object'){var obj=document.getElementById(obj);}
if(typeof(obj.currentStyle)!='object'){return(typeof(document.defaultView)=='object'&&document.defaultView.getComputedStyle(obj,''))?document.defaultView.getComputedStyle(obj,'').getPropertyValue(cP):obj.style.getPropertyValue(cP);}
else{return(navigator.appVersion.indexOf('Mac')!=-1)?obj.currentStyle.getPropertyValue(cP):obj.currentStyle.getAttribute((jP)?jP:cP);}}
function dwfaq_ToggleOMaticDisplay(){var obj,cS,args=dwfaq_ToggleOMaticDisplay.arguments;document.MM_returnValue=(typeof(args[0].href)!='string')?true:false;for(var i=1;i<args.length;i++){obj=document.getElementById(args[i]);if(obj){cS=dwfaq_getCSSPropertyValue(obj,'display');if(!obj.dwfaq_OD){obj.dwfaq_OD=(cS!='none'&&cS!='')?cS:(obj.tagName.toUpperCase()=='TR'&&cS!=='none')?'':(obj.tagName.toUpperCase()=='TR'&&typeof(obj.currentStyle)!='object')?'table-row':'block';}
obj.style.display=(cS!='none')?'none':obj.dwfaq_OD}}}
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_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
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_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 YY_checkform(){var a=YY_checkform.arguments,oo=true,v='',s='',err=false,r,o,at,o1,t,i,j,ma,rx,cd,cm,cy,dte,at;for(i=1;i<a.length;i=i+4){if(a[i+1].charAt(0)=='#'){r=true;a[i+1]=a[i+1].substring(1);}else{r=false}
o=MM_findObj(a[i].replace(/\[\d+\]/ig,""));o1=MM_findObj(a[i+1].replace(/\[\d+\]/ig,""));v=o.value;t=a[i+2];if(o.type=='text'||o.type=='password'||o.type=='hidden'){if(r&&v.length==0){err=true}
if(v.length>0)
if(t==1){ma=a[i+1].split('_');if(isNaN(v)||v<ma[0]/1||v>ma[1]/1){err=true}}else if(t==2){rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-zA-Z]{2,4}$");if(!rx.test(v))err=true;}else if(t==3){ma=a[i+1].split("#");at=v.match(ma[0]);if(at){cd=(at[ma[1]])?at[ma[1]]:1;cm=at[ma[2]]-1;cy=at[ma[3]];dte=new Date(cy,cm,cd);if(dte.getFullYear()!=cy||dte.getDate()!=cd||dte.getMonth()!=cm){err=true};}else{err=true}}else if(t==4){ma=a[i+1].split("#");at=v.match(ma[0]);if(!at){err=true}}else if(t==5){if(o1.length)o1=o1[a[i+1].replace(/(.*\[)|(\].*)/ig,"")];if(!o1.checked){err=true}}else if(t==6){if(v!=MM_findObj(a[i+1]).value){err=true}}}else
if(!o.type&&o.length>0&&o[0].type=='radio'){at=a[i].match(/(.*)\[(\d+)\].*/i);o2=(o.length>1)?o[at[2]]:o;if(t==1&&o2&&o2.checked&&o1&&o1.value.length/1==0){err=true}
if(t==2){oo=false;for(j=0;j<o.length;j++){oo=oo||o[j].checked}
if(!oo){s+='* '+a[i+3]+'\n'}}}else if(o.type=='checkbox'){if((t==1&&o.checked==false)||(t==2&&o.checked&&o1&&o1.value.length/1==0)){err=true}}else if(o.type=='select-one'||o.type=='select-multiple'){if(t==1&&o.selectedIndex/1==0){err=true}}else if(o.type=='textarea'){if(v.length<a[i+1]){err=true}}
if(err){s+='* '+a[i+3]+'\n';err=false}}
if(s!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+s)}
document.MM_returnValue=(s=='');}
function cwAssetLauncher(objLink,height,width,windowname){var mediaType;var mediaLocation=objLink.href;var scrollbars="no";mediaType=mediaLocation.substr(mediaLocation.length-3,3);switch(mediaType){case"swf":case"avi":mediaType="movie";break;case"cfm":case"htm":mediaType="page";scrollbars="yes";break;default:mediaType="image";break;}
MM_openBrWindow('/utility/nowshowing.cfm?media='+mediaType+'&file='+objLink.href+'&title='+objLink.title+'&width='+width+'&height='+height,windowname,'scrollbars='+scrollbars+',status=yes,resizable=yes,width='+width+',height='+height);}

//** Tab Content script v2.0- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
//** Updated Oct 7th, 07 to version 2.0. Contains numerous improvements:
// -Added Auto Mode: Script auto rotates the tabs based on an interval, until a tab is explicitly selected
// -Ability to expand/contract arbitrary DIVs on the page as the tabbed content is expanded/ contracted
// -Ability to dynamically select a tab either based on its position within its peers, or its ID attribute (give the target tab one 1st)
// -Ability to set where the CSS classname "selected" get assigned- either to the target tab's link ("A"), or its parent container
//** Updated Feb 18th, 08 to version 2.1: Adds a "tabinstance.cycleit(dir)" method to cycle forward or backward between tabs dynamically
//** Updated April 8th, 08 to version 2.2: Adds support for expanding a tab using a URL parameter (ie: http://mysite.com/tabcontent.htm?tabinterfaceid=0) 

////NO NEED TO EDIT BELOW////////////////////////

function ddtabcontent(tabinterfaceid){
	this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container
	this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container
	this.enabletabpersistence=true
	this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container
	this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array
	this.subcontentids=[] //Array to store ids of the sub contents ("rel" attr values)
	this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)
	this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")
}

ddtabcontent.getCookie=function(Name){ 
	var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
	if (document.cookie.match(re)) //if cookie found
		return document.cookie.match(re)[0].split("=")[1] //return its value
	return ""
}

ddtabcontent.setCookie=function(name, value){
	document.cookie = name+"="+value+";path=/" //cookie value is domain wide (path=/)
}

ddtabcontent.prototype={

	expandit:function(tabid_or_position){ //PUBLIC function to select a tab either by its ID or position(int) within its peers
		this.cancelautorun() //stop auto cycling of tabs (if running)
		var tabref=""
		try{
			if (typeof tabid_or_position=="string" && document.getElementById(tabid_or_position).getAttribute("rel")) //if specified tab contains "rel" attr
				tabref=document.getElementById(tabid_or_position)
			else if (parseInt(tabid_or_position)!=NaN && this.tabs[tabid_or_position].getAttribute("rel")) //if specified tab contains "rel" attr
				tabref=this.tabs[tabid_or_position]
		}
		catch(err){alert("Invalid Tab ID or position entered!")}
		if (tabref!="") //if a valid tab is found based on function parameter
			this.expandtab(tabref) //expand this tab
	},

	cycleit:function(dir, autorun){ //PUBLIC function to move foward or backwards through each hot tab (tabinstance.cycleit('foward/back') )
		if (dir=="next"){
			var currentTabIndex=(this.currentTabIndex<this.hottabspositions.length-1)? this.currentTabIndex+1 : 0
		}
		else if (dir=="prev"){
			var currentTabIndex=(this.currentTabIndex>0)? this.currentTabIndex-1 : this.hottabspositions.length-1
		}
		if (typeof autorun=="undefined") //if cycleit() is being called by user, versus autorun() function
			this.cancelautorun() //stop auto cycling of tabs (if running)
		this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])
	},

	setpersist:function(bool){ //PUBLIC function to toggle persistence feature
			this.enabletabpersistence=bool
	},

	setselectedClassTarget:function(objstr){ //PUBLIC function to set which target element to assign "selected" CSS class ("linkparent" or "link")
		this.selectedClassTarget=objstr || "link"
	},

	getselectedClassTarget:function(tabref){ //Returns target element to assign "selected" CSS class to
		return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref
	},

	urlparamselect:function(tabinterfaceid){
		var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)", "i")) //check for "?tabinterfaceid=2" in URL
		return (result==null)? null : parseInt(RegExp.$1) //returns null or index, where index (int) is the selected tab's index
	},

	expandtab:function(tabref){
		var subcontentid=tabref.getAttribute("rel") //Get id of subcontent to expand
		//Get "rev" attr as a string of IDs in the format ",john,george,trey,etc," to easily search through
		var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : ""
		this.expandsubcontent(subcontentid)
		this.expandrevcontent(associatedrevids)
		for (var i=0; i<this.tabs.length; i++){ //Loop through all tabs, and assign only the selected tab the CSS class "selected"
			this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("rel")==subcontentid)? "selected" : ""
		}
		if (this.enabletabpersistence) //if persistence enabled, save selected tab position(int) relative to its peers
			ddtabcontent.setCookie(this.tabinterfaceid, tabref.tabposition)
		this.setcurrenttabindex(tabref.tabposition) //remember position of selected tab within hottabspositions[] array
	},

	expandsubcontent:function(subcontentid){
		for (var i=0; i<this.subcontentids.length; i++){
			var subcontent=document.getElementById(this.subcontentids[i]) //cache current subcontent obj (in for loop)
			subcontent.style.display=(subcontent.id==subcontentid)? "block" : "none" //"show" or hide sub content based on matching id attr value
		}
	},

	expandrevcontent:function(associatedrevids){
		var allrevids=this.revcontentids
		for (var i=0; i<allrevids.length; i++){ //Loop through rev attributes for all tabs in this tab interface
			//if any values stored within associatedrevids matches one within allrevids, expand that DIV, otherwise, contract it
			document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)? "block" : "none"
		}
	},

	setcurrenttabindex:function(tabposition){ //store current position of tab (within hottabspositions[] array)
		for (var i=0; i<this.hottabspositions.length; i++){
			if (tabposition==this.hottabspositions[i]){
				this.currentTabIndex=i
				break
			}
		}
	},

	autorun:function(){ //function to auto cycle through and select tabs based on a set interval
		this.cycleit('next', true)
	},

	cancelautorun:function(){
		if (typeof this.autoruntimer!="undefined")
			clearInterval(this.autoruntimer)
	},

	init:function(automodeperiod){
		var persistedtab=ddtabcontent.getCookie(this.tabinterfaceid) //get position of persisted tab (applicable if persistence is enabled)
		var selectedtab=-1 //Currently selected tab index (-1 meaning none)
		var selectedtabfromurl=this.urlparamselect(this.tabinterfaceid) //returns null or index from: tabcontent.htm?tabinterfaceid=index
		this.automodeperiod=automodeperiod || 0
		for (var i=0; i<this.tabs.length; i++){
			this.tabs[i].tabposition=i //remember position of tab relative to its peers
			if (this.tabs[i].getAttribute("rel")){
				var tabinstance=this
				this.hottabspositions[this.hottabspositions.length]=i //store position of "hot" tab ("rel" attr defined) relative to its peers
				this.subcontentids[this.subcontentids.length]=this.tabs[i].getAttribute("rel") //store id of sub content ("rel" attr value)
				this.tabs[i].onclick=function(){
					tabinstance.expandtab(this)
					tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
					return false
				}
				if (this.tabs[i].getAttribute("rev")){ //if "rev" attr defined, store each value within "rev" as an array element
					this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))
				}
				if (selectedtabfromurl==i || this.enabletabpersistence && selectedtab==-1 && parseInt(persistedtab)==i || !this.enabletabpersistence && selectedtab==-1 && this.getselectedClassTarget(this.tabs[i]).className=="selected"){
					selectedtab=i //Selected tab index, if found
				}
			}
		} //END for loop
		if (selectedtab!=-1) //if a valid default selected tab index is found
			this.expandtab(this.tabs[selectedtab]) //expand selected tab (either from URL parameter, persistent feature, or class="selected" class)
		else //if no valid default selected index found
			this.expandtab(this.tabs[this.hottabspositions[0]]) //Just select first tab that contains a "rel" attr
		if (parseInt(this.automodeperiod)>500 && this.hottabspositions.length>1){
			this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod)
		}
	} //END int() function

} //END Prototype assignment