/**
 * @author vjug
 */
var selectedGroup = 1;
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function karta_6_DoFSCommand(command, args) {
	var karta_6Obj = isInternetExplorer ? document.all.karta_6 : document.karta_6;
	//
	if (command == "post_form") {
        //document.getElementById("area").value = args;
        document.getElementById("hidArea").value = args;
        document.getElementById("searchType").value = 1;
		document.forms[0].submit();
    }
	//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub karta_6_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call karta_6_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function postavi(oznaceno) { 
  	document.getElementById("tip").value = oznaceno;
    var vrijednostTip = document.getElementById("tip").value.toString();
    var theLink;
    for(i=1;i<=125;i++){ 
		if(document.getElementById("li" + i.toString()) == null) continue;
        theLink = document.getElementById("li" + i.toString());
        if(i != oznaceno){
            theLink.className = "";
        }  
		else {
            theLink.className = "odabir";
			document.getElementById("dynText").innerHTML = theLink.text;
		}
    }
  //document.getElementById("vrsta").selectedIndex = oznaceno - 1;
  //document.getElementById("dynText").innerHTML = document.getElementById("vrsta").options[oznaceno - 1].text;
}

function trazi(tip){
	document.getElementById("searchType").value = tip;
	document.forms[0].submit();
}
