/******************************************************************************************** * PageEar advertising CornerAd by Webpicasso Media * Leave copyright notice. * * Lizenzvereinbarung / License agreement * http://www.webpicasso.de/blog/lizenzvereinbarungen-license-agreements/ * * @copyright www.webpicasso.de * @author christian harz *********************************************************************************************/ /* * Konfiguration / Configuration */ // URL zum kleinen Bild / URL to small image var pagearSmallImg = 'http://www.wcfx.com/includes/peel_ad//'; // URL zu pageear_s.swf / URL to small pageear swf var pagearSmallSwf = 'http://www.wcfx.com/common/peel_ad/pageear_s.swf'; // URL zum groďż˝en Bild / URL to big image var pagearBigImg = 'http://www.wcfx.com/includes/peel_ad//'; // URL zu pageear_b.swf / URL to big pageear swf var pagearBigSwf = 'http://www.wcfx.com/common/peel_ad/pageear_b.swf'; // Wackelgeschwindigkeit der Ecke 1-4 (2=Standard) // Movement speed of small pageear 1-4 (2=Standard) var speedSmall = ; // Bild spiegelt sich in der aufgeschlagenen Ecke ( true | false ) // Mirror image ( true | false ) var mirror = ''; // Farbe der aufgeschlagenen Ecke wenn mirror false ist // Color of pagecorner if mirror is false var pageearColor = ''; // Zu ďż˝ffnende URL bei klick auf die geďż˝ffnete Ecke // URL to open on pageear click var jumpTo = 'http://www.wcfx.com/common/peel_ad/link.php?id='; // ďż˝ffnet den link im neuen Fenster (new) oder im selben (self) // Browser target (new) or self (self) var openLink = ''; // ďż˝ffnet das pagepeel automatisch wenn es geladen ist (false:deaktiviert | 0.1 - X Sekunden bis zum ďż˝ffnen) // Opens pageear automaticly (false:deactivated | 0.1 - X seconds to open) var openOnLoad = ; // Sekunden bis sich das pagepeel wieder schlieďż˝t, funktioniert nur im Zusammenhang mit der openOnLoad-Funktion // Second until pageear close after openOnLoad var closeOnLoad = ; // Ecke in der das Pagepeel erscheinen soll (lt: linke obere Ecke | rt: rechte obere Ecke ) // Set direction of pageear in left or right top browser corner (lt: left | rt: right ) var setDirection = ''; // Weiches einblenden des pageear wenn Bild geladen (0-5: 0=aus, 1=langsam, 5=schnell ) // Fade in pageear if image completly loaded (0-5: 0=off, 1=slow, 5=fast ) var softFadeIn = 1; // Hintergrundsound einmalig abspielen (false:deaktiviert | URL:Mp3 File z.b. www.domain.de/meinsound.mp3) // Plays background music once abspielen (false:deactivated | URL:Mp3 File e.g. www.domain.de/mysound.mp3) var playSound = 'false' // Spielt Sound beim ďż˝ffnen (false:deaktiviert | URL:Mp3 File z.b. www.domain.de/meinsound.mp3) // Play sound on opening peel (false:deactivated | URL:Mp3 File e.g. www.domain.de/mysound.mp3) var playOpenSound = 'false'; // Spielt Sound beim schlieďż˝en (false:deaktiviert | URL:Mp3 File z.b. www.domain.de/meinsound.mp3) // Play sound on closing peel (false:deactivated | URL:Mp3 File e.g. www.domain.de/mysound.mp3) var playCloseSound = 'false'; // Wird das peel geďż˝ffnet, bleibt es solange offen bis auf das schlieďż˝en-Symbol geklickt wird // Peel close first if button close will be clicked var closeOnClick = ''; // Text neben schlieďż˝en-Symbol // Close text var closeOnClickText = 'Close'; /* * Ab hier nichts mehr ďż˝ndern / Do not change anything after this line */ // Flash check vars var requiredMajorVersion = 6; var requiredMinorVersion = 0; var requiredRevision = 0; // Copyright var copyright = 'Webpicasso Media, www.webpicasso.de'; // Size small peel var thumbWidth = 100; var thumbHeight = 100; // Size big peel var bigWidth = 500; var bigHeight = 500; // Css style default x-position var xPos = 'right'; // GET - Params var queryParams = 'pagearSmallImg='+escape(pagearSmallImg); queryParams += '&pagearBigImg='+escape(pagearBigImg); queryParams += '&pageearColor='+pageearColor; queryParams += '&jumpTo='+escape(jumpTo); queryParams += '&openLink='+escape(openLink); queryParams += '&mirror='+escape(mirror); queryParams += '©right='+escape(copyright); queryParams += '&speedSmall='+escape(speedSmall); queryParams += '&openOnLoad='+escape(openOnLoad); queryParams += '&closeOnLoad='+escape(closeOnLoad); queryParams += '&setDirection='+escape(setDirection); queryParams += '&softFadeIn='+escape(softFadeIn); queryParams += '&playSound='+escape(playSound); queryParams += '&playOpenSound='+escape(playOpenSound); queryParams += '&playCloseSound='+escape(playCloseSound); queryParams += '&closeOnClick='+escape(closeOnClick); queryParams += '&closeOnClickText='+escape(utf8encode(closeOnClickText)); queryParams += '&lcKey='+escape(Math.random()); queryParams += '&bigWidth='+escape(bigWidth); queryParams += '&thumbWidth='+escape(thumbWidth); function openPeel(){ document.getElementById('peelbigDiv').style.top = '0px'; document.getElementById('peelbigDiv').style[xPos] = '0px'; document.getElementById('peelthumbDiv').style.top = '-1000px'; } function closePeel(){ document.getElementById("peelthumbDiv").style.top = "0px"; document.getElementById("peelbigDiv").style.top = "-1000px"; } function writeObjects () { // Get installed flashversion var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); // Check direction if(setDirection == 'lt') { xPosBig = 'left:-1000px'; xPos = 'left'; } else { xPosBig = 'right:1000px'; xPos = 'right'; } // Write div layer for big swf document.write('
'); // Check if flash exists/ version matched if (hasReqestedVersion) { AC_FL_RunContent( "src", pagearBigSwf+'?'+ queryParams, "width", bigWidth, "height", bigHeight, "align", "middle", "id", "bigSwf", "quality", "high", "bgcolor", "#FFFFFF", "name", "bigSwf", "wmode", "transparent", "scale", "noscale", "salign", "tr", "allowScriptAccess","always", "type", "application/x-shockwave-flash", 'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab', "pluginspage", "http://www.adobe.com/go/getflashplayer" ); } else { // otherwise do nothing or write message ... document.write('no flash installed'); // non-flash content } // Close div layer for big swf document.write('
'); // Write div layer for small swf document.write('
'); // Check if flash exists/ version matched if (hasReqestedVersion) { AC_FL_RunContent( "src", pagearSmallSwf+'?'+ queryParams, "width", thumbWidth, "height", thumbHeight, "align", "middle", "id", "smallSwf", "scale", "noscale", "quality", "high", "bgcolor", "#FFFFFF", "name", "smallSwf", "wmode", "transparent", "allowScriptAccess","always", "type", "application/x-shockwave-flash", 'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab', "pluginspage", "http://www.adobe.com/go/getflashplayer" ); } else { // otherwise do nothing or write message ... document.write('no flash installed'); // non-flash content } document.write('
'); setTimeout('document.getElementById("peelbigDiv").style.top = "-1000px";',200); } 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; } // Flash Player Version Detection - Rev 1.5 // Detect Client Browser type // Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; function ControlVersion() { var version; var axo; var e; // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry try { // version will be set for 7.X or greater players axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); version = axo.GetVariable("$version"); } catch (e) { } if (!version) { try { // version will be set for 6.X players only axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); // installed player is some revision of 6.0 // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, // so we have to be careful. // default to the first public version version = "WIN 6,0,21,0"; // throws if AllowScripAccess does not exist (introduced in 6.0r47) axo.AllowScriptAccess = "always"; // safe to call for 6.0r47 or greater version = axo.GetVariable("$version"); } catch (e) { } } if (!version) { try { // version will be set for 4.X or 5.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = axo.GetVariable("$version"); } catch (e) { } } if (!version) { try { // version will be set for 3.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = "WIN 3,0,18,0"; } catch (e) { } } if (!version) { try { // version will be set for 2.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); version = "WIN 2,0,0,11"; } catch (e) { version = -1; } } return version; } // JavaScript helper required to detect Flash Player PlugIn version information function GetSwfVer(){ // NS/Opera version >= 3 check for Flash plugin in plugin array var flashVer = -1; 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 flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; var descArray = flashDescription.split(" "); var tempArrayMajor = descArray[2].split("."); var versionMajor = tempArrayMajor[0]; var versionMinor = tempArrayMajor[1]; if ( descArray[3] != "" ) { tempArrayMinor = descArray[3].split("r"); } else { tempArrayMinor = descArray[4].split("r"); } var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0; var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; } } // MSN/WebTV 2.6 supports Flash 4 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; // WebTV 2.5 supports Flash 3 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; // older WebTV supports Flash 2 else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; else if ( isIE && isWin && !isOpera ) { flashVer = ControlVersion(); } return flashVer; } // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) { versionStr = GetSwfVer(); if (versionStr == -1 ) { return false; } else if (versionStr != 0) { if(isIE && isWin && !isOpera) { // Given "WIN 2,0,0,11" tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] tempString = tempArray[1]; // "2,0,0,11" versionArray = tempString.split(","); // ['2', '0', '0', '11'] } else { versionArray = versionStr.split("."); } var versionMajor = versionArray[0]; var versionMinor = versionArray[1]; var versionRevision = versionArray[2]; // is the major.revision >= requested major.revision AND the minor version >= requested minor if (versionMajor > parseFloat(reqMajorVer)) { return true; } else if (versionMajor == parseFloat(reqMajorVer)) { if (versionMinor > parseFloat(reqMinorVer)) return true; else if (versionMinor == parseFloat(reqMinorVer)) { if (versionRevision >= parseFloat(reqRevision)) return true; } } return false; } } function AC_AddExtension(src, ext) { if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?'); else return src + ext; } function AC_Generateobj(objAttrs, params, embedAttrs) { var str = ''; if (isIE && isWin && !isOpera) { str += ' '; str += '>'; } else { str += '