<!--


var BrT   = 0;
var DocX  = null;
var Sty   = null;
var Lp    = null;
var Rp    = null;
var BackC = null;

if (document.layers) { 
    BrT  = 1;
    DocX = "document.layers";
    Sty  = "";
    Lp   = "[";
    Rp   = "]";
    BackC = ".bgColor";
} else if (document.all) {
    BrT  = 2;
    DocX = "document.all";
    Sty  = ".style";
    Lp   = "[";
    Rp   = "]";
    BackC  = ".backgroundColor";
} else if (document.getElementById) {
    BrT  = 3;
    DocX = "document.getElementById";
    Sty  = ".style";
    Lp   = "(";
    Rp   = ")";
    BackC  = ".backgroundColor";
} else {
    BrT = 0;
}

var BrTvIE = 0;
if (BrT == 2) {
    var MSie = (navigator.appVersion.indexOf('MSIE'));
    if (MSie != -1) {
        BrTvIE = navigator.appVersion.substring(MSie+5,MSie+8);
    }
}


var ID_Win   = new Array();
var W_Par    = new Array();
var W_top    = new Array();
var W_left   = new Array();
var W_width  = new Array();
var W_height = new Array();
var WinProp  = new Array();

W_Par[0]    = "resizable=yes,copyhistory=no,menubar=yes,toolbar=yes,scrollbars=yes,directories=yes";
W_top[0]    = 40; 
W_left[0]   = 40; 
W_width[0]  = 0.8 * screen.width;
W_height[0] = 0.6 * screen.height;
WinProp[0]  = 'width=' + W_width[0] + ',height=' + W_height[0] + ',top=' + W_top[0] + ',left=' + W_left[0] + ',';

W_Par[1]    = "resizable=yes,copyhistory=no,menubar=yes,toolbar=yes,scrollbars=yes,directories=yes";
W_top[1]    = 0; 
W_left[1]   = 0; 
W_width[1]  = screen.width;
W_height[1] = screen.height;
WinProp[1]  = 'width=' + W_width[1] + ',height=' + W_height[1] + ',top=' + W_top[1] + ',left=' + W_left[1] + ',';

function OpenWin_(WinSrc, i) {
    if (WinSrc == '') return; 
	

	var Rnd = '';
    CloseWin_(); 	

    ID_Win[i] = window.open(WinSrc, "Win" + i + Rnd, WinProp[i] + W_Par[i]);
}

function CloseWin_() {
    for (j=0; j < ID_Win.length; j++) {
        if (ID_Win[j] && ID_Win[j].open && !ID_Win[j].closed) ID_Win[j].close();	
    }
}

function Scroll_(Y_Offset) {
    window.scrollBy(0, Y_Offset);
}

function Zoom_(Size) {
	if (Size != 0) {	 
	    var Win_Left = 0;	 
		var Win_Top  = 0;	 
		window.moveTo(Win_Top, Win_Left);
    	window.resizeTo(screen.width, screen.height);
	}	
}


function OpenWinPlain_(WinSrc) {
    if (WinSrc == '') return; 

	var W_top    = 0; 
	var W_left   = 0; 
	var W_width  = screen.width;
	var W_height = screen.height;
	var WinProp  = 'width=' + W_width + ',height=' + W_height + ',top=' + W_top + ',left=' + W_left + ',';

	var Poloha = 'width=' + W_width + ',height=' + W_height + ',top=' + W_top + ',left=' + W_left + ',';
	var Param  = "resizable=yes,copyhistory=no,menubar=yes,toolbar=yes,scrollbars=yes,directories=yes";

    CloseWin_(); 	
    ID_WinPlain = window.open(WinSrc, "Win" + Rnd, Poloha + Param);
}



function ShowHide_0_(ID_Obj,Show_Obj) {
    if (!window.Parsed) return;
    if (Show_Obj == 1) { 
        eval(DocX + Lp + '"' + ID_Obj + '"' + Rp + Sty + '.display = "block"'); 
    } else { 
        eval(DocX + Lp + '"' + ID_Obj + '"' + Rp + Sty + '.display = "none"'); 
    } 
}

var FlipLast = 'xxx'; 
function FlipFlop_0_(FlipActive) {
    if (!window.Parsed) return;
    if (FlipActive == FlipLast) {        
        eval(DocX + Lp + '"' + FlipActive + '"' + Rp + Sty + '.display = "none"');
        FlipLast = 'xxx';
    } else {
        eval(DocX + Lp + '"' + FlipLast + '"' + Rp + Sty + '.display = "none"');
        eval(DocX + Lp + '"' + FlipActive + '"' + Rp + Sty + '.display = "block"');
        FlipLast = FlipActive;
    }
}
function FlipFlop_0_Break_(FlipActive) {
	return;
}

function ViewID_(ID) { 
    if (document.getElementById) {
	  	document.getElementById(ID).scrollIntoView();
      	window.scrollTo(0,0);
    }
} 


function SwapImg_T_(ID_Obj, Mode, Img_Path_Name) {
	if (! Parsed ) return;
	if (! document.images ) return;

	var Active = '_over';		  
	var N_Char = Img_Path_Name.length;

	var Name_File_Base = Img_Path_Name.substring(0, N_Char -4);
	var Name_File_Ext  = Img_Path_Name.substring(N_Char -4);
    if (Mode == 1) {
        document.images[ID_Obj].src = Name_File_Base + Active + Name_File_Ext;
	} else {
        document.images[ID_Obj].src = Name_File_Base + Name_File_Ext;
	}	
}


var MousePos_X = 0;
var MousePos_Y = 0;
function Get_MousePosition_(e) {
	if (!e) var e = window.event;

    if (document.all) {
		if (document.body.scrollTop) {	
		    MousePos_X = e.x + document.body.scrollLeft;
      		MousePos_Y = e.y + document.body.scrollTop;
		} else if (document.documentElement) {	
			MousePos_X = e.x + document.documentElement.scrollLeft;
      		MousePos_Y = e.y + document.documentElement.scrollTop;
		}	
    } else if (document.getElementById) {
        MousePos_X = e.pageX;
        MousePos_Y = e.pageY;
    }
}
function HintShow_(Hint_Text, Mode, Hint_Width, Hint_Height) {
    if ( ! window.Parsed ) return;
    if ( ! document.getElementById ) return;
    if ( (MousePos_X == 0) && (MousePos_Y == 0) ) return;

	Get_Window_Data_();

    var Hint_W  = 0;
    var Hint_H  = 0;
	if (arguments.length < 4) {
   	   var Hint_N = '';
	   var Hint_T = Hint_Text;

	   document.getElementById("hintdata").innerHTML  		 = Hint_N + Hint_T;
	   
	   Hint_W = 200;
	   Hint_H = 0;
	   document.getElementById("hintdata").style.width  = Hint_W + "px";
	   document.getElementById("hintdata").style.height = "auto";
	} else {
   	   var Hint_N = '';
	   var Hint_T = '';
	   var Hint_Data = Hint_Text.split("|");


	   if (typeof (Hint_Data[1]) != "undefined") {
   	       var Hint_N = '<strong>'+ Hint_Data[0] +'</strong><br>';
	   	   var Hint_T = '<span>'+ Hint_Data[1] +'</span>';
	   } else {
   	       var Hint_N = Hint_Data[0];
	   }	   

	   document.getElementById("hintdata").innerHTML  		 = Hint_N + Hint_T;
	   
	   if (Hint_Width > 0) {
	   	  Hint_W = Hint_Width;
		  document.getElementById("hintdata").style.width = Hint_W + "px";
	   } else {
		  document.getElementById("hintdata").style.width = "auto";
	   }	  
	   if (Hint_Height > 0) {
	   	  Hint_H = Hint_Height;
		  document.getElementById("hintdata").style.height = Hint_H + "px";
	   } else {
		  document.getElementById("hintdata").style.height = "auto";
	   }	  
	}	 

	var Odskok_X = 30;
	var Odskok_Y = 30;
    var HintTop  = MousePos_Y + Odskok_Y;
	var HintLeft = MousePos_X + Odskok_X;
	Hint_W = document.getElementById("hintdata").offsetWidth; 
	Hint_H = document.getElementById("hintdata").offsetHeight; 
	if ( (Client_H - MousePos_Y + Scroll_Y) < (Hint_H + Odskok_Y) )    HintTop  = MousePos_Y - (Hint_H + Odskok_Y);   
	if ( (Client_W - MousePos_X + Scroll_X) < (Hint_W + Odskok_X) )    HintLeft = MousePos_X - (Hint_W + Odskok_X);   
	
	document.getElementById("hintwrap").style.top        = HintTop  + "px"; 
	document.getElementById("hintwrap").style.left 		 = HintLeft + "px"; 
	document.getElementById("hintwrap").style.zIndex 	 = 10;
	document.getElementById("hintwrap").style.visibility = "visible";

}
function HintHide_() {
    if ( ! window.Parsed ) return;
    if ( ! document.getElementById ) return;

	document.getElementById("hintwrap").style.zIndex     = 0;
	document.getElementById("hintwrap").style.visibility = "hidden";
	document.getElementById("hintdata").innerHTML 		 = '';
}

var Scroll_X = 0;
var Scroll_Y = 0;
var Client_W = 0;
var Client_H = 0;
function Get_Window_Data_() {
    if ( typeof( window.pageYOffset ) == 'number' ) {
    	Scroll_X = window.pageXOffset;
    	Scroll_Y = window.pageYOffset;
		var Jedn = 'px;';
    } else if ( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		Scroll_X = document.documentElement.scrollLeft;
    	Scroll_Y = document.documentElement.scrollTop;
  	} else if ( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    	Scroll_X = document.body.scrollLeft;
    	Scroll_Y = document.body.scrollTop;
	}

	if ( typeof( window.innerWidth ) == 'number' ) {
    	Client_W = window.innerWidth;
    	Client_H = window.innerHeight;
    } else if ( document.documentElement ) {
    	Client_W = document.documentElement.clientWidth;
    	Client_H = document.documentElement.clientHeight;
  	} else if ( document.body ) {
    	Client_W = document.body.clientWidth;
    	Client_H = document.body.clientHeight;
    }

}

document.write('<style type="text/css" media="all">');
document.write('<!--');
document.write('.userhint {border-bottom:dotted 2px #CC0000; cursor:help;}');
document.write('#hintwrap {padding:0px; border:none; visibility:hidden; z-index:0; position:absolute; top:0px; left:0px;}');
document.write('#hintdata {border:solid 2px #004CAA; color:#000000; background:#FFFFFF; padding:8px; width:200px; height:auto;}');
document.write('-->');
document.write('</style>');



var ID_Tmr_On  = null;
var Delay_On   = 250;	 
function HintShow_T_(Id_Obj, Txt, Display) {
	ID_Tmr_On = window.setTimeout('HintShow_TT_('+'"'+Id_Obj+'", "'+Txt+'", "'+Display+'");', Delay_On);	 
}
function HintShow_TT_(Id_Obj, Txt, Display) {
	if (Txt     != '') document.getElementById(Id_Obj).innerHTML 	 = Txt;
	if (Display != '') {
	    if (Display == 'block') {
	   	    document.getElementById(Id_Obj).style.display    = Display;
	    } else {
	   	    document.getElementById(Id_Obj).style.visibility = Display;
	    }	   	   
	}   
}
function HintHide_T_(Id_Obj, Txt, Display) {
	window.clearTimeout(ID_Tmr_On);
	if (Display != '') {
	    if (Display == 'block') {
	   	    document.getElementById(Id_Obj).style.display    = Display;
	    } else {
	   	    document.getElementById(Id_Obj).style.visibility = Display;
	    }	   	   
	} else {
	    document.getElementById(Id_Obj).innerHTML 	  = Txt;
	}	
}


var Header_Height  = 80;
var TimScroll      = 500;  
var ID_TimScroll   = null;
var Moving 		   = 0;

function Static_I() {
	if (! window.Parsed ) return;
	if ( Moving == 1 ) 	  return;

	Moving = 1;
	ID_TimScroll   = setTimeout("Static();", TimScroll);
}

function Static() {
	if (! document.getElementById) return; 
	var Menu_Height    = document.getElementById("menu-fixed").offsetHeight;

	var Scroll_M = 0; 
	var Jedn 	 = '';
	var	Menu_marginTop = document.getElementById("menu-fixed").style.marginTop;

    if ( typeof( window.pageYOffset ) == 'number' ) {
		Scroll_M = window.pageYOffset;
		Client_H = window.innerHeight;
		var Jedn = 'px';
	} else if ( document.documentElement ) {
		Scroll_M = document.documentElement.scrollTop;
		Client_H = document.documentElement.clientHeight;
	} else if ( document.body ) {
		Scroll_M = document.body.scrollTop;
		Client_H = document.body.clientHeight;
	}
	if (Scroll_M > Header_Height) Scroll_M = Scroll_M - Header_Height;  
	if (Scroll_M < 0) Scroll_M = 0; 


	if (Menu_Height > Client_H)  Scroll_M = 0;
    if ( Jedn == '') {
	    document.getElementById("menu-fixed").style.marginTop  = Scroll_M;
	} else {
        document.getElementById("menu-fixed").style.marginTop  = eval('"'+Scroll_M+Jedn+'"');
    }

	window.clearTimeout(ID_TimScroll);
	Moving = 0;
}



if (window.addEventListener) {
	window.addEventListener('mousemove', Get_MousePosition_, false);
    window.addEventListener('mousemove', Static_I, 		     false);
}	

if (document.attachEvent) {
	document.attachEvent('onmousemove', Get_MousePosition_);
    document.attachEvent('onmousemove', Static_I);
}

//-->

