var active=false;function popUpAppear(num){active=true;var element=document.getElementById('h6');numberOfImages=element.title;for(var i=1;i<=numberOfImages;i++){clearDivId="imagedivhover"+i;clearDiv=document.getElementById(clearDivId);clearDiv.className=""}number=num;var popUpId="imagelinkhover"+num;var popUpLink=document.getElementById(popUpId);var divId="imagedivhover"+num;var popUpDiv=document.getElementById(divId);displayPopUpDiv=popUpDiv;popUpLink_coordinates=findPos(popUpLink);popUpLinkX=popUpLink_coordinates[0];popUpLinkY=popUpLink_coordinates[1];popUpLinkWidth=popUpLink_coordinates[2];popUpLinkHeight=popUpLink_coordinates[3];popUpLinkMinX=popUpLinkX;popUpLinkMaxX=popUpLinkX+popUpLinkWidth;popUpLinkMinY=popUpLinkY;popUpLinkMaxY=popUpLinkY+popUpLinkHeight;IE=document.all?true:false;if(!IE)document.captureEvents(Event.MOUSEMOVE);document.onmousemove=imageTrackMouse;Xcords=0;Ycords=0}function popUpDisAppear(num){hideDivId="imagedivhover"+num;hidePopUpDiv=document.getElementById(hideDivId);hidePopUpDiv.className="";clearTimeout(showPopUpTimeout)}function changeClass(displayPopUpDiv,number){if(active){document.onmousemove="";displayPopUpDiv.className='imageIndexListImageHover';clearTimeout(showPopUpTimeout)}secondDivId="seconddiv"+number;secondDiv=document.getElementById(secondDivId);popUp_coordinates=findPos(secondDiv);popUpX=popUp_coordinates[0];popUpY=popUp_coordinates[1];popUpWidth=popUp_coordinates[2];popUpHeight=popUp_coordinates[3];popUpMinX=popUpX;popUpMaxX=popUpX+popUpWidth;popUpMinY=popUpY;popUpMaxY=popUpY+popUpHeight;IE=document.all?true:false;if(!IE)document.captureEvents(Event.MOUSEMOVE);document.onmousemove=divTrackMouse;Xcords=0;Ycords=0}function getScrollingPosition(){var position=[0,0];if(typeof window.pageYOffset!='undefined'){position=[window.pageXOffset,window.pageYOffset]}else if((typeof document.documentElement.scrollTop!='undefined'&&document.documentElement.scrollTop>0)||document.documentElement.scrollLeft>0){position=[document.documentElement.scrollLeft,document.documentElement.scrollTop]}else if(typeof document.body.scrollTop!='undefined'){position=[document.body.scrollLeft,document.body.scrollTop]}return position}function imageTrackMouse(event){if(typeof event=="undefined"){event=window.event}var scrollingPosition=getScrollingPosition();var cursorPosition=[0,0];if(typeof event.pageX!="undefined"&&typeof event.x!="undefined"){Xcords=cursorPosition[0]=event.pageX;Ycords=cursorPosition[1]=event.pageY}else{Xcords=cursorPosition[0]=event.clientX+scrollingPosition[0];Ycords=cursorPosition[1]=event.clientY+scrollingPosition[1]}if((Xcords<popUpLinkMinX)||(Xcords>popUpLinkMaxX)||(Ycords<popUpLinkMinY)||(Ycords>popUpLinkMaxY)){active=false;document.onmousemove="";displayPopUpDiv.className="";clearTimeout(showPopUpTimeout)}else{showPopUpTimeout=setTimeout("changeClass(displayPopUpDiv,number);",100)}return active}function divTrackMouse(event){if(typeof event=="undefined"){event=window.event}var scrollingPosition=getScrollingPosition();var cursorPosition=[0,0];if(typeof event.pageX!="undefined"&&typeof event.x!="undefined"){Xcords=cursorPosition[0]=event.pageX;Ycords=cursorPosition[1]=event.pageY}else{Xcords=cursorPosition[0]=event.clientX+scrollingPosition[0];Ycords=cursorPosition[1]=event.clientY+scrollingPosition[1]}if((Xcords<popUpMinX)||(Xcords>popUpMaxX)||(Ycords<popUpMinY)||(Ycords>popUpMaxY)){active=false;document.onmousemove="";displayPopUpDiv.className="";clearTimeout(showPopUpTimeout)}return active;} 

