var wndx1;

function obrazek(adresa) {
//	if (wndx1) wndx1.close();
	wndx1=window.open("obrazek.html?"+adresa,"Obrazek","toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=1,width=700,height=500,top=1,left=1");
	wndx1.focus();
 	}
 	
function obrazek_tisk(adresa) {
//	if (wndx1) wndx1.close();
	wndx1=window.open("obrazek-tisk.html?"+adresa,"Obrazek","toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=1,width=700,height=500,top=1,left=1");
	wndx1.focus();
 	}
 	
//do HTML hlavičky třeba přidat: <script type="text/javascript" src="obrazek.js"></script>
//Bezpečné použití (i pro browsery bez javascriptu): <A onclick="javascript:obrazek('images/logo.jpg');return false;" href="images/logo.jpg" target=_blank>
//Pro obrázek s tlačítkem TISK: <A onclick="javascript:obrazek_tisk('images/logo.jpg');return false;" href="images/logo.jpg" target=_blank>

canSwitch=true;
TopObjectMenu=['Category_1','Category_2'];
function switchOn(obj){
	switchOff();
	document.all(obj).style.visibility='visible';
	canSwitch=false;
}		
function switchOff(){
	if (canSwitch){
		for(a=0;a<TopObjectMenu.length;a++){
			document.all(TopObjectMenu[a]).style.visibility='hidden';
		}
	}
}
function switchOffStart(obj){
	tmpObj=obj;
	setTimeout('switchOff()',150);
	canSwitch=true;
}


function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

