var SWFObjectScript = "http://deluxe-catalog.ro/11/3641/swfobject.js"; //var SWFmacmousewheelScript = "http://deluxe-catalog.ro/11/3641/swfmacmousewheel.js"; var SWFaddressScript = "http://deluxe-catalog.ro/11/3641/swfaddress.js"; function _ImportScript(jsurl, bUseCache, CallBackFunc, SafariTest ) { //Supply CallBack to verify load before accessing loaded objects. //Use SafariTest to trigger the callback func for safari, e.g. test for vars defined in the loaded script var head = document.getElementsByTagName("head").item(0); var s = document.createElement("SCRIPT"); //s.src = ((bUseCache)?jsurl:GetUniqueURL(jsurl)); s.src = jsurl; s.type = "text/javascript"; /* if(typeof CallBackFunc == "function"){ if(typeof s.onreadystatechange != "undefined"){//ie s.onreadystatechange = function(){if(/loaded|complete/.test(s.readyState)){s.onreadystatechange = null; CallBackFunc();} }; }else if(/safari/i.test(navigator.userAgent) && SafariTest ){ //Safari does not support event callbacks window.SafariLoaded = function(){if(eval(SafariTest)){ CallBackFunc(); }else{ window.setTimeout("window.SafariLoaded()",100)}; } window.SafariLoaded(); }else{ CallBackFunc.once = true;//avoid repeated callbacks s.onload = function(){ if(CallBackFunc.once){CallBackFunc.once = false; CallBackFunc();} } ; //mac:camino,moz,fx. win:moz,fx,opera 9x s.load = function(){ if(CallBackFunc.once){CallBackFunc.once = false; CallBackFunc();} }; //opera 8x } } */ head.appendChild(s); //window.onload = function() {if (CallBackFunc) CallBackFunc();} //if (CallBackFunc) CallBackFunc(); } //_ImportScript(SWFmacmousewheelScript,true,null,true); _ImportScript(SWFaddressScript,true,null,true); _ImportScript(SWFObjectScript,true,start_swf,true); /* if (typeof window.onload != "function") { window.onload = start_swf; } else { var old = window.onload; window.onload = function() { old(); start_swf(); } } */ function PF_return_page_number(){var page_name=window.location.href.substring(window.location.href.lastIndexOf("/")+1);var regex=new RegExp("([a-z,0-9,-]+)-([0-9]+).html");var qs=regex.exec(page_name);if(qs==null)return"";else if(parseInt(qs[2]))return qs[2];else return"";} function SWFMacMouseWheel(swfObject){this.so=swfObject;var isMac=navigator.appVersion.toLowerCase().indexOf("mac")!=-1;if(isMac)this.init();}SWFMacMouseWheel.prototype={init:function(){SWFMacMouseWheel.instance=this;if(window.addEventListener){window.addEventListener("DOMMouseScroll",SWFMacMouseWheel.instance.wheel,false);}window.onmousewheel=document.onmousewheel=SWFMacMouseWheel.instance.wheel;},handle:function(delta){document[this.so].externalMouseEvent(delta);},wheel: function(event){var delta=0;if(event.wheelDelta){/* IE/Opera. */delta=event.wheelDelta/120;if(window.opera)delta=-delta;}else if (event.detail){/** Mozilla case. */delta=-event.detail/3;}if(/AppleWebKit/.test(navigator.userAgent)){delta/=3;}if(delta)SWFMacMouseWheel.instance.handle(delta);if(event.preventDefault)event.preventDefault();event.returnValue=false;}}; function AddMacMouseWheel(obj){ var macmousewheel = new SWFMacMouseWheel( obj["id"] ); } function start_swf() { try { //alert("start_swf function"); var publication_width = ""; publication_width = publication_width ? publication_width : "100%"; var publication_height = ""; publication_height = publication_height ? publication_height : "100%"; var flashvars = {}; if (swfobject.getQueryParamValue("sess_key")) { flashvars.sess_key = swfobject.getQueryParamValue("sess_key"); } flashvars.__pagenumber__ = PF_return_page_number(); flashvars.__referrer__ = escape(document.referrer); flashvars.__host__ = escape(document.location.host); var params = { allowFullScreen: true, allowScriptAccess: "always" }; var attributes = { id: "application", name: "application" } swfobject.embedSWF("http://deluxe-catalog.ro/11/3641/publication.swf", "application", publication_width, publication_height, "9.0.0","http://deluxe-catalog.ro/expressInstall.swf", flashvars, params, attributes,AddMacMouseWheel); } catch (e) { //alert(e); } }