// JavaScript Document

    
 function getElementLeft(elm) 
{
    var x = 0;

    //set x to elm’s offsetLeft
    x = 350;

    //set elm to its offsetParent
    elm = elm.offsetParent;

    //use while loop to check if elm is null
    // if not then add current elm’s offsetLeft to x
    //offsetTop to y and set elm to its offsetParent

    while(elm != null)
    {
        x = parseInt(x) + parseInt(elm.offsetLeft);
        elm = elm.offsetParent;
    }
    return x;
}

function getElementTop(elm) 
{
    var y = 0;

    //set x to elm’s offsetLeft
    y = 100;

    //set elm to its offsetParent
    elm = elm.offsetParent;

    //use while loop to check if elm is null
    // if not then add current elm’s offsetLeft to x
    //offsetTop to y and set elm to its offsetParent

    while(elm != null)
    {
        y = parseInt(y) + parseInt(elm.offsetTop);
        elm = elm.offsetParent;
    }

    return y;
}
function Large(obj)
{
    var imgbox=document.getElementById("imgbox");
    imgbox.style.visibility='visible';
    var img = document.createElement("img");
    img.src=obj.src;
    img.style.width='550px';
    img.style.height='412px';
    
    if(img.addEventListener){
        img.addEventListener('mouseout',Out,false);
    } else {
        img.attachEvent('onmouseout',Out);
    }             
    imgbox.innerHTML='<div style="text-align: center; color:#600;">Pick your music store </div><div style="position: absolute; font-size:14px; margin-top: 5px; margin-left: 10px; margin-right: 10px;">9228 2223 Billy Hyde&nbsp;&nbsp;&nbsp;&nbsp;9470 1020 Park Pianos&nbsp;&nbsp;&nbsp;&nbsp;9384 0560 Just Music&nbsp;&nbsp;&nbsp;&nbsp;9383 1422 Zenith&nbsp;&nbsp;&nbsp;&nbsp;9330 2777 Mega Music&nbsp;&nbsp;&nbsp;&nbsp;9381 2277 Concept Music&nbsp;&nbsp;&nbsp;&nbsp;Kosmic Sound online music store 9204 7577</div>';
    imgbox.appendChild(img);
    imgbox.style.left=(getElementLeft(obj)-250) +'px';
    imgbox.style.top=(getElementTop(obj)-50) + 'px';
}
function Out()
{
    document.getElementById("imgbox").style.visibility='hidden';
}