function checkBrowser() {

}	

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  return theMovie.PercentLoaded() == 100;
}


function playmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).Play();
  }
}

function stopmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).StopPlay();
  }
}


function go(theFrame) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).GotoFrame(theFrame);
  }
}

function resizeflash(movname,ht,wid) {
    //alert(comm);
	//window.document.flashloader.movie=comm
	//window.document.all['Layer1'].style.flashloader.movie=comm
	window.document[movname].width=wid
	window.document[movname].height=ht
	//window.document.flashloader.height=ht
}



function checkFlash(movname,ht,wid,fid,imname){


if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
	if (navigator.plugins && navigator.plugins["Shockwave Flash"])
		ShockMode = 1;
	
}

else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
	document.write('</SCRIPT\> \n');
}
doFlash(movname,ht,wid,fid,imname)
}

function doFlash(movname,ht,wid,fid,imname){
if ( ShockMode ) {
					                                 		
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width='+wid+' height='+ht+' swliveconnect=true');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
	document.write(' ID='+fid+' WIDTH='+wid+' HEIGHT='+ht+'>');
	document.write('  <PARAM NAME=movie VALUE="'+movname+'"> ');
	document.write('  <PARAM NAME=play VALUE=true> ');	
	document.write('  <PARAM NAME=loop VALUE=false> ');
	document.write('  <PARAM NAME=quality VALUE=high> ');

	document.write('<EMBED SRC="'+movname+'" name="'+fid+'"');
	document.write(' swLiveConnect=TRUE WIDTH='+wid+' HEIGHT='+ht);
	document.write(' LOOP=false QUALITY=autohigh');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
//if (fid == "flashtitle") enlarger='onclick='
	document.write('<IMG SRC="images/'+imname+'_title.gif" WIDTH='+wid+' HEIGHT='+ht+' BORDER=0>');
}
}

function checkFlash2(movname,ht,wid,fid,imname, mvframe){

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
	if (navigator.plugins && navigator.plugins["Shockwave Flash"])
		ShockMode = 1;
	
}

else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
	document.write('</SCRIPT\> \n');
}
doFlash2(movname,ht,wid,fid,imname, mvframe)
}

function doFlash2(movname,ht,wid,fid,imname, mvframe){
if ( ShockMode ) {
					                                 		
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width='+wid+' height='+ht+' swliveconnect=true');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
	document.write(' ID='+fid+' WIDTH='+wid+' HEIGHT='+ht+'>');
	document.write('  <PARAM NAME=movie VALUE="'+movname+'"> ');
	document.write('  <PARAM NAME=play VALUE=true> ');	
	document.write('  <PARAM NAME=loop VALUE=false> ');
	document.write('  <PARAM NAME=quality VALUE=high> ');
	document.write('  <PARAM NAME=FlashVars VALUE="mojaPromenljiva=' + mvframe + '"> ');

	document.write('<EMBED SRC="'+movname+'" name="'+fid+'"');
	document.write(' swLiveConnect=TRUE WIDTH='+wid+' HEIGHT='+ht);
	document.write(' LOOP=false QUALITY=autohigh');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/" FlashVars="mojaPromenljiva=' + mvframe + '">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
//if (fid == "flashtitle") enlarger='onclick='
	document.write('<IMG SRC="images/'+imname+'_title.gif" WIDTH='+wid+' HEIGHT='+ht+' BORDER=0>');
}
}
