function header()
{

	document.write("<A HREF='/index.php' title = 'Úvodní stránka'> Úvodní strana </A> |");
	document.write("<A HREF='/kde.html' title = 'Kde nás najdete'> Kde nás najdete</A> |");
	document.write("<A HREF='/foto/index.php' title = 'Fotogalerie a video'> Fotogalerie a video </A> |");
	document.write("<A HREF='/cenik.html' title = 'Ceník jízdného'> Ceník </A> |");
	//document.write("<A HREF='cenik.html' title = 'Ceník jízdného'> Ceník <span style='background-color: yellow; color:red'>sleva 10%</span></A> |");
	document.write("<A HREF='/stav.php' title = 'Aktuální stav sněhových podmínek a další...'> Aktuální stav</A> |");
	document.write("<A HREF='/kamery.php' title = 'Situace pohledem webových kamer'> Kamery </A> |");
	document.write("<A HREF='/snowpark.php' title = 'Popis a fotky snowparku'> Snowpark </A> |");
	document.write("<A HREF='/akce.php' title = 'Akce'> Akce </A> |");
	document.write("<A HREF='/kontakt.html' title = 'Kontakt'> Kontakt </A> ");

}

function show(kamera,path){
document.getElementById(kamera).src=path;
}

function showWindow(kamera) {
				  //foto(url,'','','landscape');
				  url = document.getElementById(kamera).src
				  ShowFoto(url,640,480);
                 
       }
        
function ShowFoto (Img, W, H){
        // Zjisti rozliseni monitoru (velikost obrazovky)
        var Browser = navigator.appName;
        var Version = parseInt(navigator.appVersion);
        if ((Browser == "Netscape" & Version >= 4) ||
            (Browser == "Microsoft Internet Explorer" &
             Version >= 4)){
          ScrH = screen.height;
          ScrW = screen.width;
        } else {
          ScrH = 0;
          ScrW = 0;
        }

        // Vytvori nove okno
        var BorderW = 1;
        W += 2*BorderW;
        H += 2*BorderW;
        var Position;
        if ((ScrH > 0) && (ScrW > 0))
          Position = ",left="+(ScrW - W)/2+",top="+
                     (ScrH-H)/2;
        else
          Position = "";

      	var NewWin = window.open("", "Fotografie",
          "toolbar=no,location=no,width="+W+
          ",height="+H+
          ",directories=no,status=no,menubar=no,"+
          "resizable=no,scrollbars=no"+
          Position);

        // Naplni jej
        with (NewWin.document){
          write("<HTML><HEAD><TITLE>Foto - kliknutím "+  
                "zavřete</TITLE></HEAD>");
          write('<BODY BgColor="black" Text="white" '+ 
                'TopMargin="0" LeftMargin="0">');
          write('<A Href="javascript:close();"><IMG '+
                'Src='+Img+
                ' HSpace='+BorderW+' VSpace='+BorderW+
                ' Border=0></A>');
          write("</BODY></HTML>");
          close();
        }
        NewWin.focus();
}

function foto(path,popis,title,orient)
{
	var wr, uvoz, param, g_null, prom, isNetscape = navigator.appName!="Microsoft Internet Explorer";
	blnExist = false;
	sirka = 1040;
  vyska = 800;
  if (title == '') {title='&nbsp;';}

	param = 'scrollbars=no,height=' + vyska + ',width=' + sirka + ',resizable=yes,top=0,left=0'
	uvoz=String.fromCharCode(34);
	enter=String.fromCharCode(13,10);
	if (orient == "portrait")
		{
		prom ="height="+uvoz+vyska+uvoz;
		}
	else
		{
		prom="width="+uvoz+sirka+uvoz;
		}
	
	try
{	if(window3) blnExist=true;}
catch(e)
	{ blnExist=false;}
	//alert(blnExist);

	if(!blnExist) window3=window.open('','messageWindow',param,true);
	try{window3.document.close();}catch(e){}
	try{window3.focus();}catch(e){}

	
	wr="<!DOCTYPE HTML PUBLIC "+uvoz+"-//W3C//DTD HTML 4.0 Transitional//EN"+uvoz+">";
	wr=wr+"<HTML>"+enter+"<HEAD>"+enter+"<meta http-equiv="+uvoz+"Content-Type"+uvoz+" content="+uvoz+"text/html; charset=windows-1250"+uvoz+">"+enter+"<TITLE>"+title+"</TITLE>"+enter+"</HEAD>";
	//wr=wr+"<script language="+uvoz+"JavaScript"+uvoz+" src="+uvoz+"../../global.js"+uvoz+"></script>"+enter;
	wr=wr+"<BODY BGCOLOR="+uvoz+"black"+uvoz+">"+enter;
wr=wr+"<table align=center><tr><td><a href='javascript:self.close();'> <img border='0' src="+path;
	
	wr=wr+"></a>   </td>"+enter+"  </tr>"+enter+"</table>"+enter+"</body>"+enter+"</html>";
//	alert(wr);
	try{window3.document.writeln(wr);}catch(e){}
window3=null;

}

function doFoto(ob)
 {
   var srcElement,ind;
var isNetscape = navigator.appName=="Netscape";

if (isNetscape) 
{
	h=eval("document."+ob+".height");
	w=eval("document."+ob+".width");
	src=eval("document."+ob+".src");
	path=src.substring(src.length-11,src.length-6)+src.substring(src.length-4,src.length)
	ind=eval("document."+ob+".name").substring(1,eval("document."+ob+".name").length);
}
 else
{
	ob=eval(ob);
	h=ob.height;
	w=ob.width;
	path=ob.src.substring(ob.src.length-11,ob.src.length-6)+ob.src.substring(ob.src.length-4,ob.src.length)
	ind=ob.name.substring(1,ob.name.length);

}


try {
popis = eval('popis'+ind);
} catch (e) {
popis = "";
}

try {
popis = eval('title'+ind);
} catch (e) {
title = "";
}


if(4*h>3*w)
      {
          foto(path,popis,title,'portrait')
      }
      else
      {
          foto(path,popis,title,'landscape')
      }



}

function doLight(param)
{
	if((navigator.appName == "Microsoft Internet Explorer") && 
	  (parseInt(navigator.appVersion) >= 4 )){
	document.all.picture.style.filter="Alpha()";
	if (param == "+")
	{			//zesvětlení
		if (document.all.picture.filters.Alpha.Opacity==100)
		{
			document.all.back.style.background="white"
			document.all.picture.filters.Alpha.Opacity=document.all.picture.filters.Alpha.Opacity-10;
		}
		else
		{
			if (document.all.back.style.background=="white")
			{
				document.all.picture.filters.Alpha.Opacity=document.all.picture.filters.Alpha.Opacity-10;
			}
			else
			{
				document.all.picture.filters.Alpha.Opacity=document.all.picture.filters.Alpha.Opacity+10;
			}
		}
	}
	else
	{		//ztmavení
		if (document.all.picture.filters.Alpha.Opacity==100)
		{
			document.all.back.style.background="black"
			document.all.picture.filters.Alpha.Opacity=document.all.picture.filters.Alpha.Opacity-10;
		}
		else
		{
			if (document.all.back.style.background=="white")
			{
				document.all.picture.filters.Alpha.Opacity=document.all.picture.filters.Alpha.Opacity+10;

			}
			else
			{
				document.all.picture.filters.Alpha.Opacity=document.all.picture.filters.Alpha.Opacity-10;
			}
		}

	}
    }
}

