var features, opened;

function check(adresa) {
	if (!adresa || ((adresa.indexOf("@") == -1) || (adresa.indexOf(".") == -1))) {
		window.alert("Please, enter your e-mail!");
	return false;
	}
	else {
		return true;
	}
}

function rollover(overimg,whichimg) {
        if (ok) {
                eval('document.images["' + whichimg + '"].src = ' + overimg + '.src')
        }
}

function rollout(offimg,whichimg) {
        if (ok) {
                eval('document.images["' + whichimg + '"].src = ' + offimg + '.src')            
        }
}

function popup(image, extension, width, height, name, version) {
	if (!version) {
		version = "";
	}
	features  = 'width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0';
	opened = window.open("", 'name', features);
	with (opened) {
		// window.resizeTo((width+10),(height+49));
		window.moveTo(53,60);
		document.open();
		document.write ("<html>\n <head>\n  <title>" + image + "</title>\n </head>\n");
		document.write (" <body bgcolor=\"#EEF4F4\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\">\n");
		document.write ("  <table width=\""+ width +"\" height=\""+ height +"\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n   <tr>\n");
		document.write ("    <td align=\"center\" valign=\"middle\"><a href='javascript:window.close();'><img src=\""+ image + "_big"+ version +"."+ extension +"\" border=\"0\"></a><td>\n");
		document.write ("   </tr>\n  </table>\n");
		document.write (" </body>\n</html>");
		document.close();
		window.focus();
	}
}

function popup1(image, extension, width, height, name, version) {
	if (!version) {
		version = "";
	}
	features  = 'width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0';
	opened = window.open("", 'name', features);
	with (opened) {
		// window.resizeTo((width+10),(height+49));
		window.moveTo(53,60);
		document.open();
		document.write ("<html>\n <head>\n  <title>" + image + "</title>\n </head>\n");
		document.write (" <body bgcolor=\"#EEF4F4\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\">\n");
		document.write ("  <table width=\""+ width +"\" height=\""+ height +"\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n   <tr>\n");
		document.write ("    <td align=\"center\" valign=\"middle\"><a href=\"javascript:window.close();\"><img src=\""+ image + version +"."+ extension +"\" border=\"0\"></a><td>\n");
		document.write ("   </tr>\n  </table>\n");
		document.write (" </body>\n</html>");
		document.close();
		window.focus();
	}
}

function popup2(src, width, height, prdname) {
	features  = 'width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0';
	opened = window.open("", 'name', features);
	with (opened) {
		// window.resizeTo((width+10),(height+49));
		window.moveTo(53,60);
		document.open();
		document.write ("<html>\n <head>\n  <title>" + prdname + "</title>\n </head>\n");
		document.write (" <body bgcolor=\"#EEF4F4\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\">\n");
		document.write ("  <table width=\""+ width +"\" height=\""+ height +"\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n   <tr>\n");
		document.write ("    <td align=\"center\" valign=\"middle\"><a href=\"javascript:window.close();\"><img src=\""+ src +"\" border=\"0\"></a><td>\n");
		document.write ("   </tr>\n  </table>\n");
		document.write (" </body>\n</html>");
		document.close();
		window.focus();
	}					
}

function popup3(image, extension, width, height, name, version) {
	if (!version) {
		version = "";
	}
	features  = 'width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0';
	opened = window.open("", 'name', features);
	with (opened) {
		window.resizeTo((width+30),(height));
		window.moveTo(53,0);
		document.open();
		document.write ("<html>\n <head>\n  <title>" + image + "</title>\n </head>\n");
		document.write (" <body bgcolor=\"#EEF4F4\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\">\n");
		document.write ("  <table width=\""+ width +"\" height=\""+ height +"\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n   <tr>\n");
		document.write ("    <td align=\"center\" valign=\"middle\"><a href='javascript:window.close();'><img src=\""+ image + "_big"+ version +"."+ extension +"\" width=\""+ width +"\" height=\""+ height +"\" border=\"0\"></a><td>\n");
		document.write ("   </tr>\n  </table>\n");
		document.write (" </body>\n</html>");
		document.close();
		window.focus();
	}
}


/*
function vidup(src, width, height, prdname) {
	features  = 'width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0';
	opened = window.open("", 'name', features);
	with (opened) {
		window.resizeTo((width+10),(height+29));
		window.moveTo(53,60);
		document.open();
		//document.write ("<OBJECT id=mp_3696299513 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 type=application/x-oleobject height=322 standby=\"Loading Microsoft Windows Media Player components...\" width=300 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95><PARAM NAME=\"AllowChangeDisplaySize\" VALUE=\"1\"><PARAM NAME=\"AutoRewind\" VALUE=\"1\"><PARAM NAME=\"Autosize\" VALUE=\"1\"><PARAM NAME=\"AutoStart\" VALUE=\"1\"><PARAM NAME=\"Balance\" VALUE=\"0\"><PARAM NAME=\"BufferingTime\" VALUE=\"10\"><PARAM NAME=\"ClickToPlay\" VALUE=\"1\"><PARAM NAME=\"DisplaySize\" VALUE=\"4\"><PARAM NAME=\"EnableContextMenu\" VALUE=\"1\"><PARAM NAME=\"EnableFullScreenControls\" VALUE=\"1\"><PARAM NAME=\"EnableTracker\" VALUE=\"1\"><PARAM NAME=\"Filename\" VALUE=\".\7.0\test10.mpg\"><PARAM NAME=\"Mute\" VALUE=\"0\"><PARAM NAME=\"PlayCount\" VALUE=\"1\"><PARAM NAME=\"ShowControls\" VALUE=\"1\"><PARAM NAME=\"ShowAudioControls\" VALUE=\"1\"><PARAM NAME=\"ShowDisplay\" VALUE=\"0\"><PARAM NAME=\"ShowGotoBar\" VALUE=\"0\"><PARAM NAME=\"ShowPositionControls\" VALUE=\"1\"><PARAM NAME=\"ShowStatusBar\" VALUE="1"><PARAM NAME=\"ShowTracker\" VALUE=\"1\"><PARAM NAME=\"VideoBorderColor\" VALUE=\"0\"><PARAM NAME=\"VideoBorderWidth\" VALUE=\"0\"><PARAM NAME=\"Volume\" VALUE=\"-500\"><EMBED TYPE=\"application/x-mplayer2\" PLUGINSPAGE=\"http://microsoft.com/windows/mediaplayer/en/download/\" ID=MediaPlayer Name=\"mp_3696299513\" Width=\"300\" Height=\"322\" Src=\".\7.0\test10.mpg\" AutoSize=\"1\" AutoStart=\"1\" ClickToPlay=\"1\" DisplaySize=\"0\" EnableContextMenu=\"1\" EnableFullScreenControls=\"1\" EnableTracker=\"1\" Mute=\"0\" PlayCount=\"1\" ShowControls=\"1\" ShowAudioControls=\"1\" ShowDisplay=\"0\" ShowGotoBar=\"0\" ShowPositionControls=\"1\" ShowStatusBar=\"1\" ShowTracker=\"1\"></EMBED></OBJECT>");
		document.write ("<OBJECT id=mp_3696299513 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 type=application/x-oleobject height=322 standby='Loading Microsoft Windows Media Player components...' width=300 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95><PARAM NAME='AllowChangeDisplaySize' VALUE='1'><PARAM NAME='AutoRewind' VALUE='1'><PARAM NAME='Autosize' VALUE='1'><PARAM NAME='AutoStart' VALUE='1'><PARAM NAME='Balance' VALUE='0'><PARAM NAME='BufferingTime' VALUE='10'><PARAM NAME='ClickToPlay' VALUE='1'><PARAM NAME='DisplaySize' VALUE='4'><PARAM NAME='EnableContextMenu' VALUE='1'><PARAM NAME='EnableFullScreenControls' VALUE='1'><PARAM NAME='EnableTracker' VALUE='1'><PARAM NAME='Filename' VALUE='.\7.0\test10.mpg'><PARAM NAME='Mute' VALUE='0'><PARAM NAME='PlayCount' VALUE='1'><PARAM NAME='ShowControls' VALUE='1'><PARAM NAME='ShowAudioControls' VALUE='1'><PARAM NAME='ShowDisplay' VALUE='0'><PARAM NAME='ShowGotoBar' VALUE='0'><PARAM NAME='ShowPositionControls' VALUE='1'><PARAM NAME='ShowStatusBar' VALUE="1"><PARAM NAME='ShowTracker' VALUE='1'><PARAM NAME='VideoBorderColor' VALUE='0'><PARAM NAME='VideoBorderWidth' VALUE='0'><PARAM NAME='Volume' VALUE='-500'><EMBED TYPE='application/x-mplayer2' PLUGINSPAGE='http://microsoft.com/windows/mediaplayer/en/download/' ID=MediaPlayer Name='mp_3696299513' Width='300' Height='322' Src='.\7.0\test10.mpg' AutoSize='1' AutoStart='1' ClickToPlay='1' DisplaySize='0' EnableContextMenu='1' EnableFullScreenControls='1' EnableTracker='1' Mute='0' PlayCount='1' ShowControls='1' ShowAudioControls='1' ShowDisplay='0' ShowGotoBar='0' ShowPositionControls='1' ShowStatusBar='1' ShowTracker='1'></EMBED></OBJECT>");
		document.write (" <body bgcolor=\"#EEF4F4\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\">\n");
		document.write ("  <table width=\""+ width +"\" height=\""+ height +"\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n   <tr>\n");
		document.write ("    <td align=\"center\" valign=\"middle\"><a href=\"javascript:window.close();\"><img src=\""+ src +"\" border=\"0\"></a><td>\n");
		document.write ("   </tr>\n  </table>\n");
		document.write (" </body>\n</html>");
		document.close();
		window.focus();
	}
}
*/

function okno(lang) {
	var features, opened;
	features  = 'width=270,height=125,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0';
	opened = window.open("popup_pdf_"+ lang +".htm", 'products', features);
	with (opened) {
		window.moveTo((((screen.width-280)/2)+95),205);
		window.focus();
	}
}

function ad(lang) {
	var features, opened;
	features  = 'width=270,height=125,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0';
	opened = window.open("popup_" + lang + ".htm", 'name', features);
	with (opened) {
	window.moveTo((((screen.width-280)/2)+95),205);
	window.focus();
	}
}

function popup_doc(doc, name, width, height) 
{
	features  = 'width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=0,scrollbars=0';
	opened = window.open(doc, name, features);
	with (opened) 
	{
	    window.moveTo(53,60);
		window.focus();
	}
}
