function stred()
		 {
		 with (screen)
		 {
		 a=(availWidth-800)/2;
		 document.getElementById('logo').style.left=a;
		 document.getElementById('menu').style.left=a;
		 document.getElementById('obsah').style.left=a;
		 }
		 }


function stred2()
		 {
		 with (screen)
		 {
		 a=44+(availWidth-800)/2;
		 b=a+120;
		 document.getElementById('obsah').style.left=a;
		 document.getElementById('formular').style.left=b;
		 }
		 }

		 
function zoom(name)
{
  no=window.open("","zoom","left=0,top=0,width=720,height=540,"+
     "toolbar=no,location=no,directories=no,status=no,menubar=no"+
     ",scrollbars=no,resizable=no,copyhistory=no");

  with (no.document)
  {
    open();
    writeln('<HTML>\n<BODY TOPMARGIN="0" LEFTMARGIN="0">');
    writeln('<center><IMG SRC="../img_karty/'+name+'.jpg"></center>');
    writeln('</BODY>\n</HTML>');
    close();
    focus();
  }
}


function zoom2(name)
{
  no=window.open("","zoom","left=0,top=0,width=720,height=540,"+
     "toolbar=no,location=no,directories=no,status=no,menubar=no"+
     ",scrollbars=no,resizable=no,copyhistory=no");

  with (no.document)
  {
    open();
    writeln('<HTML>\n<BODY TOPMARGIN="0" LEFTMARGIN="0">');
    writeln('<center><IMG SRC="img_karty/'+name+'.jpg"></center>');
    writeln('</BODY>\n</HTML>');
    close();
    focus();
  }
}

function zoom3(name)
{
  no=window.open("","zoom","left=0,top=0,width=720,height=540,"+
     "toolbar=no,location=no,directories=no,status=no,menubar=no"+
     ",scrollbars=no,resizable=no,copyhistory=no");

  with (no.document)
  {
    open();
    writeln('<HTML>\n<BODY TOPMARGIN="0" LEFTMARGIN="0">');
    writeln('<center><IMG SRC="img/'+name+'.jpg"></center>');
    writeln('</BODY>\n</HTML>');
    close();
    focus();
  }
}

function otevri(src){ if (src=="napiste") { location.href=src+'.php'; } else { location.href=src+'.html'; } }

function omluva()
{
alert("Omlouváme se, ale videozáznam není bohužel ještě k dispozici.");
}


function video(adresa){
vid=adresa+'.mpg';
location.href=vid; 
}


function napiste(barva, barva2) 
		 { 
		 document.getElementById('napiste').style.backgroundColor=barva;					 
		 document.getElementById('napiste').style.color=barva2;
		 }
		 
function uvod(barva, barva2) 
		 { 
		 document.getElementById('uvod').style.backgroundColor=barva;					      
		 document.getElementById('uvod').style.color=barva2;
		 }

function ofirme(barva, barva2) 
		 { 
		 document.getElementById('ofirme').style.backgroundColor=barva; 					
		 document.getElementById('ofirme').style.color=barva2;
		 }
		 
		 
function sluzby(barva, barva2) 
		 { 
		 document.getElementById('sluzby').style.backgroundColor=barva; 					
		 document.getElementById('sluzby').style.color=barva2;
		 }
		 
		 
function reference(barva, barva2) 
		 { 
		 document.getElementById('reference').style.backgroundColor=barva;					   
		 document.getElementById('reference').style.color=barva2; 
		 }				 
		 
function kontakty(barva, barva2) 
		 { 
		 document.getElementById('kontakty').style.backgroundColor=barva;					  
		 document.getElementById('kontakty').style.color=barva2; 
		 }

function over(mail,prijm,fir,subje,txt)
	     { if ((!mail) && (!prijm) && (!subje) && (!txt)) { window.alert("Vyplňte formulář!"); return false; }
	       else if (!prijm) { window.alert("Napište své příjmení!"); return false; }
	       else if (!mail) { window.alert("Napište svůj email!"); return false; }
	       else if (!subje) { window.alert("Zapoměl jste na předmět!"); return false; }
	       else if (!txt) { window.alert("Napište nám vaší zprávu!"); return false; }
	       else { if (mail.indexOf("@")==-1) { window.alert("Zadal jste špatný email!"); return false; }
		      else return true; }
	      }

function pres() { window.setTimeout("location.href='napiste.html'",3000); }
function blik() { document.getElementById('cislo1').style.color="#ffffff";
		  document.getElementById('cislo2').style.color="#161091";
		  window.setTimeout("blik2()",1500); }
function blik2() { document.getElementById('cislo1').style.color="#161091";
		   document.getElementById('cislo2').style.color="#ffffff";
		   window.setTimeout("blik()",1500); }




