﻿function layerDisplay(objId){
	var dis = document.getElementById(objId);
	if(dis.style.display != 'inline') dis.style.display = 'inline';
	else dis.style.display = 'none';
}

/* Flash load(url, width, height, id) */
function getFlash(swfName, widLength, heiLength, id){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+widLength+'" height="'+heiLength+'" id="'+id+'">');
	document.write('<param name="movie" value="'+swfName+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="allowScriptAccess" value="always">');
	document.write('<embed src="'+swfName+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widLength+'" height="'+heiLength+'" allowScriptAccess="sameDomain" id="'+id+'"></embed></object>');
}

/* Flash load Trans(url, width, height, id) */
function getFlashTrans(swfName, widLength, heiLength, id){

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+widLength+'" height="'+heiLength+'" id="'+id+'">');
	document.write('<param name="movie" value="'+swfName+'" id="movie'+id+'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="allowScriptAccess" value="always">');
	document.write('<embed src="'+swfName+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widLength+'" height="'+heiLength+'" wmode="transparent" allowScriptAccess="always" id="'+id+'"></embed></object>');
}

function windowOpen(objLink, winTit, wid, hei){
	if (!hei){
		var hei = wid;
		var wid = winTit;
		var winTit = "nullTit";
	}
	window.open(objLink, winTit, 'scrollbars=no, status=no,width='+wid+',height='+hei);
}