// JavaScript Document
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function montre(id) {
	var d = document.getElementById('smenu'+id);
	for (var i = 1; i<=6; i++) {
		if (document.getElementById('smenu'+i)) {
			document.getElementById('smenu'+i).style.display='none';
			document.getElementById('menu'+i).style.backgroundColor='#333333';
		}
	}
	if (d) {
		d.style.display='block';
		var b = document.getElementById('menu'+id).style.backgroundColor;
		document.getElementById('menu'+id).style.backgroundColor='#666666';
	}
}

function mblock(id) {
	var d = document.getElementById('pf'+id);
	for (var i = 1; i<=8; i++) {
			if (document.getElementById('pf'+i)) {
				document.getElementById('pf'+i).style.display='none';
			}
		}
	if (d) {
		d.style.display='block';
	}	
}

function LoadMenu(id) {
	montre('smenu'+id);
	if (document.getElementById('menu'+id)) {
		document.getElementById('menu'+id).style.color='#000000';
		document.getElementById('menu'+id).style.backgroundColor='#FFCC00';
	}
}

function service_onLoad(page) {
  if (typeof Info != "undefined") if (!Info.closed) Info.close();	
	Info = window.open('../info_ser.php#ser' + page ,'Info','width=270,height=400,dependent=1,scrollbars=1');
	Info.focus();
}

function _unLoad() {
	if (typeof Web != "undefined") if (!Web.closed) Web.close();
  if (typeof Info != "undefined") if (!Info.closed) Info.close();	
}

function load_qt(id) {
	if (typeof Web != "undefined") if (!Web.closed) Web.close();
  Web = window.open('/qt360.php?id=' + id,'Web','width=420,height=400,dependent=1,scrollbars=0');
	Web.focus();
}

function Run_Flash(width, height, title, src) {
	
	AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width',width,'height',height,'title',title,'src',src,'quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie',src );
	
	document.write('<noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="');
	document.write( width + '" height="' + height + '" title="' + title + '">\n');
	document.write('<param name="movie" value="' + src + '" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="' + src + '" quality="high" ');
	document.write('pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" ');
	document.write('type="application/x-shockwave-flash" width="' + width + '" height="' + height + '">');
	document.write('</embed></object></noscript>');
}