<!--
//browser i flash detekcija
var minPlayer = 6;
var strURL = "Nemate instaliran odgovarajuci Flash player! <a href='http://www.macromedia.com/go/getflashplayer/' target='_blank'>Kliknite ovdje za download playera</a>";
function Is()
{   
    var agt=navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    this.nav2 = (this.nav && (this.major == 2));
    this.nav3 = (this.nav && (this.major == 3));
    this.nav4 = (this.nav && (this.major == 4));
    this.nav4up = (this.nav && (this.major >= 4));
    this.navonly   = (this.nav && ((agt.indexOf(";nav") != -1) ||(agt.indexOf("; nav") != -1)) );
    this.nav6 = (this.nav && (this.major == 5));
    this.nav6up = (this.nav && (this.major >= 5));
    this.gecko = (agt.indexOf('gecko') != -1);
    this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    this.ie3    = (this.ie && (this.major < 4));
    this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
    this.ie4up  = (this.ie  && (this.major >= 4));
    this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
    this.ie5up  = (this.ie  && !this.ie3 && !this.ie4);
    this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
    this.ie6    = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
    this.ie6up  = (this.ie  && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);
    this.aol   = (agt.indexOf("aol") != -1);
    this.aol3  = (this.aol && this.ie3);
    this.aol4  = (this.aol && this.ie4);
    this.aol5  = (agt.indexOf("aol 5") != -1);
    this.aol6  = (agt.indexOf("aol 6") != -1);
    this.opera = (agt.indexOf("opera") != -1);
    this.opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    this.opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    this.opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    this.opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    this.opera5up = (this.opera && !this.opera2 && !this.opera3 && !this.opera4);
    this.webtv = (agt.indexOf("webtv") != -1); 
    this.TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); 
    this.AOLTV = this.TVNavigator;
    this.hotjava = (agt.indexOf("hotjava") != -1);
    this.hotjava3 = (this.hotjava && (this.major == 3));
    this.hotjava3up = (this.hotjava && (this.major >= 3));   
}

var is;
var isIE3Mac = false;
	if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3))
		   isIE3Mac = true;
	else   is = new Is(); 
if(is.ie4 || is.ie4up || is.ie5 || is.ie5_5 || is.ie5up || is.ie5_5up || is.ie6 || is.ie6up)
    {
		document.write(
			'<scr' + 'ipt language=VBScript>' + '\n' +
			'Function Flash_checkForActiveX()' + '\n' +
				'Dim hasPlayer, playerversion' + '\n' +
				'hasPlayer = false' + '\n' +
				'playerversion = 10' + '\n' +
				'Do While playerversion >= minPlayer' + '\n' +
					'On Error Resume Next' + '\n' +
					'hasPlayer = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & playerversion & \"\")))' + '\n' +
					'If hasPlayer = true Then Exit Do' + '\n' +
					'playerversion = playerversion - 1' + '\n' +
				'Loop' + '\n' +
				'Flash_checkForActiveX = hasPlayer' + '\n' +
			'End Function' + '\n' +
			'<\/scr' + 'ipt>'
		);
}


function Flash_checkForPlugIn(){
    var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
    if (plugin) {
       var pluginversion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) 
       if(pluginversion >= minPlayer) {return true;}
    }
    return false;
}

function __renderflash(lng) {
 var strEMB;
   strEMB = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\" width=\"727\" height=\"114\">";
   strEMB += "<param name=\"movie\" value=\"assets/basic/flash/menuBar.swf\">";
   strEMB += "<param name=\"quality\" value=\"high\">";
   strEMB += "<param name=\"menu\" value=\"false\">";
   strEMB += "<embed src=\"assets/basic/flash/menuBar.swf\" quality=\"high\" menu=\"false\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"727\" height=\"114\"></embed>";
   strEMB += "</object>"; 
 document.write(strEMB);
}

function __renderMain(lng) {
 var strEMB;
   strEMB = "<object classid=\"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\" width=\"727\" height=\"114\">";
   strEMB += "<param name=\"movie\" value=\"assets/basic/flash/main.swf\">";
   strEMB += "<param name=\"quality\" value=\"high\">";
   strEMB += "<param name=\"menu\" value=\"false\">";
   strEMB += "<embed src=\"assets/basic/flash/main.swf\" quality=\"high\" menu=\"false\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"727\" height=\"114\"></embed>";
   strEMB += "</object>"; 
 document.write(strEMB);
}

function RenderFlash(id,lng) {
	if(is.nav6up || is.nav6 || is.gecko || is.nav4 || is.nav4up){
         	if(!Flash_checkForPlugIn()){document.write(strURL);
			} 	else {
				if(id == "menu") {__renderflash(lng); 
				} else {__renderMain(lng);}
			}
	}
	else if(is.opera || is.opera2 || is.opera3 || is.opera4 || is.opera5 || is.opera5up){
		if(!Flash_checkForPlugIn()) {document.write(strURL);
		} else {
		    	if(id == "menu") {__renderflash(lng); 
				} else {__renderMain(lng);}
		}
	}
	else if(is.ie4 || is.ie4up || is.ie5 || is.ie5_5 || is.ie5up || is.ie5_5up || is.ie6 || is.ie6up){
		if(!Flash_checkForActiveX()){ document.write(strURL);
		} else {
		     	if(id == "menu") {__renderflash(lng); 
				} else {__renderMain(lng);}
			}
	}
	else {
     		if(id == "menu") {__renderflash(lng); 
			} else {__renderMain(lng);}
	}
} 
//
//-->
