var fullscreen = true; var justSized =false; var settedheight = 0; function setHeight(pHeight) { //navigator.userAgent.indexOf('Firefox')>-1 || if (navigator.userAgent.indexOf('Mac')>-1 ) { var FFHeight = ((pHeight*100)/getRealHeight()); var newHeight = new String(FFHeight+"%"); var newWidthSmall = "100%"; var newHeightSmall = "800px"; } else { var newHeight = new String(pHeight+"px"); var newWidthSmall = "1024"; var newHeightSmall = "800px"; } if(ckeckIfSmallRes()){ so.element.style.width = newWidthSmall; so.element.style.height = newHeightSmall; }else{ so.element.style.width = "100%"; so.element.style.height = "newHeightSmall%"; } settedheight = pHeight; fullscreen = false; return so.attributes.height; } function setFullHeight() { if(ckeckIfSmallRes()){ so.element.style.width = '1024px'; so.element.style.height = '800px'; }else{ so.element.style.width = '100%'; so.element.style.height = '100%'; } fullscreen = true; return so.attributes.height; } function ckeckIfSmallRes(){ //return (document.body.clientWidth<1024 || document.body.clientHeight<200); return (document.body.clientHeight<610); } function smallRes() { var smallRes = ckeckIfSmallRes(); if (smallRes){ so.element.style.width = '1024px'; so.element.style.height = '800px'; } return smallRes; } function getRealHeight(){ if (navigator.userAgent.indexOf('MSIE')>0){ return document.body.clientHeight; }else { return window.innerHeight; } } function getRealWidth(){ if (navigator.userAgent.indexOf('MSIE')>0){ return document.body.clientWidth; }else { return window.innerWidth; } } function trackingCode(idTrack){ //console.log(idTrack); try { var oScript = document.createElement("SCRIPT"); var ebRand = Math.random()+ ' '; ebRand = ebRand * 1000000; var conversionURL = "HTTP://bs.serving-sys.com/BurstingPipe/ActivityServer.bs?cn=as&ActivityID=" + idTrack + "&rnd=" + ebRand; oScript.src = conversionURL; document.body.appendChild(oScript); } catch(e) {} }