var lc_name; var showURL; var objWidth; var objHeight; var curSpot=0; var ThisURL=''; // should be found at the beginning var OddcastDomain='http://vhss-a.oddcast.com'; var agt=navigator.userAgent.toLowerCase(); var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_win = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) ); var is_mac = (agt.indexOf("mac")!=-1); var JSGroup = is_ie&&is_win?1:2; function getURLParam( name ){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( ThisURL ); if( results == null ) return ''; else return results[1]; } function getThisURL(){ arr = document.getElementsByTagName("script"); for(i=0;i0){ showURL = showURL+"&playOnLoad=1"; } if(JSGroup==1){ vh_mc.LoadMovie(0,showURL); }else{ useFlashLC("loadMovie", showURL+"~_level0"); } vh_mc = null; } function goToWorkshop(spot){ document.onmousemove = null; if(curSpot==spot){ return; } var newRegExp = new RegExp("ss%3D","g"); tempShowURL = showURL.replace(newRegExp,"sp%3D"+spot+"%26ss%3D"); var newRegExp = new RegExp("&acc=","g"); tempShowURL = tempShowURL.replace(newRegExp,"&stretch=1&acc="); var newRegExp = new RegExp("getshow","g"); tempShowURL = tempShowURL.replace(newRegExp,"getworkshop"); if(JSGroup==1){ if(!vh_mc) return; vh_mc.LoadMovie(0,tempShowURL); }else{ useFlashLC("loadMovie", tempShowURL+"~_level0"); } vh_mc = null; curSpot = spot; } function loadExtraJS(JS_URL){ var head = document.getElementsByTagName('head')[0]; var elementOverLay = document.createElement('script'); elementOverLay.src = JS_URL; elementOverLay.type = 'text/javascript'; head.appendChild(elementOverLay); } function domainOfPage() { domainName = document.location.hostname; if(domainName.length<=0) domainName = 'not_found'; return domainName; } // sets a cookie if doesn't exist loadExtraJS('http://vhost.oddcast.com/setCookie.php'); var fname = 'AC_VHost_Embed_'+accId; window[fname] = function() { AC_VHost_Embed (accId,arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11]); } var isOverlay = false; var globalOverlayString = ''; function AC_VHost_Embed (accountID, height, width, bgcolor, firstslide, loading, ss, sl, transparent, minimal, embedId, flashVersion, overlayStr, embedName) { flashVersion = (flashVersion =='' || typeof flashVersion == 'undefined' || flashVersion < 9) ? 9 : flashVersion; objWidth = width; objHeight = height; lc_name = '1265746308'; embedId = embedId==''?'nothing':embedId; embedName = (embedName =='' || typeof embedName == 'undefined') ? 'VHSS' : embedName; if (transparent ==1){ bgcolor = ''; } // flash 9 xmlScr = (flashVersion>8) ? 'playScene' : 'getshow'; player = (flashVersion>8) ? 'vhss_v5' : 'vhss_v3'; PlayerServer = (flashVersion>8) ? 'http://content.oddcast.com/vhss' : 'http://vhss-a.oddcast.com'; domString = '&pageDomain='+domainOfPage(); emb = (overlayStr && overlayStr != "_OVERLAYSTR_") ? 9 : 8; playScene = 'http%3A%2F%2Fvhss-d.oddcast.com%2Fphp%2F'+xmlScr+'%2Facc%3D'+accountID+'%2Fss%3D'+ss+'%2Fsl%3D'+sl; playScene = playScene + (flashVersion<9 ? '%3Fembedid%3D'+embedId : ''); // appends embedid if less than flash 9 url = PlayerServer+'/'+player+'.swf?doc='+playScene+'&acc='+accountID+'&bgcolor=0x'+bgcolor+domString+'&lc_name='+lc_name+'&fv='+flashVersion+'&is_ie='+(JSGroup==1?1:0)+(followCursorFlag>0?'&followCursor='+followCursorFlag:'')+'&emb='+emb; url = url + (flashVersion>8 ? '&embedid='+embedId : ''); // appends embedid if it's flash 9 showURL = url; loading = 1; // done after request not to allow admin not to have a loader expressInstallUrl = OddcastDomain+'/expressInstall.swf'; if (overlayStr && overlayStr != "_OVERLAYSTR_"){ globalOverlayString = overlayStr; loadExtraJS(OddcastDomain+'/admin/includes/vhss_embedOverlayFunctions.js'); isOverlay = true; } if(flashVersion>8){ flashVersionStr = flashVersion+'.0.115'; }else{ flashVersionStr = flashVersion+'.0.0'; } var vhssFlashDiv = 'vhssFlashDiv' + ss + sl; if (isOverlay) { document.getElementById("divVHSS").innerHTML = "
"; } else { document.write("
"); } var vhostFlashvars = {}; var vhostFlashParams = { scale: 'noborder', bgcolor: bgcolor, quality: 'high', name: embedName, allowscriptaccess: 'always', swliveconnect: 'true' }; if (transparent ==1) vhostFlashParams.wmode = 'transparent'; var vhostFlashAttributes = { id: embedName }; vhostSwfobject.embedSWF(url, vhssFlashDiv, width, height, flashVersionStr, expressInstallUrl, vhostFlashvars, vhostFlashParams, vhostFlashAttributes); if( !vhostSwfobject.hasFlashPlayerVersion('6.0.65') ) vhostSwfobject.createSWF( { data: url, width: width, height: height, id: embedName }, vhostFlashParams, vhssFlashDiv); SWFFormFix(embedName); } if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write('