function isFlashDetected(){var b=false;if(window.ActiveXObject)try{for(var a=7;a<10;a++){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a)}catch(d){c=false}if(c)b=true}}catch(e){}else if(navigator.plugins)if(navigator.plugins["Shockwave Flash"])b=true;return b} function isMobileDevice(){$mobStrDefList=new Array("Blackberry","Blazer","Handspring","iPhone","iPod","Kyocera","LG","Motorola","Nokia","Palm","PlayStation Portable","Samsung","Smartphone","SonyEricsson","Symbian","WAP","Windows CE","IEMobile","NetFront","PlayStation","PLAYSTATION","like Mac OS X","MIDP","UP.Browser","Nintendo","Android","Opera Mobi");for(var b=false,a=0,c=navigator.userAgent;a<$mobStrDefList.length&&b==false;){if(c.indexOf($mobStrDefList[a])>-1)b=true;a++}return b} var is_mobile=isMobileDevice();function isDeviceForNotFlashContent(){$mobStrDefList=new Array("Blackberry","iPhone","iPod","Android");for(var b=false,a=0,c=navigator.userAgent;a<$mobStrDefList.length&&b==false;){if(c.toLowerCase().indexOf($mobStrDefList[a].toLowerCase())>-1)b=true;a++}return b}var device_for_not_flash_content=isDeviceForNotFlashContent(); function getElementsByCSSClass(b,a,c){c=new RegExp("(^|\\s)"+c+"(\\s|$)");b=b.getElementsByTagName(a);a=[];for(var d=0;d<b.length;d++){var e=b[d];c.test(e.className)&&a.push(e)}return a}function hideElementsByClassName(b,a,c){b=getElementsByCSSClass(document.getElementById(b),a,c);for(a=0;a<b.length;a++)b[a].style.display="none"} function manage_menu_items_visibility(b,a){hideElementsByClassName(b,"ul","itemVisibleModeHIDDEN");hideElementsByClassName(b,"li","itemVisibleModeHIDDEN");if(a=="US"){hideElementsByClassName(b,"ul","itemVisibleModeUS");hideElementsByClassName(b,"li","itemVisibleModeUS")}else{hideElementsByClassName(b,"ul","itemVisibleModeREST_WORLD");hideElementsByClassName(b,"li","itemVisibleModeREST_WORLD")}} function addOnLoadEvent(b){window.addEventListener?window.addEventListener("load",b,false):window.attachEvent("onload",b)}function addOnClickEvent(b,a){b.addEventListener?b.addEventListener("click",a,false):b.attachEvent("onclick",a)}function readCookie(b){b=b+"=";for(var a=document.cookie.split(";"),c=0;c<a.length;c++){for(var d=a[c];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(b)==0)return d.substring(b.length,d.length)}return null} function ajax_son(b){this.xmlHttp=null;this.actionFile=b;this.asynchronous=true;this.method="post";this.contentType="application/x-www-form-urlencoded";this.encoding="UTF-8";this.executeJSON=this.executeJS=false;this.addsHeader=this.params=this.url="";this.vars=[];this.responseStatus=new Array(2);this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onComplete=function(){};this.onError=function(){};this.onFail=function(){};this.xmlHttpVersions=["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.5.0","MSXML2.xmlHttp.4.0","MSXML2.xmlHttp.3.0","MSXML2.xmlHttp","Microsoft.xmlHttp"];this.create=function(){try{this.xmlHttp=new XMLHttpRequest}catch(a){for(var c=0;c<this.xmlHttpVersions.length&&!this.xmlHttp;c++)try{this.xmlHttp=new ActiveXObject(this.xmlHttpVersions[c])}catch(d){}}if(!this.xmlHttp)this.failed=true};this.run=function(a){if(this.failed)this.onFail();else{this.params=this.encodeURL(a);var c=this;a={"X-Requested-With":"xmlHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"}; if(typeof this.addsHeader=="object")for(var d=0;d<this.addsHeader.length;d++){tmp=this.addsHeader[d].split(":");a[tmp[0]]=tmp[1]}if(this.method=="post"){a["Content-Type"]=this.contentType+(this.encoding?"; charset="+this.encoding:"");a["Content-Length"]=this.params.length;this.url=this.actionFile}else this.url=this.actionFile+"?"+this.params;this.xmlHttp.open(this.method.toUpperCase(),this.url,this.asynchronous);for(var e in a)try{this.xmlHttp.setRequestHeader(e,a[e])}catch(f){}this.xmlHttp.onreadystatechange= function(){switch(c.xmlHttp.readyState){case 1:c.onLoading();break;case 2:c.onLoaded();break;case 3:c.onInteractive();break;case 4:c.response=c.xmlHttp.responseText;c.responseXML=c.xmlHttp.responseXML;c.responseStatus[0]=c.xmlHttp.status;c.responseStatus[1]=c.xmlHttp.statusText;c.executeJS&&c.getHeader("Content-Type")=="text/javascript"&&c.evalJS();c.responseStatus[0]=="200"?c.onComplete():c.onError();break}};this.method=="post"?this.xmlHttp.send(this.params):this.xmlHttp.send(null);if(!this.asynchronous)if(this.xmlHttp.status== 200){this.response=this.xmlHttp.responseText;this.onComplete()}}};this.getHeader=function(a){try{return this.xmlHttp.getResponseHeader(a)}catch(c){return false}};this.evalJS=function(){try{eval(this.response)}catch(a){}};this.encodeURL=function(a){a=a.split("&");for(i=0;i<a.length;i++){var c=a[i].split("=");this.vars[c[0]]=encodeURIComponent(c[1])}a=[];for(key in this.vars)if(typeof this.vars[key]!="function")a[a.length]=key+"="+this.vars[key];return a.join("&")};this.create()} if(readCookie("remember_user")&&!readCookie("user_id")){var rememberMeAjaxRequest=new ajax_son(JS_EE_HTTP + JS_ACTION_FILE);rememberMeAjaxRequest.onComplete=function(){rememberMeAjaxRequest.response=="1"&&location.reload()};rememberMeAjaxRequest.run("action=login_if_remembered")}var userCountryByIp="",onAjaxCountryGet=function(){},onAjaxCountryGet_events=[],userCountryFromCookies=false,cookieName="userCountryByIp",countryCookiePos=document.cookie.indexOf(cookieName+"="); if(countryCookiePos!=-1){userCountryByIp=document.cookie.substr(countryCookiePos+cookieName.length+1,2);userCountryFromCookies=true}else addOnLoadEvent(function(){var b=new ajax_son(JS_EE_HTTP + JS_ACTION_FILE);b.onComplete=function(){userCountryByIp=b.response;document.cookie=cookieName+"="+userCountryByIp;onAjaxCountryGet();for(var a=0;a<onAjaxCountryGet_events.length;a++)onAjaxCountryGet_events[a]()};b.run("action=get_user_country_by_ip")}); if(is_mobile){addOnLoadEvent(function(){for(var b=document.getElementById("main_menu").getElementsByTagName("a"),a=0;a<b.length;a++)if(b[a].id.indexOf("main_menu_item_link_")!=-1){b[a].real_href=b[a].href;b[a].href="#";addOnClickEvent(b[a],function(){for(var c=this.id.substr(20),d=0;d<b.length;d++)if(b[d].id.indexOf("main_menu_item_link_")!=-1){var e=b[d].id.substr(20),f=document.getElementById("submenu_items_list_"+e);if(e==c){f.style.display="block";this.href=this.real_href}else f.style.display= "none"}return false})}});document.write('<link rel="stylesheet" type="text/css" href="'+JS_EE_HTTP+'css/scroll_ipod_fix.css" />')};