if((navigator.userAgent.indexOf("MSIE") != -1) && (navigator.userAgent.indexOf("Windows") != -1) && navigator.userAgent.indexOf("Windows 3.1") == -1){
	document.writeln('<script language="VBScript">');
	document.writeln('Private i,x');
	document.writeln('On Error Resume Next');
	document.writeln('detect_vb = False');
	document.writeln('For i=6 To 1 Step -1');
	document.writeln('Set x=CreateObject("ShockwaveFlash.ShockwaveFlash."&i)');
	document.writeln('detect_vb = IsObject(x)');
	document.writeln('If detect_vb Then');
	document.writeln('detect_vb_version = i');
	document.writeln('Exit For');
	document.writeln('End If');
	document.writeln('Next');
	document.writeln('<'+'/script>');
	document.writeln('<SCRIPT LANGUAGE=VBScript\> \n');
	document.writeln('on error resume next \n');
	document.writeln('Sub diamant_FSCommand(ByVal command, ByVal args)\n');
	document.writeln('  call diamant_DoFSCommand(command, args)\n');
	document.writeln('end sub\n');
	document.writeln('<'+'/SCRIPT\> \n');
}
function chkPlugin(){
	detect_vb = false;
	if(bw.ie && bw.agent.indexOf("Windows") != -1){ detect_vb=true; return(detect_vb);}
	else{
		var detected = false;
		var enabled = false;		
		if(navigator.mimeTypes["application/x-shockwave-flash"]){
			detected = true;
			if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
				enabled = true;
		}}	
		return(detected && enabled);		
}}
function writeFlash(id,src,W,H,bg,alt,trans,vers){
	
	var tst=false;
	if(!top.browserOk) tst=true;
	else if(chkPlugin()) tst=true;
	var str="";
	if(!vers) vers = 6;
	if(tst){
		str+="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+vers+",0,0,0' ";
		str+="WIDTH='"+W+"' HEIGHT='"+H+"' id='"+id+"' ALIGN=''>";
		str+="<PARAM NAME=movie VALUE='"+src+"'> ";
		str+="<PARAM NAME=quality VALUE=autohigh> ";
		str+="<PARAM NAME=scale VALUE=exactfit> ";
		if(trans) str+="<PARAM NAME=wmode VALUE=transparent>";
		str+="<PARAM NAME=bgcolor VALUE='"+bg+"'> ";
		str+="<EMBED ";
		str+="src='"+src+"' "; 
		str+="quality=autohigh ";
		str+="scale=exactfit ";
		str+="bgcolor='"+bg+"' ";  
		str+="WIDTH='"+W+"' ";
		str+="HEIGHT='"+H+"' ";
		str+="NAME='"+id+"' ";
		str+="ALIGN='' ";
		str+="swLiveConnect='true'";
		str+="TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>";
		str+="</EMBED>";
		str+="</OBJECT>";
	}else{
		if(alt) str="<a href='/'><img src='"+this.alt+"' width='"+this.W+"' height='"+this.H+"' border='0' /></a>";
		else noFlash();
	}
	document.write(str);
	/**/
}
function noFlash(){
	return("<a href='http://www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.html' target='_blank'><img src='../images/getflash.gif' border='0' /></a>")
}

function diamant_DoFSCommand(command, args) { 
	if (command == "flashLoadDone") { 
		flashLoadDone = 1;
	}
}

var movieName = "diamant";

function thisMovie(movieName) {
	if (navigator.appName.indexOf ("Microsoft") !=-1) return window[movieName];
	else return document[movieName];
}
function movieIsLoaded (theMovie) {
	if (typeof(theMovie) != "undefined") return theMovie.PercentLoaded() == 100; 
	else return false;
}
function stopFlash() {
	if (movieIsLoaded(thisMovie(movieName))) thisMovie(movieName).Rewind();
}
function startFlash() {
	if (movieIsLoaded(thisMovie(movieName))) thisMovie(movieName).Play();
}
