
var url='http://www.heineken.com';

//--wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
// Produced by DoubleYou, Dec 2001
// www.doubleyou.com
// info@doubleyou.com
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww-->







function BrowserCheck(){var b=navigator.appName;if(b=="Netscape")this.b="ns";else if(b=="Microsoft Internet Explorer")this.b="ie";else this.b=b;this.version=navigator.appVersion;this.v=parseInt(this.version);this.ns=(this.b=="ns"&&this.v>=4);this.ns4=(this.b=="ns"&&this.v==4);this.ns5=(this.b=="ns"&&this.v==5);this.ie=(this.b=="ie"&&this.v>=4);this.ie4=(this.version.indexOf('MSIE 4')>0);this.ie5=(this.version.indexOf('MSIE 5')>0);this.min=(this.ns||this.ie);}is=new BrowserCheck();function DynLayer(id,nestref,frame){if(!is.ns5&&!DynLayer.set&&!frame)DynLayerInit();this.frame=frame||self;this.elm=this.event=this.frame.document.all[id];this.css=this.frame.document.all[id].style;this.doc=document;this.x=this.elm.offsetLeft;this.y=this.elm.offsetTop;this.w=(is.ie4)?this.css.pixelWidth:this.elm.offsetWidth;this.h=(is.ie4)?this.css.pixelHeight:this.elm.offsetHeight;this.id=id;this.nestref=nestref;this.obj=id+"DynLayer";eval(this.obj+"=this");}function DynLayerMoveTo(x,y){if(x!=null){this.x=x;this.css.pixelLeft=this.x;}if(y!=null){this.y=y;this.css.pixelTop=this.y;}}function DynLayerMoveBy(x,y){this.moveTo(this.x+x,this.y+y);}function DynLayerShow(){this.css.visibility="visible";}function DynLayerHide(){this.css.visibility="hidden";}DynLayer.prototype.moveTo=DynLayerMoveTo;DynLayer.prototype.moveBy=DynLayerMoveBy;DynLayer.prototype.show=DynLayerShow;DynLayer.prototype.hide=DynLayerHide;DynLayerTest=new Function('return true');function DynLayerInit(nestref){if(!DynLayer.set)DynLayer.set=true;if(is.ie){for(var i=0;i<document.all.tags("DIV").length;i++){var divname=document.all.tags("DIV")[i].id;var index=divname.indexOf("Div");if(index>0){eval(divname.substr(0,index)+' = new DynLayer("'+divname+'")');}}}return true;}DynLayer.nestRefArray=new Array();DynLayer.refArray=new Array();DynLayer.refArray.i=0;DynLayer.set=false;function createLayer(id,nestref,left,top,width,height,content,bgColor,visibility,zIndex,other){var str='\n<DIV id='+id+' style="position:absolute; left:'+left+'; top:'+top+'; width:'+width;if(height!=null){str+='; height:'+height;str+='; clip:rect(0,'+width+','+height+',0)';}if(bgColor!=null)str+='; background-color:'+bgColor;if(zIndex!=null)str+='; z-index:'+zIndex;if(visibility)str+='; visibility:'+visibility;str+=';">'+((content)?content:'')+'</DIV>';if(nestref){index=nestref.lastIndexOf(".");var nestlyr=(index!=-1)?nestref.substr(index+1):nestref;document.all[nestlyr].insertAdjacentHTML("BeforeEnd",str);}else{document.body.insertAdjacentHTML("BeforeEnd",str);}}var imgArray=[0,0,0,0,0];var mascaraX=0;var mascaraY=0;function loadingImg(queImg){imgArray[queImg]=1;var faltaImg=false;for(var i=0;i<imgArray.length;i++){if(imgArray[i]==0&&faltaImg==false)faltaImg=true;}if(faltaImg==false){start();}}function start(){mascara.moveTo(mascaraX,mascaraY);document.onmousemove=mouseMove;followLoop();}function init(){if(is.ns){ww=window.innerWidth;wh=window.innerHeight;}if(is.ie){ww=document.body.offsetWidth;wh=document.body.offsetHeight;}createLayer('mascaraDiv',null,-500,-500,468,60,null,null,null,10000);mascara=new DynLayer('mascaraDiv');mascaraX=dy.offsetLeft;mascaraY=dy.offsetTop;createLayer('lankDiv','mascaraDiv',0,0,468,60,'<a href="'+url+'" onmouseover="filtroover();aktivo=true;" onmouseout="filtroout();aktivo=false;"><img onload="loadingImg(0)" src="heineken_mirror_empty.gif" width="468" height="60" alt="" border="0"></a>',null,null,1000);lank=new DynLayer('lankDiv','mascaraDiv');createLayer('followDiv','mascaraDiv',0,5,79,51,'<img onLoad="loadingImg(1)" src="heineken_mirror_touchme.gif" alt="" width="79" height="51" border="0">',null,null,210);follow=new DynLayer('followDiv','mascaraDiv');createLayer('texto2Div','mascaraDiv',360,5,87,48,'<img onLoad="loadingImg(2)" src="heineken_mirror_thankyou.gif" alt="" width="87" height="48" border="0">',null,'hidden',200);texto2=new DynLayer('texto2Div','mascaraDiv');createLayer('efinalDiv','mascaraDiv',184,36,13,13,'<img src="heineken_mirror_e.gif" alt="" width="13" height="13" border="0">',null,'hidden',150);efinal=new DynLayer('efinalDiv','mascaraDiv');createLayer('fondofinalDiv','mascaraDiv',0,0,468,60,'<img onLoad="loadingImg(3)" src="heineken_mirror_final.gif" alt="" width="468" height="60" border="0">',null,'hidden',100);fondofinal=new DynLayer('fondofinalDiv','mascaraDiv');createLayer('fondobotellaDiv','mascaraDiv',0,0,468,60,'<img onLoad="loadingImg(4)" src="heineken_mirror_fondo.jpg" alt="" width="468" height="60" border="0">',null,null,50);fondobotella=new DynLayer('fondobotellaDiv','mascaraDiv');if(document.all)for(var i in document.links)document.links[i].onfocus=document.links[i].blur;}var oldX=-100;var newX=-100;var ddx=0;var PX=0;function mouseMove(e){var x=event.x+document.body.scrollLeft;var y=event.y+document.body.scrollTop;oldX=330+(ww-x)*(80)/ww;}function followLoop(){if(!aktivo){newX=Math.round(PX+=(ddx+=((oldX-PX-ddx)*3)/50));follow.moveTo(newX,null);}setTimeout("followLoop()",10);}var nopuedor;var aktivo=false;function filtroover(){aktivo=true;follow.moveTo(-200,null);texto2.show();document.body.style.filter='flipH';clearTimeout(nopuedor);nopuedor=setTimeout("texto2.hide();efinal.show();fondofinal.show();",2000);}function filtroout(){oldX=0;newX=0;ddx=0;PX=0;follow.moveTo(-200,null);texto2.hide();document.body.style.filter='';clearTimeout(nopuedor);fondofinal.hide();efinal.hide();aktivo=false;}
onload=function(){var isMac=navigator.appVersion.indexOf("Mac")>-1;var is5=navigator.appVersion.indexOf('MSIE 5')>-1;var is55=navigator.appVersion.indexOf('MSIE 5.5')>-1;var is6=navigator.appVersion.indexOf('MSIE 6')>-1;if((!isMac)&&(is5||is55||is6))setTimeout("init()",200);}
