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 += "</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 loadurl(dest) {
	try {  
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
		new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) {
	   // browser doesn't support ajax. handle however you want
	}
	xmlhttp.onreadystatechange = triggered;
	xmlhttp.open("GET", dest);
	// sent post variables: send("name=aleem&gender=male)
	xmlhttp.send(null); 
}

function triggered() {
	// 0=Uninitialised 1=Loading 2=Loaded 3=Interactive
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
		document.getElementById("output").innerHTML = xmlhttp.responseText;
	}
}
function loadurl2(dest) {
	try {  
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
		new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) {
	   // browser doesn't support ajax. handle however you want
	}
	xmlhttp.onreadystatechange = triggered2;
	xmlhttp.open("GET", dest);
	xmlhttp.send(null); 
}

function triggered2() {
	// 0=Uninitialised 1=Loading 2=Loaded 3=Interactive
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
		document.getElementById("output2").innerHTML = xmlhttp.responseText;
	}
}
