<!--

var XmousePosition = 0;
var YmousePosition = 0;
var newWin = false;
var newWin1 = false;

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

go2link = function(url)
{
	self.location.href = url;
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

windowImage = function(url, w, h)
{
	var w = openWindow("", w, h);
	var u = '<a href="javascript:window.close()"><img src="'+url+'" alt="" border="0"></a>';
	var t = document.title;
	
	if(t.indexOf("#") != -1)
		t = t.substr(0, t.indexOf("#"));
	
	var str = '<html><head><title>'+t+'</title></head><body style="margin:0px;" bgcolor="#ffffff">'+u+'</body></html>';
	
	w.document.write(str);
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

preloadImg = function(imgObj, imgSrc)
{
	if(document.images)
	{
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
	}
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

chImgSrc = function(n, a)
{
	document.images[n].src = eval(n+"_"+a+".src");
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

mousePosition = function(e)
{
	XmousePosition = (document.all)? event.clientX + document.body.scrollLeft : e.pageX ;
	YmousePosition = (document.all)? event.clientY + document.body.scrollTop : e.pageY ;
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

openWindow = function(url, width, height, scrollb, resize, wName)
{
	if(isNaN(parseInt(width)) && isNaN(parseInt(height)))
	{
		width = 700;
		height = 500;
	}

	var scrb = (scrollb == 1)? "yes" : "no" ;
	var res = resize == 1? "yes" : "no" ;

	var c = "toolbar=no,menubar=no,location=no,personalbar=no,status=no,statusbar=no,directories=no,resizable="+res+",";
	c += "scrollbars="+scrb+",width="+width+",height="+height+"";
	
	newWin = window.open(url ,"newWin", c);
	
	newWin.focus();

	return newWin;
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

openWindow1 = function(url, width, height, scrollb, resize, wName)
{
	if(isNaN(parseInt(width)) && isNaN(parseInt(height)))
	{
		width = 700;
		height = 500;
	}

	var scrb = (scrollb == 1)? "yes" : "no" ;
	var res = resize == 1? "yes" : "no" ;

	var c = "toolbar=no,menubar=no,location=no,personalbar=no,status=no,statusbar=no,directories=no,resizable="+res+",";
	c += "scrollbars="+scrb+",width="+width+",height="+height+"";
	
	newWin1 = window.open(url ,"newWin1", c);
	
	newWin1.focus();

	return newWin1;
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

add2favorites = function(title, url)
{
	if (window.sidebar)// Mozilla Firefox
		window.sidebar.addPanel(title, url,"");
	else if( window.external)//IE
		window.external.AddFavorite(url, title);
	else if(window.opera)// Opera
	{
	     var e = document.createElement('a');
    	 e.setAttribute('href', url);
	     e.setAttribute('title', title);
    	 e.setAttribute('rel', 'sidebar');
	     e.click();
	}
}

document.onmousemove = mousePosition;

function chmurka(e, txt)
{
	var t = document.createElement("div");
	t.className = "tooltip";
	t.style.position = "absolute";
	t.innerHTML = txt;

	e.move = function()
	{
		t.style.left = XmousePosition + 10;
		t.style.top = YmousePosition;
	}
	e.move();
	
	document.body.appendChild(t);
	
	e.onmousemove = function()
	{
		e.move();
	}
	
	e.onmouseout = function()
	{
		document.body.removeChild(t);
	}

}


//-->
