var playerCodeGlobal="",slArray=[];function renderPlayer(playerCode,playerWidth,playerHeight){playerWidth=320;playerHeight=240;playerCodeGlobal=playerCode;var player=document.getElementById("Player1Container_p"),player_a=document.getElementById("Player1Container_a"),top=playerHeight/2+340,left=507-playerWidth/2;if(player!=null){player.style.display="";player_a.style.display="";player.style.left=left.toString()+"px";player.style.top="-"+top.toString()+"px";player.style.width=playerWidth.toString()+"px";player.style.height=playerHeight.toString()+"px";eval(playerCode)}else displayPlayer1Error()}function hidePlayer(){var player=document.getElementById("Player1Container_p"),player_a=document.getElementById("Player1Container_a");if(player!=null){player.style.display="none";player_a.style.display="none";eval(playerCodeGlobal)}else displayPlayer1Error()}function displayPlayer1Error(){var msg="Player1Container_p does not exist in the DOM.\nPlease ensure this div is defined on the page";alert(msg)}function displayExFinderContnet(content){var parentContentSection=document.getElementById("ExFinderContentSectionParent"),contentSection=document.getElementById("ExFinderContentSection");if(parentContentSection!=null){contentSection.innerHTML=content;parentContentSection.style.display="block"}else{var msg="ExFinderContentSection does not exist in the DOM.\nPlease ensure this div is defined on the page";alert(msg)}}function hideContentSection(){var parentContentSection=document.getElementById("ExFinderContentSectionParent"),contentSection=document.getElementById("ExFinderContentSection");if(parentContentSection!=null){contentSection.innerHTML="";parentContentSection.style.display="none"}else{var msg="ExFinderContentSection does not exist in the DOM.\nPlease ensure this div is defined on the page";alert(msg)}}function sendOmnitureCall(prop12,prop13,prop15,prop16,prop17){s=s_gi(s_account);s.prop12=prop12;s.prop13=prop13;s.prop15=prop15;s.prop16=prop16;s.prop17="Fitness Finder - "+prop17;s.linkTrackVars="prop12,prop13,prop15,prop16,prop17";s.tl(this,"o","Fitness Finder")}function bufferOmnitureCall(prop12,prop13,prop15,prop16,prop17){slArray.push(prop12+";;"+prop13+";;"+prop15+";;"+prop16+";;"+prop17)}function unloadPage(){var prop12,prop13,prop15,prop16,prop17;for(var i=0;i<slArray.length;i++){var valueArray=slArray[i].split(";;");prop12=valueArray[0];prop13=valueArray[1];prop15=valueArray[2];prop16=valueArray[3];prop17=valueArray[4];sendOmnitureCall(prop12,prop13,prop15,prop16,prop17)}}function hideLoadingScreen(){var statusContainer=document.getElementById("StatusContainer");if(statusContainer!=null)statusContainer.style.display="none";else alert("StatusContainer does not exist in the DOM.\nPlease ensure this div is defined on the page")}function onPluginSourceDownloadProgressChanged(sender,eventArgs){var statusContainer=document.getElementById("StatusContainer"),progress=document.getElementById("ProgressText");if(statusContainer!=null)try{var progressText=Math.round(eventArgs.get_progress()*100);progress.innerHTML=progressText;if(progressText==100)statusContainer.style.display="none"}catch(e){progress.innerHTML="Error"}else alert("StatusContainer does not exist in the DOM.\nPlease ensure this div is defined on the page")}