// JavaScript Document

function mmLoadMenus() {
  if (window.mm_menu_1017115308_0) return;
                        window.mm_menu_1017115308_0 = new Menu("root",116,17,"Trebuchet MS, Verdana, Tahoma, sans-serif",11,"#FFFFFF","#FFFFFF","#596878","#D1BD03","left","middle",3,0,300,-5,7,true,true,true,3,true,true);
  mm_menu_1017115308_0.addMenuItem("Posuvné","location='automaticke-dvere/sk-posuvne-charakteristika.php'");
  mm_menu_1017115308_0.addMenuItem("Otočné","location='automaticke-dvere/sk-otocne-charakteristika.php'");
  mm_menu_1017115308_0.addMenuItem("Hliníkové&nbsp;konštrukcie","location='automaticke-dvere/sk-hlinikove-charakteristika.php'");
   mm_menu_1017115308_0.hideOnMouseOut=true;
   mm_menu_1017115308_0.bgColor='#FFFFFF';
   mm_menu_1017115308_0.menuBorder=0;
   mm_menu_1017115308_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1017115308_0.menuBorderBgColor='#FFFFFF';
window.mm_menu_1017115310_0 = new Menu("root",116,17,"Trebuchet MS, Verdana, Tahoma, sans-serif",11,"#FFFFFF","#FFFFFF","#596878","#0274B0","left","middle",3,0,300,-5,7,true,true,true,3,true,true);
  mm_menu_1017115310_0.addMenuItem("Tourniket","location='turniketove-dvere/sk-tourniket-charakteristika.php'");
  mm_menu_1017115310_0.addMenuItem("Duotour","location='turniketove-dvere/sk-duotour-charakteristika.php'");
  mm_menu_1017115310_0.addMenuItem("Tournex","location='turniketove-dvere/sk-tournex-charakteristika.php'");
  mm_menu_1017115310_0.addMenuItem("Twintour","location='turniketove-dvere/sk-twintour-charakteristika.php'");
   mm_menu_1017115310_0.hideOnMouseOut=true;
   mm_menu_1017115310_0.bgColor='#FFFFFF';
   mm_menu_1017115310_0.menuBorder=0;
   mm_menu_1017115310_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1017115310_0.menuBorderBgColor='#FFFFFF';
     window.mm_menu_1017115311_0 = new Menu("root",145,17,"Trebuchet MS, Verdana, Tahoma, sans-serif",11,"#FFFFFF","#FFFFFF","#596878","#EA0000","left","middle",3,0,300,-5,7,true,true,true,3,true,true);
  mm_menu_1017115311_0.addMenuItem("Sekčné&nbsp;vráta","location='prumyslova/sk-sekcni-charakteristika.php'");
  mm_menu_1017115311_0.addMenuItem("Rolovací&nbsp;vráta","location='prumyslova/sk-rolovaci-charakteristika.php'");
  mm_menu_1017115311_0.addMenuItem("Rýchlobežné&nbsp;vráta","location='prumyslova/sk-rychlobezna-charakteristika.php'");
  mm_menu_1017115311_0.addMenuItem("Požiarne&nbsp;posuvné&nbsp;vráta","location='prumyslova/sk-pozarni-posuvna-charakteristika.php'");
  mm_menu_1017115311_0.addMenuItem("Požiarny&nbsp;roletový&nbsp;uzáver","location='prumyslova/sk-pozarni-roletovy-charakteristika.php'");
  mm_menu_1017115311_0.addMenuItem("Požiarne&nbsp;rolovacie&nbsp;vráta","location='prumyslova/sk-pozarni-rolovaci-charakteristika.php'");
  mm_menu_1017115311_0.addMenuItem("Ocelové&nbsp;skladacie&nbsp;vráta ","location='prumyslova/sk-ocelova-charakteristika.php'");
   mm_menu_1017115311_0.hideOnMouseOut=true;
   mm_menu_1017115311_0.bgColor='#FFFFFF';
   mm_menu_1017115311_0.menuBorder=0;
   mm_menu_1017115311_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1017115311_0.menuBorderBgColor='#FFFFFF';
   window.mm_menu_1017115312_0 = new Menu("root",150,17,"Trebuchet MS, Verdana, Tahoma, sans-serif",11,"#FFFFFF","#FFFFFF","#596878","#336600","left","middle",3,0,300,-5,7,true,true,true,3,true,true);
  mm_menu_1017115312_0.addMenuItem("Sekčné&nbsp;garážové&nbsp;vráta","location='garazove/sk-sekcni-charakteristika.php'");
  mm_menu_1017115312_0.addMenuItem("Pohony&nbsp;pre&nbsp;otocné&nbsp;brány","location='garazove/sk-otocne-charakteristika.php'");
  mm_menu_1017115312_0.addMenuItem("Pohony&nbsp;pre&nbsp;posuvné&nbsp;brány","location='garazove/sk-posuvne-charakteristika.php'");
  mm_menu_1017115312_0.addMenuItem("Pohony&nbsp;pre&nbsp;garážové&nbsp;vráta","location='garazove/sk-comfort-charakteristika.php'");
   mm_menu_1017115312_0.hideOnMouseOut=true;
   mm_menu_1017115312_0.bgColor='#FFFFFF';
   mm_menu_1017115312_0.menuBorder=0;
   mm_menu_1017115312_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1017115312_0.menuBorderBgColor='#FFFFFF';
    window.mm_menu_1017115313_0 = new Menu("root",148,17,"Trebuchet MS, Verdana, Tahoma, sans-serif",11,"#FFFFFF","#FFFFFF","#596878","#709100","left","middle",3,0,300,-5,7,true,true,true,3,true,true);
  mm_menu_1017115313_0.addMenuItem("Pruhové&nbsp;závesy","location='clony/sk-zavesy-charakteristika.php'");
  mm_menu_1017115313_0.addMenuItem("Kyvné&nbsp;vráta","location='clony/sk-kyvna-charakteristika.php'");
  mm_menu_1017115313_0.addMenuItem("Rýchlonavíjacie&nbsp;vráta","location='clony/sk-rychlonavijeci-charakteristika.php'");
  mm_menu_1017115313_0.addMenuItem("Špeciálne&nbsp;rýchlonav.&nbsp;vráta","location='clony/sk-rapid-roll-clean.php'");
   mm_menu_1017115313_0.hideOnMouseOut=true;
   mm_menu_1017115313_0.bgColor='#FFFFFF';
   mm_menu_1017115313_0.menuBorder=0;
   mm_menu_1017115313_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1017115313_0.menuBorderBgColor='#FFFFFF';
    window.mm_menu_1017115314_0 = new Menu("root",170,17,"Trebuchet MS, Verdana, Tahoma, sans-serif",11,"#FFFFFF","#FFFFFF","#596878","#D55A09","left","middle",3,0,300,-5,7,true,true,true,3,true,true);
  mm_menu_1017115314_0.addMenuItem("Vyrovnávací&nbsp;mostík&nbsp;VMSL","location='mustky/sk-vmsl-charakteristika.php'");
  mm_menu_1017115314_0.addMenuItem("Vyrovnávací&nbsp;mostík&nbsp;VMVL","location='mustky/sk-vmvl-charakteristika.php'");
  mm_menu_1017115314_0.addMenuItem("Vyrovnávací&nbsp;mostík&nbsp;sklopný","location='mustky/sk-sklopny-charakteristika.php'");
  mm_menu_1017115314_0.addMenuItem("Vyrovnávací&nbsp;mostík&nbsp;klapkový","location='mustky/sk-klapkovy-charakteristika.php'");
  mm_menu_1017115314_0.addMenuItem("Nožnicové&nbsp;plošiny","location='mustky/sk-plosiny-charakteristika.php'");
  mm_menu_1017115314_0.addMenuItem("Vrátové&nbsp;tesnenie&nbsp;klapkové","location='mustky/sk-klapkove-charakteristika.php'");
  mm_menu_1017115314_0.addMenuItem("Vrátové&nbsp;tesnenie&nbsp;nafukovacie","location='mustky/sk-nafukovaci-charakteristika.php'");
  mm_menu_1017115314_0.addMenuItem("Nakládacie&nbsp;komory","location='mustky/sk-nakladaci-charakteristika.php'");
  mm_menu_1017115314_0.addMenuItem("Príslušenstvo","location='mustky/sk-prislusenstvi.php'");
   mm_menu_1017115314_0.hideOnMouseOut=true;
   mm_menu_1017115314_0.bgColor='#FFFFFF';
   mm_menu_1017115314_0.menuBorder=0;
   mm_menu_1017115314_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1017115314_0.menuBorderBgColor='#FFFFFF';
mm_menu_1017115310_0.writeMenus();
} // mmLoadMenus()

function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}

