
var videoCount=videoArray.length;var ytplayer;jQuery(document).ready(function(){ytplayer=document.getElementById("videoDiv");ytcases=document.getElementById("ParticularCaseStudy");ytcontrol=document.getElementById("videoControls");var servername=jQuery("#videoDiv").attr("title");var proto=jQuery("#videoDiv").attr("name");if(servername=="pmwiki")
{proto=window.location.protocol;servername=window.location.hostname;}
if(proto=='443'||proto=='https:')
{var protocol="https://";}
else if(proto=='80'||proto=='http:')
{var protocol="http://";}
host=protocol+servername;if(!FlashDetect.installed)
{ytplayer.innerHTML="<img src='"+host+videoImageUrl+"' width='230' height='130'><br/><br/><span style='font-weight:bold;font-size: 10px;'><a href='http://www.adobe.com/go/getflashplayer/'>Get the latest Flash player to view this video.</a> </span>";ytcases.innerHTML='<a href="http://www.ovlg.com/case-studies/" class="underline menu"  onclick="return SendVisitorToSecureSite(\'/case-studies/\',true);" style="color: rgb(118, 118, 118);font-size:11px;font-weight:bold;font-family:times;">Read this Case Study</a>';ytcontrol.innerHTML="";}
else
{ytplayer.innerHTML='<div id="preview" align="center">Home Page Video</div>';var s1=new SWFObject(host+"/include/js/longtailVideo5/player.swf","player","278","175","9");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("wmode","opaque");s1.addVariable("file",host+videoArray[0]);s1.addVariable("image",host+videoImageUrl);s1.addVariable("backcolor","DEE1D0");s1.addVariable("frontcolor","000000");s1.addVariable("lightcolor","000000");s1.addVariable("screencolor","DEE1D0");s1.write("preview");if(jQuery("#videoDiv").attr("title")!="pmwiki"){ytcases.innerHTML='<a href="https://www.ovlg.com/case-studies/'+videoCaseStudyURLArray[0]+'" class="underline menu"  onclick="return SendVisitorToSecureSite(\'/case-studies/'+videoCaseStudyURLArray[0]+'\',true);" style="color: rgb(118, 118, 118);font-size:11px;font-weight:bold;font-family:times;">Read this Case Study</a>';}}});function loadVideo(choice)
{var selectBox=document.getElementById("current_video").value;ytplayer=document.getElementById("videoDiv");var servername=jQuery("#videoDiv").attr("title");var proto=jQuery("#videoDiv").attr("name");if(servername=="pmwiki")
{proto=window.location.protocol;servername=window.location.hostname;}
if(proto=='443'||proto=='https:')
{var protocol="https://";}
else if(proto=='80'||proto=='http:')
{var protocol="http://";}
host=protocol+servername;switch(choice)
{case'prev':if((selectBox=='0')||(selectBox=='-1'))
{index=videoCount-1;}
else
{index=parseInt(selectBox)-1;}
document.getElementById("current_video").value=index;break;case'next':if(selectBox==(videoCount-1))
{index=0;}
else if(selectBox=='-1')
{index=1;}
else
{index=parseInt(selectBox)+1;}
document.getElementById("current_video").value=index;break;}
var videoUrl=videoArray[index];if(jQuery("#videoDiv").attr("title")!="pmwiki"){var videoCaseStudyURLArrayCurrent=videoCaseStudyURLArray[index];}
if(!FlashDetect.installed)
{ytplayer.innerHTML=" <span style='font-weight:bold;'>Hello, you either have Flash plugin turned off or an old version of Adobe's Flash Player.<br/><a href='http://www.adobe.com/go/getflashplayer/'>Get the latest Flash player to view this video.</a> </span>";ytcases.innerHTML='<a href="https://www.ovlg.com/case-studies/" class="underline menu"  onclick="return SendVisitorToSecureSite(\'/case-studies/\',true);" style="color: rgb(118, 118, 118);font-size:11px;font-weight:bold;font-family:times;">Read this Case Study</a>';}
else
{ytplayer.innerHTML='<div id="preview" align="center">Home Page Video</div>';var s1=new SWFObject(host+"/include/js/longtailVideo5/player.swf","player","278","175","9");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("wmode","opaque");s1.addVariable("file",host+videoUrl);s1.addVariable("backcolor","DEE1D0");s1.addVariable("frontcolor","000000");s1.addVariable("lightcolor","000000");s1.addVariable("screencolor","DEE1D0");s1.addVariable("autostart","true");s1.write("preview");if(jQuery("#videoDiv").attr("title")!="pmwiki"){ytcases.innerHTML='<a href="https://www.ovlg.com/case-studies/'+videoCaseStudyURLArrayCurrent+'" class="underline menu"  onclick="return SendVisitorToSecureSite(\'/case-studies/'+videoCaseStudyURLArrayCurrent+'\',true);" style="color: rgb(118, 118, 118);font-size:11px;font-weight:bold;font-family:times;">Read this Case Study</a>';}}}
