// Copyright 2007 LiveFaceOnWeb, LLC // User defined parameters var lf_SWF_File_Width = 200; var lf_SWF_File_Height = 300; // Below enter the url where the swf file is located // var lf_URL = 'http://images2.pricelesspossibilities.com/library/'; // var lf_URL = '/pp/214/'; // var lf_URL = '/pp/214/lfowMaster.swf?bg=&spkr=http://images2.pricelesspossibilities.com/library/' + lf_ID + '.flv'; var lf_URL = '/system/files/lfowMaster.swf?bg=&spkr=' + lf_ID + '.flv'; // Below enter the delay length in seconds before the presentation appears // Example: var lf_TimeDelay = 5; would show the presentation after 5 seconds // Example: var lf_TimeDelay = 0; would show the presentation instantly var lf_TimeDelay = 0; // Below enter the amount of seconds the video presentation appears for after it has completed playing // Example: var lf_TimeDelayAfter = 0; would disable this option // Example: var lf_TimeDelayAfter = 10; would close the presentation 10 seconds after is has completed playing var lf_TimeDelayAfter = 0; // Below select how often you would like the presentation to appear for the same visitor // 1 = Play everytime // 2 = Play once per visitor's session // 3 = Play in so many days // Example: var lf_PresPlay = 1; would play the presentation every time // Example: var lf_PresPlay = 3; and var lf_PresPlayDays = 1; would play the presentation ones every day var lf_PresPlay = 1; var lf_PresPlayDays = 0; // Below select select if you would like to have a static position for your presentation // Example: var staticPosition = 'no'; would display the presentation with scroll affect // Example: var staticPosition = 'yes'; and var presentationLeftPosition = 0; and var presentationTopPosition = 0; would position the presentation on the top right var staticPosition = 'no'; var presentationLeftPosition = 0; var presentationTopPosition = 0; var lf_divHorPos = 0; var lf_divVerPos = 0; var lfVersion = -1; var arrNavInfo = []; var lfString; var lfParamString; var divID = 'div' + lf_ID; arrNavInfo.navprop = navigator.userAgent.toLowerCase(); if( navigator.vendor == 'KDE' || ( document.childNodes && ( !document.all || navigator.accentColorName ) && !navigator.taintEnabled ) ) { arrNavInfo[0] = 'kde'; arrNavInfo[1] = 'Safari'; } else if( document.layers ) { arrNavInfo[0] = 'ns4'; arrNavInfo[1] = 'Netscape 4'; } else if( window.opera && document.childNodes ) { arrNavInfo[0] = 'op7'; arrNavInfo[1] = 'Opera 7+'; } else if( arrNavInfo.navprop.indexOf( 'opera' ) + 1 ) { arrNavInfo[0] = 'opr'; arrNavInfo[1] = 'Opera 6-'; } else if( navigator.appName.indexOf( 'WebTV' ) + 1 ) { arrNavInfo[0] = 'wtv'; arrNavInfo[1] = 'WebTV'; } else if( navigator.product == 'Gecko' ) { arrNavInfo[0] = 'gek'; arrNavInfo[1] = 'Gecko engine (Mozilla, Netscape 6+ etc.)'; } else if( document.getElementById ) { arrNavInfo[0] = 'ie5'; arrNavInfo[1] = 'Internet Explorer 5+'; } else if( document.all && navigator.appName != 'Microsoft Pocket Internet Explorer' ) { arrNavInfo[0] = 'ie4'; arrNavInfo[1] = 'Internet Explorer 4'; } else if( (arrNavInfo.navprop.indexOf( 'msie' ) + 1 ) && window.ActiveXObject ) { arrNavInfo[0] = 'pie'; arrNavInfo[1] = 'Pocket Internet Explorer'; } else { arrNavInfo[0] = 'na'; arrNavInfo[1] = 'an unknown browser'; } if( arrNavInfo.navprop.indexOf( 'linux' ) + 1 ) { arrNavInfo[2] = 'lin'; arrNavInfo[3] = 'Linux'; } else if( arrNavInfo.navprop.indexOf( 'x11' ) + 1 ) { arrNavInfo[2] = 'unx'; arrNavInfo[3] = 'Unix'; } else if( arrNavInfo.navprop.indexOf( 'mac' ) + 1 ) { arrNavInfo[2] = 'mac'; arrNavInfo[3] = 'MacOS'; } else if( navigator.platform == 'PalmOS' ) { arrNavInfo[2] = 'plm'; arrNavInfo[3] = 'Palm OS'; } else if( ( navigator.platform == 'WinCE' ) || ( navigator.platform == 'Windows CE' ) || ( navigator.platform == 'Pocket PC' ) ) { arrNavInfo[2] = 'wce'; arrNavInfo[3] = 'Windows CE'; } else if( arrNavInfo.navprop.indexOf( 'win' ) + 1 ) { arrNavInfo[2] = 'win'; arrNavInfo[3] = 'Windows'; } else if( arrNavInfo.navprop.indexOf( 'webtv' ) + 1 ) { arrNavInfo[2] = 'wtv'; arrNavInfo[3] = 'WebTV Platform'; } else { arrNavInfo[2] = 'na'; arrNavInfo[3] = 'an unknown operating system'; } if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var lfDescription = navigator.plugins["Shockwave Flash" + swVer2].description; descArray = lfDescription.split(" "); tempArrayMajor = descArray[2].split("."); versionMajor = tempArrayMajor[0]; if ( descArray[3] != "" ) { tempArrayMinor = descArray[3].split("r"); } else { tempArrayMinor = descArray[4].split("r"); } versionMinor = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0; lfVersion = parseFloat(versionMajor + "." + versionMinor); } } else { for (var i = 8; i<10; i++) { try { var objFlash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i); if(objFlash){lfVersion = i;} } catch(e) {} } } if ( staticPosition == 'no') { StartVideo();} else {StartVideoStatic();} function StartVideo() { switch (arrNavInfo[0]) { case 'ie5': if (lfVersion > 7) {showFlash();} else {noFlash();} document.write( '
'+ lfString +'
' ); window.onscroll = ScrollHnd; window.onresize = ScrollHnd; window.setInterval('ScrollHnd()',30); ScrollHnd(); break; case 'gek': if (lfVersion > 7) {showFlash();} else {noFlash();} if(window.onscroll === undefined) { document.write( '
'+ lfString +'
' ); window.setInterval('ScrollHnd()',30); ScrollHnd(); } else { document.write( '
'+ lfString +'
' ); window.onscroll = ScrollHnd; window.onresize = ScrollHnd; ScrollHnd(); } break; case 'op7': if (lfVersion > 7) {showFlash();} else {noFlash();} document.write( '
'+ lfString +'
' ); window.onscroll = ScrollHnd; window.onresize = ScrollHnd; ScrollHnd(); break; case 'kde': if (lfVersion > 7) {showFlash();} else {noFlash();} document.write( '
'+ lfString +'
' ); window.onscroll = ScrollHnd; window.onresize = ScrollHnd; ScrollHnd(); break; default: notSupported(); document.write( '
'+ lfString +'
' ); } } function StartVideoStatic() { switch (arrNavInfo[0]) { case 'ie5': if (lfVersion > 7) { showFlash(); document.write( '
'+ lfString +'
' ); } else {noFlash(); document.write( '
'+ lfString +'
' );} break; case 'gek': if (lfVersion > 7) {showFlash(); document.write( '
'+ lfString +'
' ); } else {noFlash(); document.write( '
'+ lfString +'
' ); } break; case 'op7': if (lfVersion > 7) { showFlash(); document.write( '
'+ lfString +'
' ); } else {noFlash(); document.write( '
'+ lfString +'
' ); } break; case 'kde': if (lfVersion > 7) {showFlash(); document.write( '
'+ lfString +'
' ); } else {noFlash(); document.write( '
'+ lfString +'
' ); } break; default: notSupported(); document.write( '
'+ lfString +'
' ); } } function ScrollHnd() { var divScroll; var wnd; var screenWd = 0; var screenHt = 0; var screenX = 0; var screenY = 0; var objDoc; var divLeft = 0; var divTop = 0; objDoc = document; wnd = window; if( objDoc.getElementById ) { divScroll = objDoc.getElementById(divID); if( divScroll.style ) { divScroll = divScroll.style; } } if (window.innerHeight) { screenWd = wnd.innerWidth; screenHt = wnd.innerHeight; } else if ( objDoc.documentElement && ( objDoc.documentElement.clientWidth || objDoc.documentElement.clientHeight ) ) { screenWd = objDoc.documentElement.clientWidth; screenHt = objDoc.documentElement.clientHeight; } else if ( objDoc.body && ( objDoc.body.clientWidth || objDoc.body.clientHeight ) ) { screenWd = objDoc.body.clientWidth; screenHt = objDoc.body.clientHeight; } if (window.innerHeight) { screenY = wnd.pageYOffset; screenX = wnd.pageXOffset; } else if (objDoc.body && ( objDoc.body.scrollLeft || objDoc.body.scrollTop ) ) { screenY = objDoc.body.scrollTop; screenX = objDoc.body.scrollLeft; } else if ( objDoc.documentElement && ( objDoc.documentElement.scrollLeft || objDoc.documentElement.scrollTop ) ) { screenY = objDoc.documentElement.scrollTop; screenX = objDoc.documentElement.scrollLeft; } divLeft = divLeft + lf_divHorPos; divTop = divTop + lf_divVerPos; divLeft = divLeft + screenX; divTop = divTop + screenY; if (( lf_Position % 2 ) == 0) { divLeft = divLeft + (screenWd - lf_SWF_File_Width); } if (( lf_Position < 3 ) == false) { divTop = divTop + (screenHt - lf_SWF_File_Height); } divScroll.left = divLeft + 'px'; divScroll.top = divTop + 'px'; } function hideNoFlash() { if( document.layers ) { if( document.layers[divID] ) { document.layers[divID].visibility = 'hidden'; } } if( document.getElementById ) { document.getElementById(divID).style.visibility = 'hidden'; } if( document.all ) { return document.all[divID].visibility = 'hidden'; } } function showFlash() { lfParamString = '?lfTimeVariable=' + lf_TimeDelay + '&lfID=' + lf_ID + '&lfTimeDelayAfter=' + lf_TimeDelayAfter + '&lfCookieOption=' + lf_PresPlay + '&lfCookieDays=' + lf_PresPlayDays; lfString = ""; lfString += ""; lfString += ""; lfString += ""; lfString += ""; lfString += ""; lfString += ""; lfString += ""; } function noFlash() { lfString = ''; lfString += ''; lfString += ''; lfString += ''; lfString += ''; lfString += '
Dear User×
This page requires
Flash Player
to enable you to see the video module.
Click below to install.
::INSTALL FLASH::
'; lfString += ''; lfString += ''; lfString += ''; } function notSupported() { lfString = ''; lfString += ''; lfString += ''; lfString += ''; lfString += '
Dear User×
This page requires
new browser version
or another browser
to enable you to see the video module.
'; }