

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Codewise Lite - JavaScript Library for Pioneer Pacific Camps

Copyright (c) 2004-2008 Codewise Systems Inc. & Twisted Lime Media Inc. 
All rights reserved.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */


var agent='';if(navigator.userAgent){agent=navigator.userAgent.toLowerCase();}else{agent=navigator.appVersion.toLowerCase();};var is_ie=(agent.indexOf('msie')!=-1);var is_ie7=(is_ie&&(agent.indexOf('msie 7.0')!=-1));var is_ie7up=(is_ie&&is_ie7);var is_safari=(agent.indexOf('safari')!=-1);var is_mac=(agent.indexOf('mac')!=-1);var rootSlash='\/';var URL=location.href;var URLProtocol=location.protocol;var URLHostName=location.hostname;var URLPort=location.port;var URLPath=location.pathname;var URLHash=location.hash;var URLSearch=location.search;if(URL.indexOf('?')!=-1){URLMinusQueryStringTemp=URL.split('\\');URLMinusQueryString=URLMinusQueryStringTemp[0];}else{URLMinusQueryString=URL;};if((fDPO=='undefined')||(fDPO==null)){var fDPO='';};if((mFPO=='undefined')||(mFPO==null)){var mFPO='';};var scr_W=screen.width;var scr_H=screen.height;var win_IH;var win_ISH;function dEV(){if(window.innerHeight){win_IH=window.innerHeight;win_ISH=document.height;}else if((document.documentElement)&&(document.documentElement.clientHeight)){win_IH=document.documentElement.clientHeight;win_ISH=document.documentElement.scrollHeight;}else if(document.body){win_IH=document.body.clientHeight;win_ISH=document.body.scrollHeight;};if(document.body.scrollHeight){win_ISH=document.body.scrollHeight;};if(document.height){win_ISH=document.height;};if(document.documentElement.scrollHeight){win_ISH=document.documentElement.scrollHeight;};if(is_ie7){win_ISH=document.documentElement.scrollHeight;};};function gCOT(){if(document.getElementsByTagName){tAArray=document.getElementsByTagName('a');tDivArray=document.getElementsByTagName('div');tIFrameArray=document.getElementsByTagName('iframe');tImgArray=document.getElementsByTagName('img');tLiArray=document.getElementsByTagName('li');tObjectArray=document.getElementsByTagName('object');tPArray=document.getElementsByTagName('p');tSpanArray=document.getElementsByTagName('span');tHrArray=document.getElementsByTagName('hr');};};var flashinstalled=0;var flashversion=0;var FlashPlayerVersionRequired=8;var FlashPlayerPluginObject='';var FlashMSDetect="false";var QuickTimePlayerInstalled=0;var QuickTimePlayerVersion=0;var QuickTimePlayerVersionRequired=1;var QuickTimePlayerPluginObject='';var QuickTimePlayerMSDetect="false";if((navigator.plugins)&&(navigator.plugins.length>0)){FlashPlayerPluginObject=navigator.plugins['Shockwave Flash'];if(FlashPlayerPluginObject){flashinstalled=2;if(FlashPlayerPluginObject.description){pluginDescription=FlashPlayerPluginObject.description;flashversion=pluginDescription.split('.')[0].split('Shockwave Flash')[1];};}else{flashinstalled=1;if(navigator.plugins['Shockwave Flash 2.0']){flashinstalled=2;flashversion=2;};};for(loop00=0;loop00<navigator.plugins.length;loop00++){if(navigator.plugins[loop00].name.indexOf('QuickTime')!=-1){QuickTimePlayerInstalled=1;QuickTimePlayerVersion=parseFloat(navigator.plugins[loop00].name.substring(18));};};}else if((navigator.mimeTypes)&&(navigator.mimeTypes.length)){FlashPlayerPluginObject=navigator.mimeTypes['application/FlashPlayerPluginObject-shockwave-flash'];if((FlashPlayerPluginObject)&&(FlashPlayerPluginObject.enabledPlugin)){flashinstalled=2;}else{flashinstalled=1;};}else{FlashMSDetect="true";QuickTimePlayerMSDetect="true";};var eFM_ObjectTagHTML='';var eFM_EmbedTagHTML='';function embedFlashMovie(eFM_Filename,eFM_Container,eFM_PlayerVersion,eFM_Width,eFM_Height,eFM_OptionalParameters){eFM_ObjectTagHTML='';eFM_EmbedTagHTML='';if(document.getElementById(eFM_Container)){var e_FC=document.getElementById(eFM_Container);var eFM_IdAttribute01HTML='';var eFM_IdAttribute02HTML='';if(eFM_OptionalParameters){eFM_Temp01=eFM_OptionalParameters.split(',');for(loop00=0;loop00<eFM_Temp01.length;loop00++){eFM_Temp02=eFM_Temp01[loop00].split('=');if(eFM_Temp02[0]=='id'){eFM_IdAttribute01HTML+='id="'+eFM_Temp02[1]+'" ';eFM_IdAttribute02HTML+='name="'+eFM_Temp02[1]+'" ';};};};if(eFM_Filename.indexOf('\/')==-1){eFM_Filename=rootSlash+'media\/flash\/'+eFM_Filename;};eFM_ObjectTagHTML+='<object '+eFM_IdAttribute01HTML+'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version='+eFM_PlayerVersion+',0,0,0" width="'+eFM_Width+'" height="'+eFM_Height+'">';eFM_ObjectTagHTML+='<param name="movie" value="'+eFM_Filename+'" \/>';eFM_EmbedTagHTML+='<embed '+eFM_IdAttribute02HTML+'pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" src="'+eFM_Filename+'" width="'+eFM_Width+'" height="'+eFM_Height+'"';if(eFM_OptionalParameters){for(loop00=0;loop00<eFM_Temp01.length;loop00++){eFM_Temp02=eFM_Temp01[loop00].split('=');if(eFM_Temp02[0]!='id'){eFM_ObjectTagHTML+='<param name="'+eFM_Temp02[0]+'" value="'+eFM_Temp02[1]+'" />';eFM_EmbedTagHTML+=' '+eFM_Temp02[0]+'="'+eFM_Temp02[1]+'"';};};};eFM_EmbedTagHTML+='><\/embed>';eFM_ObjectTagHTML+=eFM_EmbedTagHTML+'<\/object>';if((flashinstalled==2)&&(flashversion>=eFM_PlayerVersion)){e_FC.innerHTML=eFM_ObjectTagHTML;};}else{};};var eQTM_ObjectTagHTML='';var eQTM_EmbedTagHTML='';function embedQuickTimeMovie(eQTM_Filename,eQTM_Container,eQTM_PlayerVersion,eQTM_Width,eQTM_Height,eQTM_OptionalParameters){eQTM_ObjectTagHTML='';eQTM_EmbedTagHTML='';if(document.getElementById(eQTM_Container)){var e_QC=document.getElementById(eQTM_Container);var eQTM_IdAttribute01HTML='';var eQTM_IdAttribute02HTML='';if(eQTM_OptionalParameters){eQTM_Temp01=eQTM_OptionalParameters.split(',');for(loop00=0;loop00<eQTM_Temp01.length;loop00++){eQTM_Temp02=eQTM_Temp01[loop00].split('=');if(eQTM_Temp02[0]=='id'){eQTM_IdAttribute01HTML+='id="'+eQTM_Temp02[1]+'" ';eQTM_IdAttribute02HTML+='name="'+eQTM_Temp02[1]+'" ';}else if((eQTM_Temp02[0]=='controller')&&(eQTM_Temp02[1]=='true')){eQTM_Height+=16;};};};if(eQTM_Filename.indexOf('\/')==-1){eQTM_Filename=rootSlash+'media\/quicktime\/'+eQTM_Filename;};eQTM_ObjectTagHTML+='<object '+eQTM_IdAttribute01HTML+'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http:\/\/www.apple.com\/qtactivex\/qtplugin.cab" width="'+eQTM_Width+'" height="'+eQTM_Height+'">';eQTM_ObjectTagHTML+='<param name="type" value="video\/quicktime" \/>';eQTM_ObjectTagHTML+='<param name="src" value="'+eQTM_Filename+'" \/>';eQTM_EmbedTagHTML+='<embed '+eQTM_IdAttribute02HTML+'pluginspage="http:\/\/www.apple.com\/quicktime\/download\/" type="video\/quicktime" src="'+eQTM_Filename+'" width="'+eQTM_Width+'" height="'+eQTM_Height+'"';if(eQTM_OptionalParameters){for(loop00=0;loop00<eQTM_Temp01.length;loop00++){eQTM_Temp02=eQTM_Temp01[loop00].split('=');if(eQTM_Temp02[0]!='id'){eQTM_ObjectTagHTML+='<param name="'+eQTM_Temp02[0]+'" value="'+eQTM_Temp02[1]+'" />';eQTM_EmbedTagHTML+=' '+eQTM_Temp02[0]+'="'+eQTM_Temp02[1]+'"';};};};eQTM_EmbedTagHTML+='><\/embed>';eQTM_ObjectTagHTML+=eQTM_EmbedTagHTML+'<\/object>';if(QuickTimePlayerInstalled&&(QuickTimePlayerVersion>=eQTM_PlayerVersion)){e_QC.innerHTML=eQTM_ObjectTagHTML;};}else{};};var iSSHTML='';if(document.write){iSSHTML+=' #bannerContainer, #contentContainer { visibility: hidden; }';if(is_ie){iSSHTML+=' ul.menu li { list-style-image: none; }';iSSHTML+=' #navContainer ul.secondary-links { width: 300px; }';if(!is_ie7up){iSSHTML+=' #navContainer ul li { padding: 20px 10px 0px 10px; }';iSSHTML+=' #navContainer ul li.last { padding: 20px 10px 0px 10px; }';iSSHTML+=' #navContainer ul.primary-links li { background-image: none !important; border-right: 1px solid #ffffff; }';iSSHTML+=' #navContainer ul.primary-links li.last { background-image: none !important; border-right: 0px solid #ffffff !mportant; }';iSSHTML+=' #navContainer ul.secondary-links { width: 340px; margin-right: 0px; }';iSSHTML+=' #navContainer ul.secondary-links li { background-image: none !important; }';iSSHTML+=' #logoContainer { margin-top: -124px; }';iSSHTML+=' #bannerContainerOverlay { width: 940px; }';iSSHTML+=' #bannerContainerOverlay.insidePage { margin-top: -170px; }';iSSHTML+=' #footerContainer { height: 35px; overflow: hidden; padding: 25px; }';};}else{iSSHTML+=' #bannerContainer.homePage { height: 360px; }';iSSHTML+=' #bannerContainer.insidePage { height: 200px; }';iSSHTML+=' #bannerContainerOverlay.homePage { margin-top: -363px; }';iSSHTML+=' #bannerContainerOverlay.insidePage { margin-top: -203px; }';iSSHTML+=' #leftHandTopContentColumn { position: absolute; margin-top: -98px; }';};if(is_safari){iSSHTML+='';};if(is_mac){iSSHTML+=' #slogan { letter-spacing: 1px; }';};if(iSSHTML!=''){iSSHTML='<style type="text\/css" media="screen"><!--\n'+iSSHTML+'\n--><\/style>';document.write(iSSHTML);};};var blank_transparent_image=new Image();blank_transparent_image.src=rootSlash+'media\/images\/blank\/blank_transparent.gif';var banner_container_overlay_home_page=new Image();banner_container_overlay_home_page.src=rootSlash+'media\/images\/gui\/banner_overlay_home.png';var banner_container_overlay_inside_page=new Image();banner_container_overlay_inside_page.src=rootSlash+'media\/images\/gui\/banner_overlay.png';function rI(imgId){if(document.images[imgId]){if(is_ie){document.getElementById(imgId).src=eval(imgId+'_on.src');if((!is_ie7up)&&(document.getElementById(imgId).className.indexOf('transparentPNG')!=-1)){CSI_rTPNGI(imgId);};}else{document.images[imgId].src=eval(imgId+'_on.src');};};};function rO(imgId){if(document.images[imgId]){if(is_ie){document.getElementById(imgId).src=eval(imgId+'_off.src');if((!is_ie7up)&&(document.getElementById(imgId).className.indexOf('transparentPNG')!=-1)){CSI_rTPNGI(imgId);};}else{document.images[imgId].src=eval(imgId+'_off.src');};};};function CSI_rTPNGI(imgId){if(is_ie&&(!is_ie7up)){if(imgId){document.getElementById(imgId).style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='+"'true'"+', src='+"'"+document.getElementById(imgId).src+"'"+')';document.getElementById(imgId).src=blank_transparent_image.src;}else{for(loop01=0;loop01<tImgArray.length;loop01++){if(tImgArray[loop01].className.indexOf('transparentPNG')!=-1){imgWidth=tImgArray[loop01].width;imgHeight=tImgArray[loop01].height;imgSrc=tImgArray[loop01].src;tImgArray[loop01].width=imgWidth;tImgArray[loop01].height=imgHeight;tImgArray[loop01].style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='+"'true'"+', src='+"'"+imgSrc+"'"+')';tImgArray[loop01].src=blank_transparent_image.src;};};};};};function PPC_pI_hN(){var e_CL='';var e_NC=document.getElementById('navContainer');var e_NC_Links=e_NC.getElementsByTagName('A');for(loop01=0;loop01<tAArray.length;loop01++){e_CL=tAArray[loop01];if(e_CL.href==URLMinusQueryString){e_CL.className='highlightedLink';e_CL.onclick=function(){return false;};};};};function pI(){gCOT();PPC_pI_rBO();PPC_pI_hN();CSI_rTPNGI();};function PPC_pI_sBO(){var e_BC=document.getElementById('bannerContainer');if(e_BC){e_BC.style.visibility='visible';};};function PPC_pI_rBO(){var e_BC=document.getElementById('bannerContainer');var e_CC=document.getElementById('contentContainer');if(e_BC&&e_CC){var e_BCI=e_BC.getElementsByTagName('IMG');if((e_BC.className=='homePage')&&(e_BCI[0])&&((flashinstalled==2)&&(flashversion>=FlashPlayerVersionRequired))){var bannerImageFileTemp=e_BCI[0].src.split('\/');var bannerImageFile=bannerImageFileTemp[(bannerImageFileTemp.length-1)];var bannerFlashFileTemp=bannerImageFile.split('.');var bannerFlashFile=bannerFlashFileTemp[0]+'.swf';embedFlashMovie(bannerFlashFile,e_BC.id,8,940,360,'menu=false,quality=best,wmode=transparent');};var e_BCO=document.createElement('IMG');e_BCO.id='bannerContainerOverlay';if(e_BC.className=='homePage'){e_BCO.src=banner_container_overlay_home_page.src;e_BCO.className='homePage';e_CC.className='homePage';}else{e_BCO.src=banner_container_overlay_inside_page.src;e_BCO.className='insidePage';e_CC.className='insidePage';};e_BC.appendChild(e_BCO);if(is_ie){if(!is_ie7up){CSI_rTPNGI(e_BCO.id);};setTimeout('PPC_pI_sBO();',500);}else{e_BC.style.visibility='visible';};e_CC.style.visibility='visible';};};function iPL(){};function aPI(){};onload=function(){dEV();gCOT();pI();aPI();iPL();};