function ShowList(){
	document.getElementById('FullList').style.display="block";
	document.getElementById('FullList').style.marginTop="-1px";
}
function HideList(){
	document.getElementById('FullList').style.display="none";
	document.getElementById('FullList').style.marginTop="0";
}

// lijevi meni
menu_status = new Array(); 

function hideShow(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}


var xmlHttp

function showEvents(str, lang)
{ 
	document.getElementById("txtHint").innerHTML="<br><br><br><div align='center'><img src='images/ajax-loader.gif' alt='Loading...' border='0'></div>"; 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}	 
	var url="ptemplates/include/events.php"
	url=url+"?cat="+str
	url=url+"&l="+lang
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
	} 
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		xmlHttp=new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari
	}
	catch (e)
	{
		try
	  	{
	  		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); //Internet Explorer
	  	}
	 	catch (e)
	  	{
	  		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	  	}
	}
	return xmlHttp;
}

function changeClass(tabNo, qTabs) {
	for (t=1; t<=qTabs; t++) {
		tabToChange = document.getElementById('Tab'+t);
		if(t==tabNo)	tabToChange.className = 'SelTab';
		else 			tabToChange.className = 'Tab';
	}
}