
   function swapClass(obj, cls) {
     obj.className = cls;
   }
   
   function isci(a,b) {
	if (a.length > 2)
	{
		switch (b)
		{
			case "0":	if (document.all)
							location.href= "podrocje.aspx?id=173&q=" + a;
						else
							location.href= "podrocje.aspx?id=173&q=" + a;
						break;
			case "1":	location.href= "forum/Search/SearchResults.aspx?q=" + a + "&f=&u=";
						break;
		}
	}
	else window.alert("Iskalni niz mora vsebovati vsaj 3 znake!");
   }

function isci(a) 
{
if (document.all)
	location.href= "podrocje.aspx?id=173&q=" + a;
else
	location.href= "podrocje.aspx?id=173&q=" + a;
}
	
function handlePress(e)
{
	code = 0;
	if(window.event)
	{	//IE
		code = e.keyCode;
		if(code == 13) e.keyCode = 0;
	}
	else if(e.which) 
	{	//Firefox
			code = e.which;
	}
		
	if(code == 13) 
	{
		location.href = "podrocje.aspx?id=173&q=" + document.myForm.q.value;
		if (e.preventDefault) e.preventDefault();
	}
}
	
	function FlashInstalled()
    {
    	result = false;
    
    	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
    	{
    		result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
    	}
    	else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
    	{
    		// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
    		eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
    	}
    	return result;
    }
  	    
    function newWin(imgSrc)
	{ 
		winWidth = 250; 
		winHeight= 250; 	
		var openWin = window.open(imgSrc,"winNameHere","width="+winWidth+",height="+winHeight+",scrollbars=0,status=0"); 
		openWin.focus(); 
	} 

	function mapa(url)
	{ 
		winWidth = 600; 
		winHeight= 650; 	
		var openWin = window.open(url,"winMapa","width="+winWidth+",height="+winHeight+",scrollbars=0,status=0"); 
		openWin.focus(); 
	}