
// CACHE

if (document.images) {
//btn_pressreleases_el_off= new Image();		btn_pressreleases_el_off.src="";  
}

// FUNCTIONS

function turnOn(imgName) 
{ 
if (document.images) { document[imgName].src = eval(imgName + "_on.src"); }
}

function turnOff(imgName) 
{ 
if (document.images) { document[imgName].src = eval(imgName + "_off.src"); } 
}

function show(object)
{
if (document.getElementById && document.getElementById(object) != null) node = document.getElementById(object).style.visibility='visible';
else if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'visible';
else if (document.all) document.all[object].style.visibility = 'visible';
}

function hide(object)
{
if (document.getElementById && document.getElementById(object) != null) node = document.getElementById(object).style.visibility='hidden';
else if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'hidden';
else if (document.all) document.all[object].style.visibility = 'hidden';
}

function dispon(object) {
if (document.getElementById && document.getElementById(object) != null) node = document.getElementById(object).style.display='block';
else if (document.layers && document.layers[object] != null) document.layers[object].display = 'block';
else if (document.all) document.all[object].style.display = 'block';
}

function dispoff(object)
{
if (document.getElementById && document.getElementById(object) != null) node = document.getElementById(object).style.display='none';
else if (document.layers && document.layers[object] != null) document.layers[object].display = 'none';
else if (document.all) document.all[object].style.display = 'none';
}

function changeclass(tagname,css) 
{
if (document.all) { eval("document.all."+tagname+".className='"+css+"'"); }
if (document.getElementById && !document.all)  { eval("document.getElementById('"+tagname+"')"+".className='"+css+"'"); }
}


function openwin(image, x, y, lezanta) {
	var content='';

	pic=window.open("","PHOTOS","width="+x+",height="+y+",titlebar=yes,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,hotkeys=yes");
	window.pic.document.open();
	content='<html><head><title>'+lezanta+'</title></head>';
	content+='<body topmargin="0" leftmargin="0" marginwidth="0" margineight="0" bgcolor="#565A5D" onblur="self.close()">';
	content+='<img src="'+ image +'" width="'+ x +'" height="'+ y +'" border="0"></body></html>';
	window.pic.document.write(content);
	window.pic.document.close();
}
