function insertFlash( strSrc, intWidth, intHeight, strWMode, strScale, strPlayMode, strCLSID, strCODEBASE, strBGcolor, strPosition, strFlashVars )
{
	if(strWMode == null || strWMode == "") strWMode = "Opaque";
	if(strScale == null || strScale == "") strScale = "noscale";
	if(strPlayMode == null || strPlayMode == "") strPlayMode = "true";
	
	var strFlash	=  '<object classid="' + strCLSID + '" codebase="' + strCODEBASE + '" ';
	strFlash += ' width="' + intWidth + '" height="' + intHeight + '">';

	strFlash += '<param name="movie" value="' + strSrc + '" />';
	strFlash += '<param name="quality" value="high" />';
	strFlash += '<param name="play" value="' + strPlayMode + '" />';
	strFlash += '<param name="wmode" value="' + strWMode + '" />';
//	strFlash += '<param name="scale" value="' + strScale + '" />';
	strFlash += '<param name="menu" value="false" />';
	if(strFlashVars != null && strFlashVars != "") strFlash += '<param name="FlashVars" value="' + strFlashVars + '" />';
	if(strPosition != null && strPosition != "") strFlash += '<param name="align" value="' + strPosition + '" />';
  	if(strBGcolor != null && strBGcolor != "") strFlash	+= '<param name="bgcolor" value="' + strBGcolor + '" />';

	strFlash += '<embed src="' + strSrc + '" width="' + intWidth + '" height="' + intHeight + '" wmode="' + strWMode + '" play="' + strPlayMode + '" scale="' + strScale  + '" menu="false"';
	if(strBGcolor != null && strBGcolor != "") strFlash	+= ' bgcolor="' + strBGcolor + '"';
	if(strFlashVars != null && strFlashVars != "") strFlash	+= ' FlashVars="' + strFlashVars + '"';
	if(strPosition != null && strPosition != "") strFlash	+= ' align="' + strPosition + '"';
	strFlash += ' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">';
	strFlash += '</embed>';
	strFlash += '</object>';

	document.write( strFlash );
	document.close( );	
}



var timerN=null, NS4=false,NS6=false;
if(navigator.appName == "Netscape") {
	NN = true;
	navVer = parseInt(navigator.appVersion);
	if(navVer < 4) {
		NOT_SUPPORTED = true;	//not support ver3 browsers
	}
	else if( navVer == 4) {
		NS4 = true;
	}
	else {
		NS6 = true;
	}
}
function openwin1(x,y,z) {
var sWidth,sHeight,NS4;
if (NS4) {
	sWidth = window.innerWidth - 14- y; sHeight=10;
} else {
	sWidth = document.body.clientWidth  - 18 - y; sHeight=20;
	y+=20;
	z+=50;
}

	clientimg=window.open("","Window","width=" + y + ",height=" + z + ",resizable=1,top=" + sHeight + ",left=" + sWidth);
	clientimg.window.resizeTo(y,z);
	clientimg.window.moveTo(10,0);
	clientimg.window.resizeTo(y,z);
	clientimg.document.open("text/html");
	clientimg.document.write('<body bgcolor="ffffff" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"><table width="100%" height="100%"><tr><td align="center"><IMG SRC="' + x + '"></td></tr></table></body>');
	clientimg.window.focus();
	clientimg.document.close();
}
function openwin(x,y,z) {
var sWidth,sHeight,NS4;

	clientimg1=window.open(x,"Window1","width=" + y + ",height=" + z + ",resizable=1,top=" + sHeight + ",left=" + sWidth);
	clientimg1.window.focus();
}
function showlayer(levels) {
	if (NS6) { document.getElementById(levels).style.visibility = "visible";}
		else if (NS4) 		document.layers[levels].visibility = "show";
		else 		document.all[levels].style.visibility = "visible";
}
function hidelayer(levels) {
	if (NS6) { document.getElementById(levels).style.visibility = "hidden";}
	else if (NS4) 		document.layers[levels].visibility = "hide";
	else 		document.all[levels].style.visibility = "hidden";
}

