// sk

imgsrc = new Array();
imgsrc[1] = "Img/menu/01.gif";
imgsrc[2] = "Img/menu/01_on.gif";

imgsrc[3] = "Img/menu/02.gif";
imgsrc[4] = "Img/menu/02_on.gif";

imgsrc[5] = "Img/menu/03.gif";
imgsrc[6] = "Img/menu/03_on.gif";

imgsrc[7] = "Img/menu/04.gif";
imgsrc[8] = "Img/menu/04_on.gif";

imgsrc[9] = "Img/menu/05.gif";
imgsrc[10] = "Img/menu/05_on.gif";

imgsrc[11] = "Img/menu/06.gif";
imgsrc[12] = "Img/menu/06_on.gif";


if (zistiVerziu()) {
  img = new Array();
  for (i = 1; i < imgsrc.length; i++) {
    img[i] = new Image();
    img[i].src = imgsrc[i];
  }
}


function zistiVerziu() {
	appname= navigator.appName;
	appversion = navigator.appVersion;
	majorver = appversion.substring(0, 1); 
	if ( (appname == "Netscape") && ( majorver > 3 ) ) return 1;
	if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;
	if ( (appname == "Opera") && (majorver >= 6) ) return 1;	
	return 0;

}


function vymen(num, imgname) {
	if (zistiVerziu()) {
	document[imgname].src = img[num].src;
	}
}

function zobrazStatus(txt) {
	status=txt;
}


// otvaranie obrazkov do noveho okna
function generujAll(mySrc,sirka,vyska)
{
  okno=window.open("","okno","left=100,top=100,width="+ sirka +",height="+ vyska +",menubar=no,directories=no,"+"toolbar=no,location=no,status=no,scrollbars=no,resizable=no");
  okno.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n");
  okno.document.write("<html>\n");
  okno.document.write("<head>\n");
  okno.document.write("<title>Jolanta Pawlak - official web site of contemporary artist</title>\n");
  okno.document.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\">\n");
  okno.document.write("<meta name=\"description\" content=\"Jolanta Pawlak - official web site of contemporary artist\">\n");
  okno.document.write("<meta name=\"keywords\" content=\"Jolanta Pawlak - official web site of contemporary artist\">\n");
  okno.document.write("<meta name=\"robots\" content=\"all\">\n");
  okno.document.write("<meta name=\"revisit-after\" content=\"10 days\">\n");
  okno.document.write("<meta name=\"classification\" content=\"Jolanta Pawlak - official web site of contemporary artist\">\n");
  okno.document.write("<meta name=\"author\" content=\"(c) 1998 - 2003 Millennium 000 spol. s r. o. , URL: http://www.millennium000.sk\">\n");
  okno.document.write("<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n");
  okno.document.write("<a href=\"javascript:;\" onClick=\"window.close()\" title=\"Close\"><img src=" + mySrc + "  width="+ sirka +" height="+ vyska +" border=\"0\"></a>\n");
  okno.document.write("</body>\n</html>\n");
}

function generujOne(mySrc,sirka,vyska)
{
  okno=window.open("","okno","left=100,top=0,width="+ sirka +",height="+ vyska +",menubar=no,directories=no,"+"toolbar=no,location=no,status=no,scrollbars=no,resizable=no");
  okno.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n");
  okno.document.write("<html>\n");
  okno.document.write("<head>\n");
  okno.document.write("<title>Jolanta Pawlak - official web site of contemporary artist</title>\n");
  okno.document.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\">\n");
  okno.document.write("<meta name=\"description\" content=\"Jolanta Pawlak - official web site of contemporary artist\">\n");
  okno.document.write("<meta name=\"keywords\" content=\"Jolanta Pawlak - official web site of contemporary artist\">\n");
  okno.document.write("<meta name=\"robots\" content=\"all\">\n");
  okno.document.write("<meta name=\"revisit-after\" content=\"10 days\">\n");
  okno.document.write("<meta name=\"classification\" content=\"Jolanta Pawlak - official web site of contemporary artist\">\n");
  okno.document.write("<meta name=\"author\" content=\"(c) 1998 - 2003 Millennium 000 spol. s r. o. , URL: http://www.millennium000.sk\">\n");
  okno.document.write("<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n");
  okno.document.write("<a href=\"javascript:;\" onClick=\"window.close()\" title=\"Close\"><img src=" + mySrc + "  width="+ sirka +" height="+ vyska +" border=\"0\"></a>\n");
  okno.document.write("</body>\n</html>\n");
}



// detekcia flashu

// ---------------
// FLASH DETECTION
// ---------------


var requiredVersion = 5;

var flash2Installed = false;
var flash3Installed = false;
var flash4Installed = false;
var flash5Installed = false;
var flash6Installed = false;
var maxVersion = 6;
var actualVersion = 0;
var hasRightVersion = false;
var jsVersion = 1.0;

var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;

jsVersion = 1.1;

if(isIE && isWin){
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
	document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
	document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
	document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');	
	document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');	
	document.write('</SCR' + 'IPT\> \n');
}

function detectFlash(){	

	if (navigator.plugins){
		if (navigator.plugins["Shockwave Flash 2.0"]|| navigator.plugins["Shockwave Flash"])
		{
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));

			flash2Installed = flashVersion == 2;		
			flash3Installed = flashVersion == 3;
			flash4Installed = flashVersion == 4;
			flash5Installed = flashVersion == 5;
			flash6Installed = flashVersion == 6;
		}
	}
	
	for (var i = 2; i <= maxVersion; i++) {	
		if (eval("flash" + i + "Installed") == true) actualVersion = i;
	}

	if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 2;	

	if (actualVersion >= requiredVersion)
		hasRightVersion = true;
	else
		hasRightVersion = false;
		
	return hasRightVersion;
}


// priradim hodnotu
var isFLASH = detectFlash();



function put_flash()
{
	if (isFLASH)
	{

/*		document.write("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">");
		document.write("<tr>");
		document.write("<td height=\"145\" valign=\"top\">");
*/
		document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"479\" height=\"22\">");
		document.write("<param name=\"movie\" value=\"Img/jp_navigation.swf\">");
		document.write("<param name=\"quality\" value=\"high\">");
		document.write("<param name=\"bgcolor\" value=\"#000000\">");
		document.write("<param name=\"wmode\" value=\"transparent\">");
		document.write("<embed src=\"Img/jp_navigation.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"479\" height=\"22\"></embed>");
		document.write("</object>");
/*		document.write("</td>");
		document.write("</tr>");
		document.write("</table>");	
*/


	
	}
	else
	{
/*		document.write("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">");
		document.write("<tr>");
*/		document.write("<a href=\"bio.htm\" onmouseover=\"zobrazStatus('Bio & Education'); vymen('2','img01'); return true;\" onmouseout=\"zobrazStatus(''); vymen('1','img01'); return true;\"><img src=\"Img/menu/01.gif\" width=\"105\" height=\"22\" border=\"0\" alt=\"Bio & Education\" name=\"img01\" id=\"img01\"></a><a href=\"exhibitions.htm\" onmouseover=\"zobrazStatus('Exhibitions'); vymen('4','img03'); return true;\" onmouseout=\"zobrazStatus(''); vymen('3','img03'); return true;\"><img src=\"Img/menu/02.gif\" width=\"75\" height=\"22\" border=\"0\" alt=\"\" name=\"img03\" id=\"img03\"></a><a href=\"sculptures.htm\" onmouseover=\"zobrazStatus('Sculptures'); vymen('6','img05'); return true;\" onmouseout=\"zobrazStatus(''); vymen('5','img05'); return true;\"><img src=\"Img/menu/03.gif\" width=\"73\" height=\"22\" border=\"0\" alt=\"\" name=\"img05\" id=\"img05\"></a><a href=\"photography.htm\" onmouseover=\"zobrazStatus('Photography'); vymen('8','img07'); return true;\" onmouseout=\"zobrazStatus(''); vymen('7','img07'); return true;\"><img src=\"Img/menu/04.gif\" width=\"90\" height=\"22\" border=\"0\" alt=\"\" name=\"img07\" id=\"img07\"></a><a href=\"jewelry.htm\" onmouseover=\"zobrazStatus('Jewelry'); vymen('10','img09'); return true;\" onmouseout=\"zobrazStatus(''); vymen('9','img09'); return true;\"><img src=\"Img/menu/05.gif\" width=\"58\" height=\"22\" border=\"0\" alt=\"\" name=\"img09\" id=\"img09\"></a><a href=\"contact.htm\" onmouseover=\"zobrazStatus('Contact'); vymen('12','img11'); return true;\" onmouseout=\"zobrazStatus(''); vymen('11','img11'); return true;\"><img src=\"Img/menu/06.gif\" width=\"78\" height=\"22\" border=\"0\" alt=\"\" name=\"img11\" id=\"img11\"></a>");
/*		document.write("</tr>");
		document.write("</table>");
*/		
    }
}