/* * Konfiguration / Configuration */ var pagearSmallImg = 'http://www.thebossbuster.net/pageear/files/../admin/upload/69ba2bce7467513ff1c91c7e491b2589_s.net?542'; var pagearSmallSwf = 'http://www.thebossbuster.net/pageear/files/pageear_s_v2_5_p.swf'; var pagearBigImg = 'http://www.thebossbuster.net/pageear/files/../admin/upload/69ba2bce7467513ff1c91c7e491b2589_b.net?861'; var pagearBigSwf = 'http://www.thebossbuster.net/pageear/files/pageear_b_v2_5_p.swf'; var speedSmall = 2; var mirror = 'true'; var pageearColor = 'ffffff'; var jumpTo = 'http://www.thebossbuster.com/BigDiscount' var openLink = 'self'; var openOnLoad = 'false'; var closeOnLoad = 0; var setDirection = 'rt'; var softFadeIn = '2'; var playSound = 'false'; var playOpenSound = 'http://www.thebossbuster.net/paper-rip-10.mp3'; var playCloseSound = 'false'; var closeOnClick = 'false'; var closeOnClickText = 'Close'; var eventLogUrl = 'http://www.thebossbuster.net/pageear/files/'; var pageearId = '4'; var preview = ''; var videoBufferTime = '6'; var sKey = 'bbc12a3a98d8487f58a87d3a3070516e'; var range = '10'; var ptype = 1; //''; var shadowAlpha = '60'; var scrollText = ''; var scrollColor = 'ffffff'; var scrollSpeed = '0';; /* * Ab hier nichts mehr ändern / Do not change anything after this line */ // Flash check vars var reqMaV = 6; var reqMiV = 0; var reqR = 0; // Copyright var copyright = 'Webpicasso Media, www.webpicasso.de'; // Size small peel var thumbWidth = 150; var thumbHeight = 150; // Size big peel var bigWidth = 500; var bigHeight = 500; // Css style default x-position var xPos = 'right'; // Flashvars - Params var flashvars = {}; flashvars.pagearSmallImg=escape(pagearSmallImg); flashvars.pagearBigImg=escape(pagearBigImg); flashvars.pageearColor=pageearColor; flashvars.jumpTo=escape(jumpTo); flashvars.openLink=escape(openLink); flashvars.mirror=escape(mirror); flashvars.copyright=escape(copyright); flashvars.speedSmall=escape(speedSmall); flashvars.openOnLoad=escape(openOnLoad); flashvars.closeOnLoad=escape(closeOnLoad); flashvars.setDirection=escape(setDirection); flashvars.softFadeIn=escape(softFadeIn); flashvars.playSound=escape(playSound); flashvars.playOpenSound=escape(playOpenSound); flashvars.playCloseSound=escape(playCloseSound); flashvars.closeOnClick='true'; flashvars.closeOnClickText=escape(utf8encode(closeOnClickText)); flashvars.eventLogUrl=escape(eventLogUrl); flashvars.pageearId=escape(pageearId); flashvars.lcKey=escape(Math.random()); flashvars.sKey=escape(sKey); flashvars.bigWidth=escape(bigWidth); flashvars.thumbWidth=escape(thumbWidth); flashvars.videoBufferTime=escape(videoBufferTime); flashvars.preview=escape(preview); flashvars.range=escape(range); flashvars.ptype=escape(ptype); flashvars.shadowAlpha=escape(shadowAlpha); flashvars.scrollText=escape(scrollText); flashvars.scrollColor=escape(scrollColor); flashvars.scrollSpeed=escape(scrollSpeed); flashvars.syncSwfs= 'true'; flashvars.debug= 'false'; flashvars.host=escape(window.location.hostname); flashvars.license=escape('0'); flashvars.mail=escape(''); function openPeel(){ debugOutput("JS function openPeel"); document.getElementById('bigDiv').style.top = '0px'; document.getElementById('bigDiv').style[xPos] = '0px'; document.getElementById('thumbDiv').style.top = '-1000px'; } function closePeel(){ debugOutput("JS function closePeel"); document.getElementById("thumbDiv").style.top = "0px"; document.getElementById("bigDiv").style.top = "-1000px"; } function writeObjects () { // Place big div inside the visible area of the browser (otherwise the are problems on load with FF) var bPosition = 10; if(window.innerWidth > 0) { bPosition = window.innerWidth } // Check direction if(setDirection == 'lt') { xPosBig = 'left:'+(bPosition-50)+'px'; xPos = 'left'; } else { xPosBig = 'right:'+(bPosition-50)+'px'; xPos = 'right'; } // Check IE <7 fixedSupported = true; if (window.XMLHttpRequest == undefined && document.all) { fixedSupported = false; } var stPos = 'absolute'; if('1' == '1' && fixedSupported == true) { stPos = 'fixed'; } else if('1' == '1') { document.write(''); } // Write div layer for big swf document.write('
'); debugOutput("JS write bigDiv"); var paramsBig = {}; paramsBig.quality = "high"; paramsBig.scale = "noscale"; paramsBig.salign = "tr"; paramsBig.wmode = "transparent"; paramsBig.bgcolor = "#ffffff"; paramsBig.allowscriptaccess = "always"; paramsBig.swliveconnect = "true"; var attributesBig = {}; attributesBig.name = "bigSwf"; attributesBig.align = "middle"; attributesBig.id = "bigSwf"; swfobject.embedSWF(pagearBigSwf, "bigDivObj", bigWidth+50, bigHeight+50, reqMaV+"."+reqMiV+"."+reqR, "expressInstall.swf", flashvars, paramsBig, attributesBig); // Write div layer for small swf document.write('
'); debugOutput("JS write thumbDiv"); var paramsSmall = {}; paramsSmall.quality = "high"; paramsSmall.scale = "noscale"; paramsSmall.salign = ""; paramsSmall.wmode = "transparent"; paramsSmall.bgcolor = "#ffffff"; paramsSmall.allowscriptaccess = "always"; var attributesSmall = {}; attributesSmall.name = "smallSwf"; attributesSmall.align = "middle"; attributesSmall.id = "smallSwf"; swfobject.embedSWF(pagearSmallSwf, "thumbDivObj", thumbWidth+50, thumbHeight+50, reqMaV+"."+reqMiV+"."+reqR, "expressInstall.swf", flashvars, paramsSmall, attributesSmall); setTimeout('document.getElementById("bigDiv").style.top = "-'+bigWidth+'px";',500); } function utf8encode(txt) { txt = txt.replace(/\r\n/g,"\n"); var utf8txt = ""; for(var i=0;i127) && (uc<2048)) { utf8txt += String.fromCharCode((uc>>6)|192); utf8txt += String.fromCharCode((uc&63)|128); } else { utf8txt += String.fromCharCode((uc>>12)|224); utf8txt += String.fromCharCode(((uc>>6)&63)|128); utf8txt += String.fromCharCode((uc&63)|128); } } return utf8txt; } /* Open on exit */ /* Solution with div layer function openFlashPeel() { obj = document.getElementById("bigSwf"); obj.SetVariable('callFunction','openPeel'); } //document.write ('
 
'); setTimeout('document.getElementById("thumbDiv").style.top = "-1000px";',100); */ /* Solution with mouseposition */ setTimeout('document.getElementById("thumbDiv").style.top = "-1000px";',100); var mousey = 0; var mousex = 0; var disableExit = false; document.onmousemove = function (e) { if (!e) e = window.event; mousey = e.clientY; mousex = e.clientX; if(mousey < 20 && disableExit == false) { openPeel(); document.getElementById('bigSwf').SetVariable('callFunction','openPeel'); disableExit = true; } }; // Set some lines for debugging // **************************** function debugOutput(txt) { } // **************************** writeObjects();