function setEmbed() {
	var obj = new String; 
	var parameter = new String; 
	var embed = new String; 
	var html = new String; 
	var allParameter = new String; 
	var clsid = new String; 
	var codebase = new String; 
	var pluginspace = new String; 
	var embedType = new String; 
	var src = new String; 
	var width = new String; 
	var height = new String; 

	this.init = function(getType , s ,w , h ) {
		if ( getType == "flash") {
			clsid = "D27CDB6E-AE6D-11CF-96B8-444553540000";
			codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"; 
			pluginspage = "http://www.macromedia.com/go/getflashplayer"; 
			embedType = "application/x-shockwave-flash"; 
		}
		/* type Γί°‘ 
		else if ( ) {
		} 
		*/

		parameter += "<param name='movie' value='"+ s + "'>\n";
		parameter += "<param name='quality' value='high'>\n";
		src = s;
		width = w;
		height = h;
	}

	this.parameter = function( parm , value ) {
		parameter += "<param name='"+parm +"' value='"+ value + "'>\n";
		allParameter += " "+parm + "='"+ value+"'";
	}

	this.show = function() {
		if (clsid) {
			obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n";
		}

		embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n";

		if (obj) {
			embed += "</object>\n"; 
		}

		html = obj + parameter + embed;

		document.write(html);
	}
}

var win = null;

function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2: 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}

menu1_1 = new Image();
menu2_1 = new Image();
menu3_1 = new Image();
menu4_1 = new Image();
menu5_1 = new Image();
menu6_1 = new Image();
menu7_1 = new Image();
menu1_2 = new Image();
menu2_2 = new Image();
menu3_2 = new Image();
menu4_2 = new Image();
menu5_2 = new Image();
menu6_2 = new Image();
menu7_2 = new Image();

menu1_1.src="../images/menu1_1.gif";
menu2_1.src="../images/menu2_1.gif";
menu3_1.src="../images/menu3_1.gif";
menu4_1.src="../images/menu4_1.gif";
menu5_1.src="../images/menu5_1.gif";
menu6_1.src="../images/menu6_1.gif";
menu7_1.src="../images/menu7_1.gif";
menu1_2.src="../images/menu1_2.gif";
menu2_2.src="../images/menu2_2.gif";
menu3_2.src="../images/menu3_2.gif";
menu4_2.src="../images/menu4_2.gif";
menu5_2.src="../images/menu5_2.gif";
menu6_2.src="../images/menu6_2.gif";
menu7_2.src="../images/menu7_2.gif";

function change_img(name,img) {
	if(document.images) { document.images[name].src = eval(img + ".src");}
}



var imgObj = new Image();

function showImgWin(imgName) {
	imgObj.src = imgName;
	setTimeout("createImgWin(imgObj)", 100);
}

function createImgWin(imgObj) {
	if (! imgObj.complete) {
		setTimeout("createImgWin(imgObj)", 100);
		return;
	}

	imageWin = window.open("", "imageWin",
	"width=" + imgObj.width + ",height=" + imgObj.height);
	imageWin.document.write("<html><body style='margin:0'>");
	imageWin.document.write("<a href=javascript:window.close()><img src='" + imgObj.src + "' border=0></a>");
	imageWin.document.write("</body><html>");
	imageWin.document.title = imgObj.src;
}
