var    ie=(document.all);

/* Function Written to Show Larger Image Of Products */
function InitImage(e,imgSrc,divId,imgId)
{
    var left, top, oTop;
    if (ie)
    {   
        left=event.clientX;
        top=event.clientY;
        left=left+30;   
        if (document.body.parentElement && document.body.parentElement.clientLeft)
        {
            var bodParent = document.body.parentElement;            
            left = left + bodParent.scrollLeft;
            top = top + bodParent.scrollTop;
            top = top - 110;
        }        
    }
    else
    {
        left = e.pageX;
        left=left+30;
        left=left+'px';        
        top = e.pageY;
        top = top - 110;     
        top=top+'px';     
    }    
    ShowImage(left,top,imgSrc,divId,imgId)    
    return false;
}
/* Show Image */
function ShowImage(left,top,imgSrc,divId,imgId)
{   
    document.getElementById(divId).style.display = 'block';
    document.getElementById(divId).style.left = left;
    document.getElementById(divId).style.top = top;    
    document.getElementById(imgId).src=imgSrc;    
}
/* Hide Image */
function RemoveImage()
{   
    document.getElementById("divLargeImage").style.display = 'none';
}


