﻿<!--
//rollover & preload
var cm = new Array();
cm[0] = new Image(); cm[0].src = "DesignTemplates/iSite3Educa_2_homepage/images/_gui/btt_home_over.gif";
cm[1] = new Image(); cm[1].src = "DesignTemplates/iSite3Educa_2_homepage/images/_gui/btt_support_over.gif"; 
cm[2] = new Image(); cm[2].src = "DesignTemplates/iSite3Educa_2_homepage/images/_gui/btt_sitemap_over.gif"; 

nav1on = new Image();
nav1on.src = cm[0].src;  
nav1off = new Image();
nav1off.src = "DesignTemplates/iSite3Educa_2_homepage/images/_gui/btt_home.gif";

nav2on = new Image();
nav2on.src = cm[1].src; 
nav2off  = new Image();
nav2off.src = "DesignTemplates/iSite3Educa_2_homepage/images/_gui/btt_support.gif";

nav3on= new Image();
nav3on.src = cm[2].src;  
nav3off=new Image();
nav3off.src="DesignTemplates/iSite3Educa_2_homepage/images/_gui/btt_sitemap.gif";


function MouseIn(imgName){
     imgOn=eval(imgName + "on.src");
     document[imgName].src= imgOn;  
	 return true;	 
}
function MouseOut(imgName){
    imgOff=eval(imgName + "off.src");  
    document[imgName].src= imgOff;  
	return true;
}
// end rollover & preload

//browser i flash detekcija
var minPlayer = 6;
var strURL = "Nemate instaliran 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=7,0,0,0\" width=\"419\" height=\"40\">";
   strEMB += "<param name=\"movie\" value=\"DesignTemplates/iSite3Educa_2_homepage/flash/menuBar.swf?lng=" +lng+ "\">";
   strEMB += "<param name=\"quality\" value=\"high\">";
   strEMB += "<param name=\"menu\" value=\"false\">";
   strEMB += "<embed src=\"DesignTemplates/iSite3Educa_2_homepage/flash/menuBar.swf?lng=" +lng+ "\" quality=\"high\" menu=\"false\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"419\" height=\"40\"></embed>";
   strEMB += "</object>";
*/

strEMB = "<object type=\"application/x-shockwave-flash\" data=\"DesignTemplates/iSite3Educa_2_homepage/flash/menuBar.swf?lng="+lng+"\" width=\"550\" height=\"40\">";
strEMB += "<param name=\"movie\" value=\"DesignTemplates/iSite3Educa_2_homepage/flash/menuBar.swf?lng=" +lng+ "\">";
strEMB += "<param name=\"quality\" value=\"high\">";
strEMB += "<param name=\"menu\" value=\"false\">";
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=7,0,0,0\" width=\"580\" height=\"130\">";
   strEMB += "<param name=\"movie\" value=\"DesignTemplates/iSite3Educa_2_homepage/flash/main.swf?lng=" +lng+ "\">";
   strEMB += "<param name=\"quality\" value=\"high\">";
   strEMB += "<param name=\"menu\" value=\"false\">";
   strEMB += "<embed src=\"DesignTemplates/iSite3Educa_2_homepage/flash/main.swf?lng=" +lng+ "\" quality=\"high\" menu=\"false\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"580\" height=\"130\"></embed>";
   strEMB += "</object>"; */

strEMB = "<object type=\"application/x-shockwave-flash\" data=\"DesignTemplates/iSite3Educa_2_homepage/flash/main.swf\" width=\"580\" height=\"130\">";
strEMB += "<param name=\"movie\" value=\"DesignTemplates/iSite3Educa_2_homepage/flash/main.swf\">";
strEMB += "<param name=\"quality\" value=\"high\">";
strEMB += "<param name=\"menu\" value=\"false\">";
strEMB += "</object>";
	
 document.write(strEMB);
}

function RenderFlash(id) {
	
	var qs = document.location.search;
	qs = qs.substring(4);

	if(is.nav6up || is.nav6 || is.gecko || is.nav4 || is.nav4up){
         	if(!Flash_checkForPlugIn()){document.write(strURL);
			} 	else {
				if(id == "menu") {__renderflash(qs); 
				} else {__renderMain(qs);}
			}
	}
	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(qs); 
				} else {__renderMain(qs);}
		}
	}
	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(qs); 
				} else {__renderMain(qs);}
			}
	}
	else {
     		if(id == "menu") {__renderflash(qs); 
			} else {__renderMain(qs);}
	}
} 
//
//-->
