//----------------popup center-------------\\

function GetLeftOfPopup(width) // this will return left of a popup.parameter width of the popup
{
    x = (640 - width)/2;
    if (screen) {
        x = (screen.availWidth - width)/2;
    }
	return x;
}
function GetTopOfPopup(height)//this will return top of a popup.parameter height of the popup
{
   y = (480 - height)/2;
    if (screen) {
        y = (screen.availHeight - height)/2;
    }
	return y;
}


//-------------------------popup----------\\




function openWindowflashshow(imgUrl,name)
{
	photo = window.open("photogallery/flashshow.htm","Aayukshetram","width=650,height=520,top="+GetTopOfPopup(520)+",left="+GetLeftOfPopup(650)+",resizable=0,scrollbars=no")
	photo.focus();
}


