function Flash () {
	this._swf = '';
	this._width = 0;
	this._height = 0;
	this._params = new Array();
}

Flash.prototype.setSWF = function (_swf, _width, _height) {
	this._swf 		= _swf;
	this._width 	= _width;
	this._height 	= _height;
}

Flash.prototype.setParam = function (paramName, paramValue) {
	this._params[this._params.length] = paramName+'|||'+paramValue;
}

Flash.prototype.display = function () {
	var _txt 	= '';
	var params = '';
	if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
		_txt = '<embed wmode="transparent" type="application/x-shockwave-flash" wmode="transparent" src="'+ this._swf +'" width="'+ this._width +'" height="'+ this._height +'"';
		_txt += ' '+params+'>';
	} else { // PC IE
		_txt = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this._width +'" height="'+ this._height +'">';
		_txt += '<param name="movie" value="'+ this._swf +'" />';
		for ( i=0;i<this._params.length;i++ ) {
			_param = this._params[i].split ('|||');
			_txt += '<param name="'+_param[0]+'" value="'+_param[1]+'" />\n';
			params += _param[0]+'="'+_param[1]+'" ';
		}
		_txt += '<NOEMBED><img src="Video.jpg" width=952 height=303 border=0></NOEMBED>\n';
		_txt += "</object>";
	}
	document.write (_txt);
}
function onw(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }

function menu_display(t_id){
        var thisLevel = document.getElementById( t_id );
	if ( thisLevel.style.display == "none") {
		thisLevel.style.display = "";
	} else {
		thisLevel.style.display = "none";
	}

}
function nothing(){
	return;
}
function showbutton(t_id){
	var thisLevel = document.getElementById( t_id );
	thisLevel.style.display = "";
}

function loadurlx(dest, elementId) {
  try {  
    var xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
    new ActiveXObject("Microsoft.XMLHTTP");
  }
  catch (e) {
  }
  xmlhttp.onreadystatechange = function () {triggeredx.apply(this, [elementId]);};
  xmlhttp.open("GET", dest);
  xmlhttp.send(null); 
}

function triggeredx(elementId) {
  if ((this.readyState == 4) && (this.status == 200)) {
    document.getElementById(elementId).innerHTML = this.responseText;
  }
}
