

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

Codewise Lite - JavaScript Library for "Community Workers"

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

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


var movieFileImage='\/media\/videos\/cbo_microsite_final.jpg';var movieFileFlash='\/media\/videos\/cbo_microsite_final.flv';var movieFileQuickTime='\/media\/videos\/cbo_microsite_final.mov';var movieWidth=368;var movieHeight=207;movieHeight=227;var moviePlayer='\/media\/flash\/flash_movie_player_01.swf';var e_menuLinks;var e_sectionAnchors;var sectionToDisplay='section1Container';var flashinstalled=0;var flashversion=0;var FlashPlayerVersionMinor=0;var FlashPlayerVersionRevision=0;var FlashPlayerVersionRequired=8;var FlashPlayerPluginObject='';var QuickTimePlayerInstalled=0;var QuickTimePlayerVersion=0;var QuickTimePlayerVersionRequired=6;var QuickTimePlayerPluginObject='';if((fDPO=='undefined')||(fDPO==null)){var fDPO='';};if((mFPO=='undefined')||(mFPO==null)){var mFPO='';};var agent='';if(navigator.userAgent){agent=navigator.userAgent.toLowerCase();}else{agent=navigator.appVersion.toLowerCase();};var is_major=parseInt(navigator.appVersion);var is_minor=parseFloat(navigator.appVersion);var is_ie=(agent.indexOf('msie')!=-1);var is_ie5=(is_ie&&(is_major==4)&&(agent.indexOf('msie 5.')!=-1));var is_ie6=(is_ie&&(is_major==4)&&(agent.indexOf('msie 6.')!=-1));var is_ie7=(is_ie&&(is_major==4)&&(agent.indexOf('msie 7')!=-1));var is_ie8=(is_ie&&(agent.indexOf('msie 8')!=-1));var is_ie7up=(is_ie&&(is_ie7||is_ie8));var is_safari=(agent.indexOf('safari')!=-1);var is_mozilla=((agent.indexOf('mozilla')!=-1)&&(agent.indexOf('netscape')==-1)&&!is_ie);if(is_mozilla){is_nav=false;is_nav6up=false;}if(is_safari){is_mozilla=false;};var is_firefox=(is_mozilla&&(agent.indexOf('firefox')!=-1));var is_firefox1r0=(is_firefox&&(agent.indexOf('firefox\/1.0')!=-1));var is_firefox1r5=(is_firefox&&(agent.indexOf('firefox\/1.5')!=-1));var is_firefox2r0=(is_firefox&&(agent.indexOf('firefox\/2.')!=-1));var is_firefox2up=(is_firefox&&!is_firefox1r0&&!is_firefox1r5);var is_firefox3r0=(is_firefox&&(agent.indexOf('firefox\/3.')!=-1));var is_firefox3up=(is_firefox&&!is_firefox1r0&&!is_firefox1r5&&!is_firefox2r0);var is_mac=(agent.indexOf('mac')!=-1);var is_iphone=(agent.indexOf('iphone')!=-1);var is_ipod=(agent.indexOf('ipod')!=-1);if(is_ipod){is_iphone=0;};document.getElementsByClassName=function(className){var allElementsByClassName=new Array();var allElements=document.getElementsByTagName('*');for(loop00=0;loop00<allElements.length;loop00++){if(allElements[loop00].className.indexOf(className)!=-1){allElementsByClassName[allElementsByClassName.length]=allElements[loop00];};};return allElementsByClassName;};document.getElementsByTagNameAndClassName=function(tagNameReference,classNameReference){var allElementsByTagNameAndClassName=new Array();var allElements=document.getElementsByTagName('*');for(loop00=0;loop00<allElements.length;loop00++){if((allElements[loop00].tagName.toLowerCase()==tagNameReference.toLowerCase())&&((allElements[loop00].className==classNameReference))||((allElements[loop00].className.indexOf(classNameReference+' ')!=-1)||(allElements[loop00].className.indexOf(' '+classNameReference)!=-1))){allElementsByTagNameAndClassName[allElementsByTagNameAndClassName.length]=allElements[loop00];};};return allElementsByTagNameAndClassName;};function hasClass(cE,cN){if(cE){var classNameRegExp=new RegExp('(\\s|^)'+cN+'(\\s|$)');return cE.className.match(classNameRegExp);};};function addClass(cE,cN){if(cE){if(!this.hasClass(cE,cN)){if(cE.className==''){cE.className=cN;}else{cE.className+=' '+cN;};};};};function removeClass(cE,cN){if(cE){if(hasClass(cE,cN)){var classNameRegExp=new RegExp('(\\s|^)'+cN+'(\\s|$)');cE.className=cE.className.replace(classNameRegExp,' ');};};};function cEV(cE,cS){var cEOH=document.getElementById(cE);if(cEOH){visibilityState=cEOH.style.visibility;visibilityState+='';if((cS=='toggle')&&((visibilityState=='')||(visibilityState=='inherit')||(visibilityState=='undefined'))){cEOH.style.visibility='hidden';}else if((cS=='toggle')&&((visibilityState!='')||(visibilityState!='inherit')||(visibilityState!='undefined'))){if((visibilityState=='visible')||(visibilityState=='show')){cEOH.style.visibility='hidden';}else if((visibilityState=='hidden')||(visibilityState=='hide')){cEOH.style.visibility='visible';};};if((cS=='show')||(cS=='visible')){cEOH.style.visibility='visible';}else if((cS=='hide')||(cS=='hidden')){cEOH.style.visibility='hidden';};};};function cED(cE,cS,dT){var cEOH=document.getElementById(cE);if(cEOH){displayState=cEOH.style.display;displayState+='';if(dT){if((cS=='toggle')&&((displayState=='')||(displayState=='inherit')||((displayState+'')=='undefined'))){if(dT=='block'){cEOH.style.display='block';}else if(dT=='inline'){cEOH.style.display='inline';}else if(dT=='list-item'){cEOH.style.display='list-item';};}else if((cS=='toggle')&&(!((displayState=='')||(displayState=='inherit')||((displayState+'')=='undefined')))){if(displayState=='none'){if(dT=='block'){cEOH.style.display='block';}else if(dT=='inline'){cEOH.style.display='inline';}else if(dT=='list-item'){cEOH.style.display='list-item';};}else{cEOH.style.display='none';};};}else{if(cS=='block'){cEOH.style.display='block';}else if(cS=='inline'){cEOH.style.display='inline';}else if(cS=='list-item'){cEOH.style.display='list-item';}else if(cS=='none'){cEOH.style.display='none';};};};};function cES(cE,sA,sV){var cEOH=document.getElementById(cE);if(cEOH&&sA&&sV){cEOH.style.sA=sV;};};function hAC(tN,cN){var hACLoopCount=0;if(document.getElementsByTagName&&tN&&cN){selectedTagArray=new Array;selectedTagArray=document.getElementsByTagName(tN);for(loop01=0;loop01<selectedTagArray.length;loop01++){if(selectedTagArray[loop01].className==cN){selectedTagArray[loop01].style.display='none';hACLoopCount++;};};};};if(window.ActiveXObject){try{FlashPlayerObject=new ActiveXObject('ShockwaveFlash.ShockwaveFlash');if(FlashPlayerObject){flashinstalled=2;FlashPlayerVersionTemp=FlashPlayerObject.GetVariable('$version');FlashPlayerVersionTempArray=FlashPlayerVersionTemp.split(' ')[1].split(',');flashversion=parseInt(FlashPlayerVersionTempArray[0],10);FlashPlayerVersionMinor=parseInt(FlashPlayerVersionTempArray[1],10);FlashPlayerVersionRevision=parseInt(FlashPlayerVersionTempArray[2],10);};}catch(err){flashinstalled=1;};try{QuickTimePlayerObject=new ActiveXObject('QuickTimeCheckObject.QuickTimeCheck.1');if(QuickTimePlayerObject){if(QuickTimePlayerObject.IsQuickTimeAvailable(0)){QuickTimePlayerInstalled=1;QuickTimePlayerVersion=Math.round((QuickTimePlayerObject.QuickTimeVersion.toString(16,10)/1000000)*10)/10;};};}catch(err){};}else if(navigator.plugins&&(navigator.plugins.length>0)){FlashPlayerPluginObject=navigator.plugins['Shockwave Flash'];if(FlashPlayerPluginObject){flashinstalled=2;if(FlashPlayerPluginObject.description){var pluginDescription=FlashPlayerPluginObject.description;flashversion=pluginDescription.split('.')[0].split('Shockwave Flash ')[1];FlashVersionSplitBy='  r';if(pluginDescription.indexOf(' d')!=-1){FlashVersionSplitBy=' d';};FlashPlayerVersionMinor=pluginDescription.split('.')[1].split(FlashVersionSplitBy)[0];FlashPlayerVersionRevision=pluginDescription.split('.')[1].split(FlashVersionSplitBy)[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;};};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_FlashContainer=document.getElementById(eFM_Container);var eFM_IdAttribute01HTML='';var eFM_IdAttribute02HTML='';if(eFM_OptionalParameters){var 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=fDPO+mFPO+'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_FlashContainer.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_QuickTimeContainer=document.getElementById(eQTM_Container);var eQTM_IdAttribute01HTML='';var eQTM_IdAttribute02HTML='';if(eQTM_OptionalParameters){var 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=fDPO+mFPO+'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_QuickTimeContainer.innerHTML=eQTM_ObjectTagHTML;};}else{};};if(location.hash){var hC=location.hash.substring(1,location.hash.length);if((hC=='section1')||(hC=='section2')||(hC=='section3')||(hC=='section4')){sectionToDisplay=hC+'Container';};};iSSHTML='';iSSHTML+=' div.section { display: none; }';if(sectionToDisplay!=''){iSSHTML+=' #'+sectionToDisplay+' { display: block; }';};if(is_ie){iSSHTML+=' #FacebookLogoContainer { margin-bottom: -40px; } #FacebookLogoContainer img {}';iSSHTML+=' div.section ol, div.section ul { margin-left: 40px; }';if(!is_ie7up){iSSHTML+=' html { background-image: none; }';iSSHTML+=' #pageContainer { background-image: url(../media/images/_cbo_body_bg.gif); }';iSSHTML+=' #rightColumn { background-color: #017bc4; }';iSSHTML+=' #logos img { float: right; }';iSSHTML+=' #footerContainer { background-image: url(../media/images/_cbo_footer_cap.gif); }';};};if(is_firefox&&!is_firefox3up){if(is_mac){};};if(document.write){iSSHTML='<style type="text\/css" media="screen"><!--'+iSSHTML+'--><\/style>';document.write(iSSHTML);};window.onload=function(){window.scrollTo(0,0);pI();aPI();};function pI(){pI_rML();pI_sML();pI_rSA();pI_eM();};function aPI(){};var e_menuLinks;function pI_rML(){e_menuLinks=document.getElementsByTagNameAndClassName('a','menu');if(e_menuLinks.length!=0){for(loop00=0;loop00<e_menuLinks.length;loop00++){e_menuLinks[loop00].className='menu';e_menuLinks[loop00].onclick=function(){pI_rML();sectionToDisplayTemp=this.href.split('#');sectionToDisplay=sectionToDisplayTemp[1]+'Container';hAC('div','section');cED(sectionToDisplay,'block');this.className='menu on';};};};};function pI_sML(){if(e_menuLinks.length!=0){for(loop00=0;loop00<e_menuLinks.length;loop00++){if((e_menuLinks[loop00].href.split('#')[1]+'Container')==sectionToDisplay){e_menuLinks[loop00].className+=' on';}else{};};};};function pI_rFW(){var e_FlashWarning=document.getElementById('FlashWarning');if(e_FlashWarning){if((flashinstalled==2)&&(flashversion>=FlashPlayerVersionRequired)){pI_rFMC();}else{e_FlashWarning.style.display='block';};};};function pI_rSA(){e_sectionAnchors=document.getElementsByTagNameAndClassName('a','sectionAnchor');if(e_sectionAnchors.length!=0){for(loop00=0;loop00<e_sectionAnchors.length;loop00++){e_sectionAnchors[loop00].parentNode.removeChild(e_sectionAnchors[loop00]);};};};var pI_eM_Count=1;function pI_eM(){e_movieContainer=document.getElementById('movieContainer');if(e_movieContainer){if((flashinstalled==2)&&(flashversion>=FlashPlayerVersionRequired)){embedFlashMovie(moviePlayer+'?file='+movieFileFlash+'&image='+movieFileImage,e_movieContainer.id,FlashPlayerVersionRequired,movieWidth,movieHeight,'menu=false,quality=best,wmode=transparent,allowFullScreen=true,allowScriptAccess=sameDomain,bgcolor=#000000,volume=50,id=movieContainerObject');}else if(QuickTimePlayerInstalled){if(is_ipod||is_iphone){e_movieContainer.innerHTML='<embed src="'+movieFileImage+'" href="'+movieFileQuickTime+'" target="myself" controller="false" autoplay="false" scale="1" cache="true" type="video\/quicktime" width="'+movieWidth+'" height="'+movieHeight+'" pluginspage="http:\/\/www.apple.com\/quicktime\/download\/" \/>';}else{embedQuickTimeMovie(movieFileQuickTime,e_movieContainer.id,QuickTimePlayerVersionRequired,movieWidth,movieHeight,'autoplay=true,controller=true,showlogo=false,volume=50,autohref=true,bgcolor=000000');};};e_movieContainer.style.visibility='visible';};};