
function flash(url,width,height,num,id){
	if(num == "1"){
		var vl="<param name='wmode' value='transparent'>";
	}
	else{
		var vl="'";
	}
	
	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'width='"+width+"' height='"+height+"' id='"+id+"'>\
	<param name='allowScriptAccess' value='always'><param name='movie' value='"+url+"'><param name='quality' value='high'><param name='menu' value='false'>"+vl+"\
	<embed src='"+url+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' name='"+id+"'></embed></object>\
	");
}


function callWhichMenu(menuId) {
	document.getElementById("JsNavi").SetVariable("menuValue", menuId); 
}

function openWindow( pUrl, pParam )
{
	if( pParam == null || pParam == "" )
	{ pParam = ""; }
	winOpened = window.open(pUrl, "winOpened"+(new Date()).getTime(), pParam);
	winOpened.focus();
}

function OnImg(obj){	
  document.images[obj.name].src = obj.src.replace("off","on");  
}
function OffImg(obj){
  document.images[obj.name].src = obj.src.replace("on","off");
}

String.prototype.ltrim = function(){
	var re = /\s*((\S+\s*)*)/;
	return this.replace(re, "$1");
}
String.prototype.rtrim = function(){
	var re = /((\s*\S+)*)\s*/;
	return this.replace(re, "$1");
}
String.prototype.trim = function(){
	return this.ltrim().rtrim();
}

function withoutOutline(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
		document.body.focus(); 
} 
document.onfocusin = withoutOutline; 