// JavaScript Document
function windowOpener(windowHeight, windowWidth, windowName, windowUri)
{
var centerWidth=(window.screen.width-windowWidth)/2;
var centerHeight=(window.screenheight-windowHeight)/2;

newWindow=window.open(windowUri, windowName,'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width='+windowWidth+',height='+windowHeight);
newWindow.blur();
newWindow.moveTo(centerWidth, centerHeight);
newWindow.focus();
return newWindow.name;
}
function imageLarge(url,w,h) 
{

 if(url!='') 
 {
  param='width='+w+',height='+h;
  foto=window.open('/images/view.php?foto='+url,'foto',param);
 }

}

function r_hlight (obj,a) {
	if (a==1)
		obj.style.backgroundColor = "#FFC016"
	else
		obj.style.backgroundColor = "#076E9C";
}
function hlight (ln,a) {
	if (a==1) {
		  if (ln==1) { document.all.ln1.style.backgroundColor = "#FFC016"}
	else  if (ln==2) { document.all.ln2.style.backgroundColor = "#FFC016"}
	else  if (ln==3) { document.all.ln3.style.backgroundColor = "#FFC016"}
	else  if (ln==4) { document.all.ln4.style.backgroundColor = "#FFC016"}
	else  if (ln==5) { document.all.ln5.style.backgroundColor = "#FFC016"}
	else  if (ln==6) { document.all.ln6.style.backgroundColor = "#FFC016"}
	else  if (ln==7) { document.all.ln7.style.backgroundColor = "#FFC016"}
	else  if (ln==8) { document.all.ln8.style.backgroundColor = "#FFC016"}
	else  if (ln==9) { document.all.ln9.style.backgroundColor = "#FFC016"}
	else  if (ln==10) { document.all.ln10.style.backgroundColor = "#FFC016"}
	else  if (ln==11) { document.all.ln11.style.backgroundColor = "#FFC016"}


	}	
	else {
  		  if (ln==1) { document.all.ln1.style.backgroundColor = "#076E9C"}
	else  if (ln==2) { document.all.ln2.style.backgroundColor = "#076E9C"}
	else  if (ln==3) { document.all.ln3.style.backgroundColor = "#076E9C"}
	else  if (ln==4) { document.all.ln4.style.backgroundColor = "#076E9C"}
	else  if (ln==5) { document.all.ln5.style.backgroundColor = "#076E9C"}
	else  if (ln==6) { document.all.ln6.style.backgroundColor = "#076E9C"}
	else  if (ln==7) { document.all.ln7.style.backgroundColor = "#076E9C"}
	else  if (ln==8) { document.all.ln8.style.backgroundColor = "#076E9C"}
	else  if (ln==9) { document.all.ln9.style.backgroundColor = "#076E9C"}
	else  if (ln==10) { document.all.ln10.style.backgroundColor = "#076E9C"}
	else  if (ln==11) { document.all.ln11.style.backgroundColor = "#076E9C"}

	}	
}



function openimage(url,w,h) 
{
 if(h==0) {h=w;}
 if(url!='') 
 {
 param='width='+w+',height='+h;
  foto=window.open(url,'foto',param);
 }

}




function pic(a,url,w,h) {
if(a==0) {
 window.open(url,'pictures','scrollbars=yes,status=no, width='+w+', height='+h+'');}
 else {
window.open(url,'pictures','scrollbars=no,status=no, width='+w+', height='+h+'');}
 }
 
 
 function views(url,name)
{
	foto=window.open('/images/view.php?foto='+url+'&name='+name,'foto','width=300,height=300');
	foto.focus();
}

function view(url,name)
{
	foto=window.open('/images/view.php?foto='+url+'&name='+name,'foto','width=300,height=300'); 
	foto.focus();
}
