﻿function viewFlash(src,w,h,loop,play){var width=parseInt(w),height=parseInt(h);eval("win = window.open('','Flash', 'toolbar=0,scrollbars=0,location=0,status=0,resizable=1,menubar=0,width="+width+",height="+height+"');");win.document.writeln("<html>");win.document.writeln("<head><title>Flash Movie</title></head>");win.document.writeln("<body>");objectTag='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"';win.document.write(objectTag);win.document.write(' width="'+width+'"');win.document.writeln(' height="'+height+'">');win.document.writeln('<param name="movie" value="'+src+'">');win.document.writeln('<param name="loop" value="'+loop+'">');win.document.writeln('<param name="play" value="'+play+'">');win.document.writeln('<embed src="'+src+'" loop="'+loop+'" play="'+play+'" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />');win.document.writeln("</object>");win.document.writeln("</body></html>")}function viewChat(a,b){props="toolbar=0,scrollbars=0,location=0,status=0,resizable=1,menubar=0,width=584,height=410";win=window.open("","Chat",props);win.document.writeln("<html>");win.document.writeln("<head><title>Chat Room</title></head>");win.document.writeln("<body>");win.document.writeln('<applet codebase="'+b+'" archive="multichat.jar" CODE="GUIClient.class" width="562" height="385" align="BOTTOM">');win.document.writeln('<param name="CABBASE" value="multichat.cab">');win.document.writeln('<param name="roomid" value="'+a+'">');win.document.writeln("</applet>");win.document.writeln("</body></html>")}function popUp(URL,type){switch(type){case "guestbook":width=675;height=500;break;case "forum":width=675;height=500;break;default:width=550;height=580}var token=URL.indexOf("?")>-1?"&amp;":"?";uniqueId=genUniqueId();URL=URL+genUniqueParam(token);var leftPosition=(screen.width-width-20)/2,topPosition=(screen.height-height)/4;eval("win = window.open(URL, '"+type+"', 'toolbar=0,scrollbars=1,location=0,status=1,resizable=1,menubar=0,width="+width+",height="+height+",left="+leftPosition+",top="+topPosition+"');");if(parseInt(navigator.appVersion)>=4)win.window.focus()}function genUniqueId(){day=new Date;return day.getTime()}function genUniqueParam(a){return a+"unique_id="+genUniqueId()}function displayThumb(src,width,height,title){var winWidth=650,winHeight=510;eval("win = window.open('','Thumb', 'toolbar=0,scrollbars=1,location=0,status=0,resizable=1,menubar=0,width="+winWidth+",height="+winHeight+"');");win.document.open();win.document.writeln("<html>");if(null!=title&&title!="")win.document.writeln("<head><title>"+title+"</title></head>");else win.document.writeln("<head><title>Thumbnail Image</title></head>");win.document.writeln("<body>");win.document.writeln('<center><table border="0">');if(width==0)win.document.writeln('<tr><td align="center"><img src="'+src+'"></td></tr>');else if(height==0)win.document.writeln('<tr><td align="center"><img width="'+width+'" src="'+src+'"></td></tr>');else win.document.writeln('<tr><td align="center"><img width="'+width+'" height="'+height+'" src="'+src+'"></td></tr>');if(null!=title&&title!="")win.document.writeln('<tr><td align="center">'+title+"</td></tr>");win.document.writeln("</table></center>");win.document.writeln("</body></html>")}function genURL(e,a){var l=document.getElementById(a).elements[0].value,b=document.getElementById(a).elements[1].value,d=document.getElementById(a).elements[2].value,c=document.getElementById(a).elements[3].value,k=document.getElementById(a).elements[4].value,f=document.getElementById(a).elements[5].value,g=document.getElementById(a).elements[6].value,h=document.getElementById(a).elements[7].value,j=document.getElementById(a).elements[8].value;if(c=="")if(b==""||d==""){alert("Type a City and State, or a Postal/ZIP Code, and then click Continue.");return false}var i=e+"&street_address="+l+"&city="+b+"&state="+d+"&postal_code="+c+"&country="+k+"&latitude="+f+"&longitude="+g+"&userid="+h+"&website_id="+j;popUp(i)}var navcontname,menumainwidth=100,navmode=0,fldr=0,fldrorg=0,menuids=[],menuparitem=[],menuparindex=[],itemchildren=[],timerID,menuactv=0,itemids=[],itemparids=[],itemchild=[],linkarr=[],xSize=0,ySize=0,menuids_ct=1,itemids_ct=0,step_ct=0,nodeposition=[],nodelength=[],absdepth=0,deptharr=[];function parseMenus(){if(document.getElementById("nav-left")){navmode=0;fldr=0}else if(document.getElementById("nav-right")){navmode=1;fldr=1}else if(document.getElementById("nav-top")){navmode=2;fldr=0}fldrorg=fldr;navcontname=document.getElementById("navcontainer");menuids[0]=navcontname;menuparitem[0]=navcontname;deptharr[0]=navcontname;nodeposition[0]=0;nodelength[0]=deptharr[0].childNodes.length;do{if(deptharr[absdepth].childNodes[nodeposition[absdepth]].tagName=="DIV")if(deptharr[absdepth].childNodes[nodeposition[absdepth]].className.indexOf("submenu")!=-1){menuids[menuids_ct]=deptharr[absdepth].childNodes[nodeposition[absdepth]];deptharr[absdepth+1]=menuids[menuids_ct];menuparitem[menuids_ct]=itemids[itemids_ct-1];menuparindex[menuids_ct]=itemids_ct;itemchildren[menuids_ct]=menuids[menuids_ct];itemchild[itemids_ct-1]=menuids[menuids_ct];rolladd="rollMenu("+menuids_ct+")";rolladdout="rollMenu(0)";eval("menuparitem[menuids_ct].onmouseover=function(){"+rolladd+"}");eval("menuparitem[menuids_ct].onmouseout=function(){"+rolladdout+"}");nodelength[absdepth+1]=deptharr[absdepth].childNodes[nodeposition[absdepth]].childNodes.length-1;absdepth++;nodeposition[absdepth]=-1;menuids_ct++}else{itemids[itemids_ct]=deptharr[absdepth].childNodes[nodeposition[absdepth]];itemparids[itemids_ct]=menuids[menuids_ct-1];nodelength[absdepth+1]=deptharr[absdepth].childNodes[nodeposition[absdepth]].childNodes.length-1;absdepth++;deptharr[absdepth]=itemids[itemids_ct];nodeposition[absdepth]=-1;itemids_ct++}else if(deptharr[absdepth].childNodes[nodeposition[absdepth]].tagName=="A"){deptharr[absdepth].childNodes[nodeposition[absdepth]].id="sublink"+itemids_ct;linkarr[itemids_ct]=deptharr[absdepth].childNodes[nodeposition[absdepth]]}nodeposition[absdepth]++;if(nodeposition[absdepth]>nodelength[absdepth])do{absdepth--;nodeposition[absdepth]++}while(nodeposition[absdepth]>nodelength[absdepth])}while(nodeposition[0]<nodelength[0])}function positionMenus(){menumainheight=document.getElementById("navcontainer").clientHeight;if(navmode==0)for(i=1;i<menuids.length;i++){ofst=0;ofsl=0;ofsw=0;menuids[i].style.position="absolute";menuids[i].style.zIndex="10000"+i;ofsw=menuids[i].clientWidth;menuids[i].style.width=ofsw;ofst=linkarr[menuparindex[i]].offsetTop;ofsl=menuparitem[i].offsetLeft+menuparitem[i].clientWidth;edgeAdjuster(ofsl,ofst,ofsw,i)}else if(navmode==1)for(i=1;i<menuids.length;i++){ofst=0;ofsl=0;ofsw=0;menuids[i].style.position="absolute";menuids[i].style.zIndex="10000"+i;ofsw=menuids[i].clientWidth;menuids[i].style.width=ofsw;ofst=linkarr[menuparindex[i]].offsetTop;ofsl=menuparitem[i].offsetLeft-menuids[i].clientWidth;edgeAdjuster(ofsl,ofst,ofsw,i)}else if(navmode==2)for(i=1;i<menuids.length;i++){ofst=0;ofsl=0;ofsw=0;menuids[i].style.zIndex="10000"+i;ofsw=menuparitem[i].clientWidth;if(menuparitem[i].offsetParent.id)ofst=menumainheight+2;else{ofst=linkarr[menuparindex[i]].offsetTop;ofsl=menuparitem[i].offsetLeft+menuparitem[i].clientWidth}edgeAdjuster(ofsl,ofst,ofsw,i)}}function edgeAdjuster(b,d,a,c){getPageSizes();xpg=0;ypg=0;myobj=menuids[c];do{xtest=myobj.offsetLeft;ytest=myobj.offsetTop;if(myobj.offsetLeft>0)xpg+=myobj.offsetLeft;if(myobj.offsetTop>0)ypg+=myobj.offsetTop;myobj=myobj.offsetParent}while(myobj.tagName!="BODY"&&myobj.tagName!="HTML");if(navmode==0||navmode==2)if(fldr==0){if(xpg+b+a>xSize){if(xpg>a)b-=a*2;fldr=1}}else if(xpg-b<0)fldr=0;else b-=a*2;if(navmode==1)if(fldr==0)if(xpg+a*2>=xSize)fldr=1;else b+=a*2;else if(xpg-a<=-1){b+=a*2;fldr=0}if(navmode==2){if(menuids[c].offsetParent.offsetParent.id!="navcontainer")menuids[c].style.left=b+"px"}else menuids[c].style.left=b+"px";menuids[c].style.top=d+"px";menuids[c].style.visibility="hidden"}function getPageSizes(){if(typeof window.innerWidth=="number"){xSize=window.innerWidth;ySize=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){xSize=document.documentElement.clientWidth;ySize=document.documentElement.clientHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){xSize=document.body.clientWidth;ySize=document.body.clientHeight}}function processMenus(){parseMenus();positionMenus()}function resetMenus(){for(i=1;i<menuids.length;i++)menuids[i].style.left="0px";fldr=fldrorg;positionMenus()}function rollMenu(a){olx=xSize;oly=ySize;getPageSizes();if(olx!=xSize||oly!=ySize)resetMenus();if(a>0){clearTimeout(timerID);turnOff(a);menuactv=1;itemchildren[a].style.visibility="visible"}else{menuactv=0;clearTimeout(timerID);timerID=setTimeout("turnOff()",300)}}function turnOff(a){if(menuactv==0)for(i=0;i<itemchildren.length;i++)if(itemchildren[i]&&i!=a)itemchildren[i].style.visibility="hidden"}