var defualtAlbum='http://www.ishoot3d.com/';
var albumWidth=650;/* the width of the album page best to use your image size*/
var albumHeight=400;/* the height of the album page */
var leftOffset='15%'; /* posion from the left in pixels, you can use % e.g 15% for 15% from left of current content*/
var topOffset='5%'; /* position from the top in pixels */
//var numberofalbums=0;

function showAlbum(albumx,div,width,height){

if(albumx!='')
{album=albumx;}
else
{album=defaultAlbum;}
if (height!='')albumHeight=height;
if (width!='')albumWidth=width;
document.getElementById(div).innerHTML='<span style="background:blue;position:right;cursor:hand;" onClick="closeDiv('+div+');"><font color=white><b>X Close Album</b></font></span><br/><iframe src='+album+' width='+albumWidth+' height='+albumHeight+' marginwidth="0"  marginheight="0"  frameborder="no" scrolling="yes" style="border-width:1px; background:#FFF;"></iframe><span style="background:blue;position:right;cursor:hand;" onClick="closeDiv('+div+');"><font color=white><b>X Close Album</b></font></span>';

document.getElementById(div).style.width=albumWidth;
document.getElementById(div).style.height=albumHeight;
document.getElementById(div).style.top=topOffset;			
document.getElementById(div).style.left=leftOffset;
document.getElementById(div).style.margin='auto';
document.getElementById(div).style.position='relative';
document.getElementById(div).style.position='fixed';
document.getElementById(div).style.zIndex='100';
document.getElementById(div).style.display='block';
}

function closeDiv(div)
{
//alert(div.id);
document.getElementById(div.id).style.display='none';
}
