function obelisk() { return "clients_hollywood_showgirls_mel.flv"; } var vps_vPlay='1'; var vps_vFlv='clients_hollywood_showgirls_mel.flv'; var vps_vPos=4; /** * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */ if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";_19+="";var _1d=this.getParams();for(var key in _1d){_19+="";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="";}_19+="";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true;}if(this.minorfv.minor){return true;}if(this.rev=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject; var vps_videoExists=0; if (vps_videoExists==0) { /** * Detect ie6 and set variable */ var Browser = { Version: function() { var version = 999; if (navigator.appVersion.indexOf("MSIE") != -1) version = parseFloat(navigator.appVersion.split("MSIE")[1]); return version; } } var vps_ie6 = false; if(Browser.Version()<7){ vps_ie6 = true; } /** * This is a 1x1 gif image - not sure why it's used yet... ^o) */ if ((vps_butImg==undefined) || (vps_butImg.length<=3)) { var vps_butImg='http://www.videowebsites.com.au/public/images/blank.gif'; } if ((vps_butLeft==undefined) || (vps_butLeft.length=0)) { var vps_butLeft='0px'; } if ((vps_butTop==undefined) || (vps_butTop.length=0)) { var vps_butTop='0px'; } /** * OnLoad Event Handler */ function vps_addOnloadEvent(fnc){ if ( typeof window.addEventListener != "undefined" ) window.addEventListener( "load", fnc, false ); else if ( typeof window.attachEvent != "undefined" ) { window.attachEvent( "onload", fnc ); } else { if ( window.onload != null ) { var oldOnload = window.onload; window.onload = function ( e ) { oldOnload( e ); window[fnc](); }; } else window.onload = fnc; } } /** * This is the OnLoad Function Invoked */ function cvpsDiv(){ //Create CSS link in HEAD var cssNode = document.createElement('link'); cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; cssNode.href = 'http://videowebsites.com.au/public/css/vps.css'; cssNode.media = 'screen'; document.getElementsByTagName("head")[0].appendChild(cssNode); //Create IE FSCommand Events if(Browser.Version()<999){ var jsNode = document.createElement('script'); jsNode.type = 'text/javascript'; jsNode.event = 'FSCommand(command,args)'; jsNode.htmlFor = 'vps_playSWF'; jsNode.text = 'vps_playSWF_DoFSCommand(command, args);'; document.getElementsByTagName("head")[0].appendChild(jsNode); var jsNode2 = document.createElement('script'); jsNode2.type = 'text/javascript'; jsNode2.event = 'FSCommand(command,args)'; jsNode2.htmlFor = 'vps_videoSWF'; jsNode2.text = 'vps_videoSWF_DoFSCommand(command, args);'; document.getElementsByTagName("head")[0].appendChild(jsNode2); } //Create Container, Video and Play DIVs var divTag = document.createElement("div"); divTag.id = "vpsDiv"; divTag.setAttribute("align", "center"); divTag.style.margin = "0px auto"; divTag.innerHTML = '
'; divTag.className = "vps_wrapper"; document.body.appendChild(divTag); //Init Flash Video Player vps_InitPlayer(); //Position the FLV Video Div and set CSS class (iehack) vps_PositionVideo(); } vps_addOnloadEvent(cvpsDiv); /** COOKIE FUNCTIONS **/ function vps_createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function vps_readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function vps_eraseCookie(name) { vps_createCookie(name,"",-1); } /** END COOKIE FUNCTIONS **/ /** INLINE EXECUTE **/ if (vps_readCookie('vps_view_'+vps_vFlv)==null) { vps_createCookie('vps_view_'+vps_vFlv,'1',30); } else { var vps_cookieVar=vps_readCookie('vps_view_'+vps_vFlv); } //Div Containers var vps_vSWFvar='vps_videoSWF'; var vps_vDIVvar='vps_VideoDiv'; var vps_pSWFvar='vps_playSWF'; var vps_pDIVvar='vps_PlayerDiv'; var vps_cDIVvar='vps_WrapperDiv'; //Dimensions (video will auto-resize based on .flv dimensions ;) ) var vps_videoWidth=0; //not needed var vps_videoHeight=0; //not needed var vps_playerWidth=137; var vps_playerHeight=86; /** END INLINE EXECUTE **/ function vps_InitPlayer() { //Throw in a little padding, and offset video to correct position document.getElementById(vps_vDIVvar).style.marginBottom='0px'; document.getElementById(vps_pDIVvar).style.marginBottom='5px'; document.getElementById(vps_pDIVvar).style.marginLeft='5px'; //Set Button Style document.getElementById('vps_butImg').style.top=vps_butTop; document.getElementById('vps_butImg').style.left=vps_butLeft; //Create play button object var vps_playButtonSWF = new SWFObject("http://www.videowebsites.com.au/d1713dcadd1061856822b21ca9ab81cf/vps_play.swf", vps_pSWFvar, vps_playerWidth, vps_playerHeight, "9", "#f8f8f8"); vps_playButtonSWF.addParam("wmode", "transparent"); vps_playButtonSWF.addParam("swliveconnect", "true"); vps_playButtonSWF.addParam("allowscriptaccess","always"); vps_playButtonSWF.addParam("menu","false"); vps_playButtonSWF.write(vps_pDIVvar); //Auto play movie // 0 = no // 1 = yes // 2 = singleShot if ((vps_vPlay.toLowerCase()=='1') || (vps_vPlay.toLowerCase()=='2')) { if (((vps_vPlay.toLowerCase()=='2') && vps_cookieVar!='1') || (vps_vPlay.toLowerCase()=='1')) { vps_playMovie(); } } } /** * Place FLV Video Container Div Position */ function vps_PositionVideo() { if(typeof(window['vps_vPos']) == "undefined" ) { vps_vPos="default"; } switch(vps_vPos) { case 1: //Top Left if(!vps_ie6){ document.getElementById(vps_cDIVvar).style.top='0px'; } document.getElementById(vps_cDIVvar).style.left='0px'; document.getElementById(vps_cDIVvar).className='vps_top'; break; case 2: //Top Right if(!vps_ie6){ document.getElementById(vps_cDIVvar).style.top='0px'; } document.getElementById(vps_cDIVvar).style.right='0px'; document.getElementById(vps_cDIVvar).style._right='0px'; document.getElementById(vps_cDIVvar).className='vps_top'; break; case 3: default: //Bottom Left document.getElementById(vps_cDIVvar).style.bottom='0px'; document.getElementById(vps_cDIVvar).style.left='0px'; document.getElementById(vps_cDIVvar).className='vps_bot'; break; case 4: //Bottom Right document.getElementById(vps_cDIVvar).style.bottom='0px'; document.getElementById(vps_cDIVvar).style.right='0px'; document.getElementById(vps_cDIVvar).style._right='0px'; document.getElementById(vps_cDIVvar).className='vps_bot'; break; } } //Callback for play swf function vps_playSWF_DoFSCommand(command, args) { if (command == "playMovie") { vps_playMovie(); } } //Callback for video swf function vps_videoSWF_DoFSCommand(command, args) { switch(command) { case 'stopMovie': vps_stopMovie(); break; case 'sendWidth': vps_videoWidth = args; //if (args < 400){vps_videoHeight = 400;} break; case 'sendHeight': vps_videoHeight=args; vps_updateVidDimensions(); break; case 'sendTime': vps_sendTime(args); break; default: break; } } //Resize video dimensions based on set variables (.flv loads and returns size) function vps_updateVidDimensions() { document.getElementById(vps_vSWFvar).width=vps_videoWidth; document.getElementById(vps_vSWFvar).height=400; //document.getElementById(vps_vSWFvar).height = vps_videoHeight; } //Initiate video playback function vps_playMovie() { //alert('Play Button Pushed'); //return; document.getElementById(vps_vDIVvar).innerHTML=''; //Clear existing movies if exist. var vps_videoSWF = new SWFObject("http://www.videowebsites.com.au/d1713dcadd1061856822b21ca9ab81cf/vps_video.swf", vps_vSWFvar, vps_videoWidth, vps_videoHeight, "9", "#f8f8f8"); vps_videoSWF.addParam("wmode", "transparent"); vps_videoSWF.addParam("swliveconnect", "true"); vps_videoSWF.addParam("allowscriptaccess","always"); vps_videoSWF.addParam("menu","false"); //Send custom variables to flash video file vps_videoSWF.addVariable('videoName',vps_vFlv); vps_videoSWF.addVariable('videoWidth',vps_videoWidth); vps_videoSWF.addVariable('videoHeight',vps_videoHeight); vps_videoSWF.write(vps_vDIVvar); //Hide play button, show Video document.getElementById(vps_pDIVvar).style.display='none'; document.getElementById(vps_vDIVvar).style.display=''; } //Stop movie, bring back play button function vps_stopMovie() { document.getElementById(vps_pDIVvar).style.display=''; document.getElementById(vps_vDIVvar).style.display='none'; } function flipButton(to) { if (to=='hide') { document.getElementById('vps_butImg').style.display='none'; } else { document.getElementById('vps_butImg').style.display=''; } } if (vps_butStart==undefined) { var vps_butStart=0; } if (vps_butLast==undefined) { var vps_butLast=0; } function vps_sendTime(args) { if ((args>=vps_butStart) && (args<=(vps_butStart+vps_butLast))) { flipButton('show'); } else { flipButton('hide'); } } vps_videoExists='1'; }