//INIT Function function init(){ MM_preloadImages('media/images/nav1_down.png','media/images/nav2_down.png','media/images/nav3_down.png','media/images/home-secnav1_down.png','media/images/home-secnav2_down.png','media/images/home-secnav3_down.png','media/images/home-secnav4_down.png'); } // HREF FUNCTION function hrefFormat(loc){ var base = document.getElementsByTagName('base'); if (base && base[0] && base[0].href) { loc = base[0].href + loc; } return loc; } // LINK FUNCTION function gohref(loc){ loc = hrefFormat(loc); location.href = loc; } function sessionAppend() { var session_string = ""; return session_string; } // SITE SEARCH function SearchSubmit(x) { if (document.searchForm.search_term.value == "" && document.searchForm.search_near.value == "") { alert("Please enter a search term."); } else { gohref('index.php?level2=' + x + '&search_term=' + document.searchForm.search_term.value + '&search_near=' + document.searchForm.search_near.value + sessionAppend()); } } function PrintFrame(){ var DivCont = document.getElementById("content").innerHTML; window.frames.myiFrame.document.getElementById("printcontent").innerHTML= DivCont; document.getElementById("myiFrame").contentWindow.focus(); document.getElementById("myiFrame").contentWindow.print(); } function RemoveThis(x,y,z){ if(confirm('Are you sure you would like to remove this ' + x + '?')){ gohref(y); } } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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 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 launchWindow(v,w,x,y,z) { PopUpWindow = window.open (hrefFormat(v), w, "location=no,toolbar=no,scrollbars=no,width=" + x + ",height=" + y + ",resizeable=" + z); PopUpWindow.opener.name = "index_parent"; } /* Simple Image Trail script- By JavaScriptKit.com Visit http://www.javascriptkit.com for this script and more This notice must stay intact */ function gettrailobj(){ if (document.getElementById) return document.getElementById("trailimageid").style else if (document.all) return document.all.trailimagid.style } function gettrailobjnostyle(){ if (document.getElementById) return document.getElementById("trailimageid") else if (document.all) return document.all.trailimagid } function truebody(){ return (!window.opera && document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body } function followmouse(e){ var xcoord=offsetfrommouse[0] var ycoord=offsetfrommouse[1] var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15 var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) : Math.min(window.innerHeight) if (typeof e != "undefined"){ xcoord = e.pageX - xcoord - 600; // Move to the left side of the cursor if (docheight - e.pageY < (currentimageheight + 110)){ ycoord += e.pageY - Math.max(0,(80 + currentimageheight + e.pageY - docheight - truebody().scrollTop)); } else { ycoord += e.pageY; } } else if (typeof window.event != "undefined"){ xcoord = event.clientX + truebody().scrollLeft - xcoord - 600; // Move to the left side of the cursor if (docheight - event.clientY < (currentimageheight + 110)){ ycoord += event.clientY + truebody().scrollTop - Math.max(0,(80 + currentimageheight + event.clientY - docheight)); } else { ycoord += truebody().scrollTop + event.clientY; } } var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15 var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight) if(ycoord < 0){ ycoord = ycoord*-1; } gettrailobj().left=xcoord+"px" gettrailobj().top=ycoord+"px" } function showtrail(showthumb,width,height,imagename){ document.onmousemove=followmouse; currentimageheight = (height > 0 ? height : currentimageheight); newHTML = '
'; gettrailobjnostyle().innerHTML = newHTML; gettrailobj().visibility="visible"; } function hidetrail(){ gettrailobj().visibility = "hidden"; document.onmousemove = ""; gettrailobj().left = "-500px"; } window.onload = init; /* SWFObject v2.1 Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License */ var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("