/*globals and starters */

var thingyclass="";
var ibmessages= new Array();
var msglast=8;



/* functions */

function opw (url, width, height) {
        var Win = window.open(url,"POWEN",'width=' + width + ',height=' + height + ',toolbar=no,location=no,scrollbars=no,directories=no,status=no,menubar=no,resizable=no,left=150, top=50');
}

function opfw (url, width, height, fname) {
        var Win = window.open(url,fname,'width=' + width + ',height=' + height + ',toolbar=yes,location=no,scrollbars=no,directories=no,status=no,menubar=no,resizable=yes,left=0, top=0');
}

function loadfromddown(s) {
	var gourl = s.options[s.selectedIndex].value;
	if (gourl!='none') {window.top.location.href = gourl;};
}

function loadfrommulti(s) {
	var gourl = s.options[s.selectedIndex].value;
	if (gourl!='none') {window.top.location.href = gourl;};
}


/* visual fx */

function hoverfx(thingy) {


 if (window.navigator.appName == "Microsoft Internet Explorer")
	{
	var hoversuffix="_hv";
	thingyclass = thingy.className;
	thingynewclass = thingyclass+hoversuffix;
	//alert (thingynewclass);
	//alert (window.navigator.appName);
	thingy.className=thingynewclass;
	} else {
				return false;
			  };
}

function nohoverfx(thingy) {
	if (window.navigator.appName == "Microsoft Internet Explorer")
	{
		thingy.className = thingyclass;
	};
}


function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",100)
}

function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.5
else if (which2.filters)
which2.filters.alpha.opacity=50
}


function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

function maketransparent(feed) {

if (feed.filters)
	{
	  				feed.filters.alpha.opacity=60;
	  				feed.filters.alpha.opacity=40;
	  				feed.filters.alpha.opacity=20;
	  				feed.filters.alpha.opacity=10;
	  				feed.filters.alpha.opacity=0;
	 
	} else if (feed.style.MozOpacity) {
	
	 				feed.style.MozOpacity=0.6;
	 				feed.style.MozOpacity=0.4;
	 				feed.style.MozOpacity=0.2;
	 				feed.style.MozOpacity=0.1;
	 				feed.style.MozOpacity=0;
	};
}


function infobarmessage(msgcnt)
{
	if (document.getElementById)
    	{
    		
    		msgtxt = document.getElementById("infobardivtext");
		   maketransparent(msgtxt);	
		   msg=ibmessages[msgcnt];
		  	msgtxt.innerHTML=msg;
		  	maketransparent(msgtxt);	
	  		//alert ("teraz nie widaæ!");	
	  		high(msgtxt);
	  		var msgcnt=msgcnt+1;
	  		if (msgcnt>msglast) {var msgcnt=1;};
	  		setTimeout('infobarmessage('+msgcnt+')',6000);
	  		};

}
