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_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_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 MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
function MM_displayStatusMsg(msgStr){status=msgStr;document.MM_returnValue=true;}
function nirvana_positionWindow(theURL,winName,features){window.open(theURL,winName,features);}
function MM_reloadPage(init){if(init==true)with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}
else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload();}
MM_reloadPage(true);function MM_nbGroup(event,grpName){var i,img,nbArr,args=MM_nbGroup.arguments;if(event=="init"&&args.length>2){if((img=MM_findObj(args[2]))!=null&&!img.MM_init){img.MM_init=true;img.MM_up=args[3];img.MM_dn=img.src;if((nbArr=document[grpName])==null)nbArr=document[grpName]=new Array();nbArr[nbArr.length]=img;for(i=4;i<args.length-1;i+=2)if((img=MM_findObj(args[i]))!=null){if(!img.MM_up)img.MM_up=img.src;img.src=img.MM_dn=args[i+1];nbArr[nbArr.length]=img;}}}else if(event=="over"){document.MM_nbOver=nbArr=new Array();for(i=1;i<args.length-1;i+=3)if((img=MM_findObj(args[i]))!=null){if(!img.MM_up)img.MM_up=img.src;img.src=(img.MM_dn&&args[i+2])?args[i+2]:((args[i+1])?args[i+1]:img.MM_up);nbArr[nbArr.length]=img;}}else if(event=="out"){for(i=0;i<document.MM_nbOver.length;i++){img=document.MM_nbOver[i];img.src=(img.MM_dn)?img.MM_dn:img.MM_up;}}else if(event=="down"){nbArr=document[grpName];if(nbArr)
for(i=0;i<nbArr.length;i++){img=nbArr[i];img.src=img.MM_up;img.MM_dn=0;}
document[grpName]=nbArr=new Array();for(i=2;i<args.length-1;i+=2)if((img=MM_findObj(args[i]))!=null){if(!img.MM_up)img.MM_up=img.src;img.src=img.MM_dn=(args[i+1])?args[i+1]:img.MM_up;nbArr[nbArr.length]=img;}}}
function MM_validateForm(){var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;for(i=0;i<(args.length-2);i+=3){test=args[i+2];val=MM_findObj(args[i]);if(val){nm=val.name;if((val=val.value)!=""){if(test.indexOf('isEmail')!=-1){p=val.indexOf('@');if(p<1||p==(val.length-1))errors+='- '+nm+' must contain an e-mail address.\n';}else if(test!='R'){num=parseFloat(val);if(isNaN(val))errors+='- '+nm+' must contain a number.\n';if(test.indexOf('inRange')!=-1){p=test.indexOf(':');min=test.substring(8,p);max=test.substring(p+1);if(num<min||max<num)errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';}}}else if(test.charAt(0)=='R')errors+='- '+nm+' is required.\n';}}if(errors)alert('The following error(s) occurred:\n'+errors);document.MM_returnValue=(errors=='');}
var cagsf_slideSpeed=15;var cagsf_timer=10;var objectIdToSlideDown=false;var cagsf_activeId=false;var cagsf_slideInProgress=false;function showHideContent(e,inputId)
{if(cagsf_slideInProgress)return;cagsf_slideInProgress=true;if(!inputId)inputId=this.id;inputId=inputId+'';var numericId=inputId.replace(/[^0-9]/g,'');var answerDiv=document.getElementById('cagsf_a'+numericId);objectIdToSlideDown=false;if(!answerDiv.style.display||answerDiv.style.display=='none'){if(cagsf_activeId&&cagsf_activeId!=numericId){objectIdToSlideDown=numericId;slideContent(cagsf_activeId,(cagsf_slideSpeed*-1));}else{answerDiv.style.display='block';answerDiv.style.visibility='visible';slideContent(numericId,cagsf_slideSpeed);}}else{slideContent(numericId,(cagsf_slideSpeed*-1));cagsf_activeId=false;}}
function slideContent(inputId,direction)
{var obj=document.getElementById('cagsf_a'+inputId);var contentObj=document.getElementById('cagsf_ac'+inputId);height=obj.clientHeight;if(height==0)height=obj.offsetHeight;height=height+direction;rerunFunction=true;if(height>contentObj.offsetHeight){height=contentObj.offsetHeight;rerunFunction=false;}
if(height<=1){height=1;rerunFunction=false;}
obj.style.height=height+'px';var topPos=height-contentObj.offsetHeight;if(topPos>0)topPos=0;contentObj.style.top=topPos+'px';if(rerunFunction){setTimeout('slideContent('+inputId+','+direction+')',cagsf_timer);}else{if(height<=1){obj.style.display='none';if(objectIdToSlideDown&&objectIdToSlideDown!=inputId){document.getElementById('cagsf_a'+objectIdToSlideDown).style.display='block';document.getElementById('cagsf_a'+objectIdToSlideDown).style.visibility='visible';slideContent(objectIdToSlideDown,cagsf_slideSpeed);}else{cagsf_slideInProgress=false;}}else{cagsf_activeId=inputId;cagsf_slideInProgress=false;}}}
function initShowHideDivs()
{var divs=document.getElementsByTagName('DIV');var divCounter=1;for(var no=0;no<divs.length;no++){if(divs[no].className=='cagsf_title'){divs[no].onclick=showHideContent;divs[no].id='cagsf_q'+divCounter;var answer=divs[no].nextSibling;while(answer&&answer.tagName!='DIV'){answer=answer.nextSibling;}
answer.id='cagsf_a'+divCounter;contentDiv=answer.getElementsByTagName('DIV')[0];contentDiv.style.top=0-contentDiv.offsetHeight+'px';contentDiv.className='cagsf_details_content';contentDiv.id='cagsf_ac'+divCounter;answer.style.display='none';answer.style.height='1px';divCounter++;}}}
function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop){newWindow=window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);newWindow.document.open();newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');if(imageType=="swf"){newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');newWindow.document.write('</embed></object>');}else{newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">');}
newWindow.document.write('</body></html>');newWindow.document.close();newWindow.focus();}
var isNN=(navigator.appName.indexOf("Netscape")!=-1);function autoTab(input,len,e){var keyCode=(isNN)?e.which:e.keyCode;var filter=(isNN)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];if(input.value.length>=len&&!containsElement(filter,keyCode)){input.value=input.value.slice(0,len);input.form[(getIndex(input)+1)%input.form.length].focus();}
function containsElement(arr,ele){var found=false,index=0;while(!found&&index<arr.length)
if(arr[index]==ele)
found=true;else
index++;return found;}
function getIndex(input){var index=-1,i=0,found=false;while(i<input.form.length&&index==-1)
if(input.form[i]==input)index=i;else i++;return index;}
return true;}