var pagearSmallImg = 'pageear_s.jpg'; var pagearSmallSwf = 'pageear_s.swf'; var pagearBigImg = 'pageear_b.jpg'; var pagearBigSwf = 'pageear_b.swf'; var speedSmall = 1; var mirror = 'true'; var pageearColor = 'ffffff';  var jumpTo = 'http://www.autoset.ru/sales.htm' var openLink = 'new'; var openOnLoad = 'true'; var closeOnLoad = 3; var setDirection = 'rt'; var softFadeIn = 1; var playSound = 'false' var playOpenSound = 'false'; var playCloseSound = 'false'; var closeOnClick = 'true';var closeOnClickText = 'Close';  var requiredMajorVersion = 8;var requiredMinorVersion = 0;var requiredRevision = 0;var copyright = 'Webpicasso Media, www.webpicasso.de';var thumbWidth  = 100;var thumbHeight = 100;var bigWidth  = 600;var bigHeight = 600;var xPos = 'right';var yPos = 'bottom';// 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 += '&copyright='+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('bigDiv').style.bottom = '0px'; 	document.getElementById('bigDiv').style[xPos] = '0px';	document.getElementById('thumbDiv').style.bottom = '10000px';}function closePeel(){	document.getElementById("thumbDiv").style.bottom = "0px";	document.getElementById("bigDiv").style.bottom = "10000px";}function writeObjects () {         // Get installed flashversion    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);    var xPosBig = 'right:0px';	var yPosBig = 'bottom:10000px';    var xPos = 'right';  	var yPos = 'bottom';        // Write div layer for big swf    document.write('<div id="bigDiv" style="position:absolute; width:'+ bigWidth +'px; height:'+ bigHeight +'px; z-index:9999; right:0px; bottom:10000px;">');    	        // 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", "br",    				"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('</div>');         // Write div layer for small swf    document.write('<div id="thumbDiv" style="position:absolute;width:'+ thumbWidth +'px;height:'+ thumbHeight +'px;z-index:9999;'+xPos+':0px;bottom:0px;">');        // 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", "bigSwf",    				"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('</div>');      setTimeout('document.getElementById("bigDiv").style.bottom = "10000px";',100);}function utf8encode(txt) {     txt = txt.replace(/\r\n/g,"\n");    var utf8txt = "";    for(var i=0;i<txt.length;i++) {                var uc=txt.charCodeAt(i);         if (uc<128) {            utf8txt += String.fromCharCode(uc);                } else if((uc>127) && (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;}