	if (document.images) {
	 photos_on =new Image();
	 photos_off=new Image();
	 photos_on.src ="images/photos_on.gif";
	 photos_off.src="images/photos_off.gif"; 
	 
	 mp3_on =new Image();
	 mp3_off=new Image();
	 mp3_on.src ="images/mp3_on.gif";
	 mp3_off.src="images/mp3_off.gif"; 
	 
	 flyers_on =new Image();
	 flyers_off=new Image();
	 flyers_on.src ="images/flyers_on.gif";
	 flyers_off.src="images/flyers_off.gif"; 
	 
	 board_on =new Image();
	 board_off=new Image();
	 board_on.src ="images/board_on.gif";
	 board_off.src="images/board_off.gif"; 
	}
	
	function handleOver(img) { 
		imgOn=eval(img + "_on.src");
		if (document.images) document[img].src=imgOn;
	}
	
	function handleOut(img) {
		imgOff=eval(img + "_off.src");
		if (document.images) document[img].src=imgOff;
	}

	function openWindow(file){
		window.open('image.php?file=' + file, 'SPOFA','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=680,height=500');
	}
	
	function openWindow2(file) {
		var iMyWidth;
		var iMyHeight;
		//half the screen width minus half the new window width (plus 5 pixel borders).
		iMyWidth = (window.screen.width/2) - (340 + 10);
		//half the screen height minus half the new window height (plus title and status bars).
		iMyHeight = (window.screen.height/2) - (290 + 50);
		//Open the window.
		var win2 = window.open('image.php?file=' + file,'SPOFA','status=no,width=680,height=580,resizable=no,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',toolbar=no,menubar=no,scrollbars=no,location=no,directories=no');
		win2.focus();
	}
	
	function openSmile() {
		var iMyWidth;
		var iMyHeight;
		//half the screen width minus half the new window width (plus 5 pixel borders).
		iMyWidth = (window.screen.width/2) - (240 + 10);
		//half the screen height minus half the new window height (plus title and status bars).
		iMyHeight = (window.screen.height/2) - (160 + 50);
		//Open the window.
		var win2 = window.open('smajlici.html','Smajlíci','status=no,width=480,height=380,resizable=no,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',toolbar=no,menubar=no,scrollbars=no,location=no,directories=no');
		win2.focus();
	}