var movieName = "myFlashMovie";
var oneWin = new bt_Window();

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]
  }
}
function movieIsLoaded (theMovie) {
  // First make sure the movie's defined.
  if (typeof(theMovie) != "undefined") {
	// If it is, check how much of it is loaded.
	return theMovie.PercentLoaded() == 100;
  } else {
	// If the movie isn't defined, it's not loaded.
	return false;
  }
}
function playmovie(target1,target2,target3,target4,target5,target6,target7,target8,target9) {
  if (movieIsLoaded(thisMovie(movieName))) {
	thisMovie(movieName).TGotoLabel(target1, "be") ;
	thisMovie(movieName).TGotoLabel(target2, "be") ;
	thisMovie(movieName).TGotoLabel(target3, "be") ;
	thisMovie(movieName).TGotoLabel(target4, "be") ;
	thisMovie(movieName).TGotoLabel(target5, "be") ;
	thisMovie(movieName).TGotoLabel(target6, "be") ;
	thisMovie(movieName).TGotoLabel(target7, "be") ;
	thisMovie(movieName).TGotoLabel(target8, "be") ;
	thisMovie(movieName).TGotoLabel(target9, "be") ;
  }
}
function stopmovie(target1,target2,target3,target4,target5,target6,target7,target8,target9) {
	thisMovie(movieName).TGotoLabel(target1, "ki") ;
	thisMovie(movieName).TGotoLabel(target2, "ki") ;
	thisMovie(movieName).TGotoLabel(target3, "ki") ;
	thisMovie(movieName).TGotoLabel(target4, "ki") ;
	thisMovie(movieName).TGotoLabel(target5, "ki") ;
	thisMovie(movieName).TGotoLabel(target6, "ki") ;
	thisMovie(movieName).TGotoLabel(target7, "ki") ;
	thisMovie(movieName).TGotoLabel(target8, "ki") ;
	thisMovie(movieName).TGotoLabel(target9, "ki") ;
}
function activemovie(target1,target2,target3,target4,target5,target6,target7,target8,target9) {
	thisMovie(movieName).TGotoLabel(target1, "aktiv") ;
	thisMovie(movieName).TGotoLabel(target2, "aktiv") ;
	thisMovie(movieName).TGotoLabel(target3, "aktiv") ;
	thisMovie(movieName).TGotoLabel(target4, "aktiv") ;
	thisMovie(movieName).TGotoLabel(target5, "aktiv") ;
	thisMovie(movieName).TGotoLabel(target6, "aktiv") ;
	thisMovie(movieName).TGotoLabel(target7, "aktiv") ;
	thisMovie(movieName).TGotoLabel(target8, "aktiv") ;
	thisMovie(movieName).TGotoLabel(target9, "aktiv") ;
}

function showflash(file,width,height,bgcolor,wmode) {
	if (wmode)
		wmode = 'transparent' ;
	else
		wmode = 'opaque' ;
	document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" id=\"myFlashMovie\" width=\"'+width+'\" height=\"'+height+'\">');
	document.write('<param name=\"allowScriptAccess\" value=\"always\" />');
	document.write('<param name=\"movie\" value=\"'+file+'\" />');
	document.write('<param name=\"quality\" value=\"high\" />');
	document.write('<param name=\"wmode\" value=\"'+wmode+'\" />');
	document.write('<param name=\"bgcolor\" value=\"'+bgcolor+'\" />');
	document.write('<param name=\"swliveconnect\" value=\"true\" />');
	document.write('<param name=\"menu\" value=\"false\" />');
	document.write('<embed src=\"'+file+'\" quality=\"high\" bgcolor=\"'+bgcolor+'\" width=\"'+width+'\" height=\"'+height+'\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"'+wmode+'\"  swliveconnect=\"true\" name=\"myFlashMovie\" menu=\"false\"/>');
	document.write('</object>');
}
/**/
function open_gallery (gid,pic) {
	window.open(site_globalurl + '_gallery.php?id='+gid+'&pic='+pic,'Galéria','status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,height=650,width=680');
}

function show_firm(mip, mode){
	document.getElementById('mip_' + mip).className = (mode) ? 'hovered' : '' ;
	document.getElementById('bouble_' + mip).style.display = (mode) ? 'block' : 'none' ;
}

/* site */
function closeWindow(){
        oneWin.close();
}

function open_Window(){
	oneWin.open({
		winclass : 'fps_window',
		drag : 'fps_windrag',
		html : '<div id="x_wintitle" class="fps_windrag"></div>' +
				'<div id="x_winclose" onclick="closeWindow();" title="Close" class="fps_winclose"></div><div id="loader" class="fps_winloading"></div><div id="x_wincontent" class="fps_wincontent"></div>'
	});
}
function open_Window2(){
	oneWin.open({
		winclass : 'fps_window',
		drag : 'fps_windrag',
		html : '<div id="x_wintitle2" class="fps_windrag"></div>' +
				'<div id="x_winclose2" onclick="closeWindow();" title="Close" class="fps_winclose"></div><div id="loader2" class="fps_winloading"></div><div id="x_wincontent2" class="fps_wincontent"></div>'
	});
}
function return_Window(title, str, type){
	var content = '';
	if(type==0){
		content += '<div class="error">';
	}else if(type==1){
		content += '<div class="success">';
	}else{
		content += '<div class="notice">';
	}
	content += str + '</div>';
	content += '<div style="text-align:center;"><input onclick="closeWindow();" class="button" type="button" value="OK" /></div></div>';

	oneWin.open({
		winclass : 'fps_window',
		drag : 'fps_windrag',
		html : '<div id="x_returntitle" class="fps_windrag">' + title + '</div><div id="x_returnclose" onclick="closeWindow();" title="Close" class="fps_winclose"></div>'+
				'<div id="returnloader" class="fps_winloading"></div><div id="x_returncontent" class="fps_wincontent">' + content + '</div>'
	});
}
