function creatflash(ur,w,h,ur2){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" wmode="transparent" id="'+ur2+'" name="'+ur2+'" width="'+w+'" height="'+h+'"> ');
document.write('<param name="movie" value="' + ur + '">');
document.write('<param name="quality" value="high"> ');
document.write('<param name="wmode" value="transparent"> ');
document.write('<param name="menu" value="false"> ');
document.write('<param name="swLiveConnect=" value="true" /> ');
document.write('<param name="allowScriptAccess" value="sameDomain" /> ');
document.write('<param name="allowFullScreen" value="false" /> ');
document.write('<param name="scale" value="noscale" /> ');
document.write('<param name="salign" value="t" /> ');
document.write('<embed src="' + ur + '" swLiveConnect="true" salign="t" align="top" wmode="transparent" menu="false" quality="high" scale="noscale" allowScriptAccess="sameDomain" allowFullScreen="false" pluginspage="http://www.macromedia.com/go/getflashplayer" id="'+ur2+'" name="'+ur2+'" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed> ');
document.write('</object> ');
}
function WindowHeight()
{
	// hauteur de la fen阾re 
	if (typeof(window.innerHeight) == "number") // non ie 
		return window.innerHeight;
	else if (document.documentElement && document.documentElement.clientHeight) // ie6 standards compliant mode 
		return document.documentElement.clientHeight;
	else if (document.body && document.body.clientHeight) // ie4 compatible 
		return document.body.clientHeight;
}
function changeHight(data) 
{ 
   document.getElementById('mainflash').style.height= data;
} 

<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function main_DoFSCommand(command, args)                {
  var mainObj = InternetExplorer ? main : document.main;
  if(command=="setheight"){
           changeHight (args);
        }
 
  if(command=="setTitle"){
          theTitle="轩尼斯门业 | 轩尼斯卫浴世家 | 轩尼斯欧式名门——您现在的页面位置："+args
		  window.document.title="轩尼斯门业 | 轩尼斯卫浴世家 | 轩尼斯欧式名门——您现在的页面位置："+args;
        }
        if(command=="setAddress"){
          document.location.hash=args
		  window.document.title="轩尼斯门业 | 轩尼斯卫浴世家 | 轩尼斯欧式名门——您现在的页面位置："+args;
window.document.main.SetVariable("givevar",args)
        }
		if(command==""){
          theTitle="轩尼斯门业 | 轩尼斯卫浴世家 | 轩尼斯欧式名门——您现在的页面位置："+args
		  window.document.title="轩尼斯门业 | 轩尼斯卫浴世家 | 轩尼斯欧式名门——您现在的页面位置："+args;
        }
}

//////////////////////////////////////////////////

var theTitle="main"
function setTitle(){
  window.document.title=theTitle
  id=setTimeout(setTitle,1000)
}

function JS_LoadNews(){
  window.open("statistics.html?"+document.location.hash.slice(1),"stat")
  window.document.main.SetVariable("givevar",document.location.hash.slice(1))
  window.document.title="轩尼斯门业 | 轩尼斯卫浴世家 | 轩尼斯欧式名门——您现在的页面位置："+document.location.hash.slice(1);
}
//////////////////////////////////////////////////////
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<scr' + 'ipt LANGUAGE=VBScript> \n');
  document.write('on error resume next \n');
  document.write('Sub main_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call main_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</scr' + 'ipt> \n');
} 
