// JavaScript Document

<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function openPictureWindow_Fever_old(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  

  var newWindow=window.open("","Image", "width=" + imageWidth + ",height=" + imageHeight + ",resizable=yes, scrollbars=no, menubar=no, left="+posLeft+",top="+posTop);

	if (imageType == "swf"){
	newWindow.document.open();
	newWindow.document.write('<html><title>:: Kasztelania.pl :: '+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 

	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.open();
	newWindow.document.write('<html><title>:: Kasztelania.pl :: '+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img onMouseOver=\"this.style.cursor=\'hand\'\" onClick=\"window.close()\"  src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	//newWindow.document.close();
	//newWindow.focus();
}

	function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) 
{
  var newWindow=window.open("","Image", 'width=' + imageWidth + ',height=' + imageHeight + ',resizable=yes,scrollbars=no,menubar=no, left='+posLeft+',top='+posTop);

  newWindow.document.write('<html><HEAD><TITLE>.: Kasztelania.pl :. '+alt+'</TITLE><style>body{ margin-left: 0px;margin-right: 0px; margin-top: 0px;margin-bottom: 0px; }</style></HEAD>');
  newWindow.document.write('<body bgcolor="#000000">');
  newWindow.document.write('<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center><a href="javascript:close();"><img name="obrazek" border="0" src='+imageName+'></a></td></tr></table>');
  newWindow.document.write('<body></html>');
  	 newWindow.document.close();
	 newWindow.focus();
}

function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no' );
}
function displayWindowFull(url, width, height) {
        var Win = window.open(url,"displayWindow",'fullscreen,scrollbars=no,resizable=1,menubar=no' );
}




	