<!--

function pop_pic(file,width,height,name)
{
	var xPos = (screen.availWidth / 2) - (width / 2);
	var yPos = (screen.availHeight / 2) - (height / 2) - 20;
	kepablak =window.open('',name,'top='+yPos+',left='+xPos+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
	kepablak.document.open();
	kepablak.document.write("<html><head><title>BÁNYAI BÚTOROK</title></head><body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
	kepablak.document.write("<a href='javascript:window.close()'><img src='"+file+"' border='0' alt='Bezár'></a>");
	kepablak.document.write("</body></html>");
	kepablak.document.close();
}

function popUP(file,width,height,scrolling,name)
{
	var    xPos = (screen.availWidth / 2) - (width / 2);
	var    yPos = (screen.availHeight / 2) - (height / 2) - 20;
	window.open(file,name,'top='+yPos+',left='+xPos+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scrolling+',resizable=0,width='+width+',height='+height);
}

function changeBigpictSrc(bigpict,src)
{
	var element			= document.getElementById? document.getElementById("bigpict"):document.all.descriptions;
	//alert(element.name + ': ' + element.src);
	element.src			= src;
	//alert(element.name + ': ' + element.src);
	return true;
}

function changeBigpictDiv(elemId,myHtml)
{
	var element = document.getElementById ? document.getElementById(elemId) : document.all.descriptions;
	//alert(element.name + ': ' + element.src);
	element.innerHTML = myHtml;
	//alert(element.name + ': ' + element.src);
	return true;
}

function changeBigpictImage(elemId, imageSrc)
{
    var myHtml = '<img id="bigpict" src="' + imageSrc + '" border="0">';
    return changeBigpictDiv(elemId, myHtml);
}

function changeBigpictVideo(elemId, videoSrc)
{
    var myHtml = '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/' + videoSrc  + '&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' + videoSrc + '&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>';
    return changeBigpictDiv(elemId, myHtml);
}

function setPageID(mid, name) {
	document.location = document.forms[name].pagelocation.value + '/id|' + mid;
	return true;
}
//-->
