function createIFrame(n,t,i){var f=document.getElementById(n),u,r;f!=null&&(setVisibility("visible","cartDHTML"),u=navigator.userAgent.toLowerCase(),isIE=u.indexOf("msie")!=-1&&u.indexOf("opera")==-1&&u.indexOf("webtv")==-1,isIE?r=document.createElement('<iframe src="http://static.ozone.ru/multimedia/download/empty_cart.html" frameborder="0" marginwidth="0" marginheight="0" width="0" height="0" scrolling="no" style="border: 1px dashed #C0C0C0;"></iframe>'):(r=document.createElement("iframe"),r.setAttribute("frameborder","0"),r.setAttribute("marginwidth","0"),r.setAttribute("marginheight","0"),r.setAttribute("scrolling","no"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("src","http://static.ozone.ru/multimedia/download/empty_cart.html"),r.setAttribute("style","border: 1px dashed #C0C0C0;")),f.appendChild(r),increaseQtyMiniCart("DivName0"),t!=null&&t!=""&&(r.src=t,setTimeout("setVisibility('hidden', 'cartDHTML')",i)))}function createIFrameWithPopUp(n,t,i){var f=document.getElementById(n),u,r;f!=null&&(setVisibility("visible","cartDHTML"),u=navigator.userAgent.toLowerCase(),isIE=u.indexOf("msie")!=-1&&u.indexOf("opera")==-1&&u.indexOf("webtv")==-1,isIE?r=document.createElement('<iframe src="http://static.ozone.ru/multimedia/download/empty_cart.html" frameborder="0" marginwidth="0" marginheight="0" width="100" height="60" scrolling="no" style="border: 1px dashed #C0C0C0;"></iframe>'):(r=document.createElement("iframe"),r.setAttribute("frameborder","0"),r.setAttribute("marginwidth","0"),r.setAttribute("marginheight","0"),r.setAttribute("scrolling","no"),r.setAttribute("width","100"),r.setAttribute("height","60"),r.setAttribute("src","http://static.ozone.ru/multimedia/download/empty_cart.html"),r.setAttribute("style","border: 1px dashed #C0C0C0;")),f.appendChild(r),increaseQtyMiniCart("DivName0"),t!=null&&t!=""&&(r.src=t,setTimeout("setVisibility('hidden', 'cartDHTML')",i)))}function increaseQtyMiniCart(n){var t=document.getElementById(n),i;t!=null&&t.firstChild!=null&&t.firstChild.nodeValue!=null&&(i=parseInt(t.firstChild.nodeValue),i++,t.firstChild.nodeValue=i)}function setVisibility(n,t){var i=document.getElementById(t);i!=null&&(i.style.visibility=n)}function createDiv(n,t,i,r,u,f){var c=document.getElementById(t),e,h,o,s;c!=null&&document.body.removeChild(c),e=document.createElement("div"),e.id=t,e.style.position="absolute",u||(u=window.event);if(u!=null){h=0,o=0;if(u.target!=null){s=u.target.offsetParent,h=u.target.offsetTop,o=u.target.offsetLeft;while(s!=null)h=h+s.offsetTop,o=o+s.offsetLeft,s=s.offsetParent}else h=document.documentElement.scrollTop+u.clientY-u.offsetY,o=document.documentElement.scrollLeft+u.clientX-u.offsetX;e.style.top=h+"px",e.style.left=o+"px",e.style.zIndex="10000000",e.style.backgroundColor="white",document.body.appendChild(e),f?createIFrameWithPopUp(t,i,r):createIFrame(t,i,r)}}
