
doProductPopup=function () {
	var yoffset=30;  //Vertical offset position of all popups
	var xoffset=20; //Horizontal offset position of all popups
	var pop=document.getElementById('productPopup');
	var products=pop.getElementsByTagName('img');
	for (i=0; i<products.length; i++) {
		productCell=products.item(i).parentNode;

		if (document.getElementById("productPopup_"+i)) {
			popUp=document.getElementById("productPopup_"+i).cloneNode(true);
			popUp.style.display="none";
			popUp.style.position="absolute";
			xp=findPosX(productCell)+xoffset;
			yp=findPosY(productCell)+yoffset;
			popUp.style.left=xp+"px";
			popUpModel=popUp.getElementsByTagName("td");
			offsetHeight=popUpModel.length*28;
			if(checkIt('firefox'))
			{
			baseOffset=yp-offsetHeight-26;
			}
			else
			{
			baseOffset=yp-offsetHeight-43;
			}
			popUp.style.top=baseOffset+"px";
			productCell.appendChild(popUp);
			productCell.onmouseover=function () 
			{ 
			    if(!checkIt('msie'))
			    { 
			    this.childNodes[2].style.display='block';
			    }			   
			    else
			    {
			    this.childNodes[1].style.display='block'; 			    			   
			    } 
			    return true;
			}
			productCell.onmouseout=function () 
			{ 
			    if(!checkIt('msie'))
			    { 
			    this.childNodes[2].style.display='none';
			    }
			    else
			    {
			    this.childNodes[1].style.display='none'; 			    	   
			    } 
			     return true;		
			}
			productCellCells=productCell.getElementsByTagName("TD");
			for (j=0; j<productCellCells.length; j++) {
				productCellCells.item(j).onmouseover=function () 
			    { 
			        this.style.backgroundImage="url('popUpBgHover.gif')"; 
			    }
				productCellCells.item(j).onmouseout=function () 
				{ 
				    this.style.backgroundImage="url('popUpBg.gif')"; 
				}
			}
		}
	}
}

