function writeObjTag (filepath, width, height, id, args) {
	filepath = ''+filepath;
	width = ''+width;
	height = ''+height;
	args = ''+args;
	id = ''+id;
	if (filepath=="undefined") {
		return false;
	}
	if (width=="undefined") {
		return false;
	}
	if (height=="undefined") {
		return false;
	}
	if (args=="undefined") {
		args = '';
	}
	if (id=="undefined") {
		id = '';
	}


	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'");
	document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/");
	document.write("flash/swflash.cab'");
	if (id) {
		document.write("id='"+id+"'");
		document.write("name='"+id+"'");
	}
	document.write("width='"+width+"' height='"+height+"'");
	document.write("style='width:"+width+";height:"+height+"'>");
	document.write("<param name='movie' value='"+filepath+"'>");
	document.write("<param name='quality' value='high'>");
	if (args) {
		document.write("<param name='FlashVars' value='"+args+"'>");
	}
	document.write("<embed src='"+filepath+"' quality='high'");
	document.write(" width='"+width+"' height='"+height+"'");
	if (id) {
		document.write("id='"+id+"'");
		document.write("name='"+id+"'");
	}
	document.write("width='"+width+"' height='"+height+"'");
	if (args) {
		document.write(" FlashVars='"+args+"'");
	}
	document.write(" type='application/x-shockwave-flash'");
	document.write(" pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</embed>");
	document.write("</object>");
}


function ChangeDisplay(tid){

    if (document.all) {
        if (document.all[tid].style.display == "none") {
            document.all[tid].style.display = "block";
        } else {
            document.all[tid].style.display = "none";
        }

    } else if(document.getElementById) {

        if (document.getElementById(tid).style.display == "none") {
            document.getElementById(tid).style.display = "block";
        } else {
            document.getElementById(tid).style.display = "none";
        }
    }
}
