function set_size() {
	if (document.getElementById('png').style.display=='block')
	{
		document.getElementById('png').style.height=document.getElementById('container').offsetHeight + 'px';
		document.getElementById('png').style.width=document.getElementById('container').offsetWidth + 'px';
	}
}

function show(i) {
	if(i!='popup')document.getElementById(i).style.display='block';
    else {document.getElementById(i).style.visibility='visible';


}
}

function hide(i) {
	if(i!='popup')document.getElementById(i).style.display='none';
	else document.getElementById(i).style.visibility='hidden';
}


function getDocumentHeight()
{
    return (document.body.scrollHeight > document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight;
    /*h=document.getElementById("container").offsetHeight;
    k=document.getElementById("stickyfooter").offsetHeight;
    k=0;
    return parseInt(h)+parseInt(k);*/

}

function getDocumentWidth()
{
    return (document.body.scrollWidth > document.body.offsetWidth)?document.body.scrollWidth:document.body.offsetWidth;
}

function _openimgproduct(obj)
{
   w=getDocumentWidth();
   h=getDocumentHeight();

   document.getElementById('png').style.height=document.getElementById('container').offsetHeight + 'px';
   document.getElementById('png').style.width=document.getElementById('container').offsetWidth + 'px';
   show('png');
   show('popup');
   document.getElementById("big_img").src=obj.src;

}

function _insert_bigimg(obj)
 {    document.getElementById("big_img").src=obj.src;
 }

