var ImgSpacer = new Image ();
ImgSpacer.src = "images/spacer.gif";

var cVer = "";
if (window.clientInformation) {
	if (window.clientInformation.userAgent.indexOf("MSIE 5.0") >= 1) {
		cVer = "MSIE5";
	}
}

// global variables and function
var nm_EffectArray = [
	["", -2, "Normal"],
	["Fade(overlap=.5,enabled=0,Duration=0.20)", -2, "Fade"],
	["Iris(irisStyle=SQUARE,motion=in,enabled=0,Duration=0.20)", 0, "Box In"],
	["Iris(irisStyle=SQUARE,motion=out,enabled=0,Duration=0.20)", 1, "Box Out"],
	["Iris(irisStyle=CIRCLE,motion=in,enabled=0,Duration=0.20)", 2, "Circle In"],
	["Iris(irisStyle=CIRCLE,motion=out,enabled=0,Duration=0.20)", 3, "Circle Out"],
	["Iris(irisStyle=cross,motion=in,enabled=0,Duration=0.20)", -2, "Cross In"],
	["Iris(irisStyle=cross,motion=out,enabled=0,Duration=0.20)", -2, "Cross Out"],
	["Iris(irisStyle=plus,motion=in,enabled=0,Duration=0.20)", -2, "Plus In"],
	["Iris(irisStyle=plus,motion=out,enabled=0,Duration=0.20)", -2, "Plus Out"],
	["Iris(irisStyle=star,motion=in,enabled=0,Duration=0.20)", -2, "Star In"],
	["Iris(irisStyle=star,motion=out,enabled=0,Duration=0.20)", -2, "Star Out"],
	["Iris(irisStyle=diamond,motion=in,enabled=0,Duration=0.20)", -2, "Diamond In"],
	["Iris(irisStyle=diamond,motion=out,enabled=0,Duration=0.20)", -2, "Diamond Out"],
	["Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.20)", 4, "Wipe Up"],
	["Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.20)", 5, "Wipe Down"],
	["Wipe(GradientSize=1.0,wipeStyle=0,motion=forward,enabled=0,Duration=0.20)", 6, "Wipe Right"],
	["Wipe(GradientSize=1.0,wipeStyle=0,motion=reverse,enabled=0,Duration=0.20)", 7, "Wipe Left"],
	["Blinds(bands=8,direction=up,enabled=0,Duration=0.20)", -2, "Blinds Up"],
	["Blinds(bands=8,direction=RIGHT,enabled=0,Duration=0.20)", 8, "Blinds Down"],
	["Blinds(bands=8,direction=DOWN,enabled=0,Duration=0.20)", 9, "Blinds Right"],
	["Blinds(bands=8,direction=left,enabled=0,Duration=0.20)", -2, "Blinds Left"],
	["Checkerboard(squaresX=16,squaresY=16,direction=up,enabled=0,Duration=0.20)", -2, "Checkerboard Up"],
	["Checkerboard(squaresX=12,squaresY=12,direction=down,enabled=0,Duration=0.20)", 11, "Checkerboard Down"],
	["Checkerboard(squaresX=16,squaresY=16,direction=right,enabled=0,Duration=0.20)", 10, "Checkerboard Right"],
	["Checkerboard(squaresX=16,squaresY=16,direction=left,enabled=0,Duration=0.20)", -2, "Checkerboard Left"],
	["RandomDissolve(,enabled=0,Duration=0.20)", 12, "Random Dissolve"],
	["Barn(orientation=vertical,motion=in,enabled=0,Duration=0.20)", 13, "Split Vertical In"],
	["Barn(orientation=vertical,motion=out,enabled=0,Duration=0.20)", 14, "Split Vertical Out"],
	["Barn(orientation=horizontal,motion=in,enabled=0,Duration=0.20)", 15, "Split Horizontal In"],
	["Barn(orientation=horizontal,motion=out,enabled=0,Duration=0.20)", 16, "Split Horizontal Out"],
	["Strips(Motion=leftdown,enabled=0,Duration=0.20)", 17, "Split Left Down"],
	["Strips(Motion=leftup,enabled=0,Duration=0.20)", 18, "Split Left Up"],
	["Strips(Motion=rightdown,enabled=0,Duration=0.20)", 19, "Split Right Down"],
	["Strips(Motion=rightup,enabled=0,Duration=0.20)", 20, "Split progid Up"],
	["RandomBars(orientation=horizontal,enabled=0,Duration=0.20)", 21, "Random Bars Horizontal"],
	["RandomBars(orientation=vertical,enabled=0,Duration=0.20)", 22, "Random Bars Vertical"],
	["Wheel(spokes=16,enabled=0,Duration=0.20)", -2, "Wheel"],
	["Inset(,enabled=0,Duration=0.20)", -2, "Spread"],
	["Slide(slideStyle=hide,bands=15,enabled=0,Duration=0.20)", -2, "Slide"],
	["Slide(slideStyle=swap,bands=15,enabled=0,Duration=0.20)", -2, "Slide Swap"],
	["Pixelate(MaxSquare=15,enabled=0,Duration=0.20)", -2, "Pixelate"],
	["Stretch(stretchStyle=hide,enabled=0,Duration=0.20)", -2, "Stretch Right"],
	["Stretch(stretchStyle=spin,enabled=0,Duration=0.20)", -2, "Stretch Horizontal"],
	["Spiral(GridSizeX=16,GridSizeY=16,enabled=0,Duration=0.20)", -2, "Spiral"],
	["Zigzag(GridSizeX=16,GridSizeY=16,enabled=0,Duration=0.20)", -2, "ZigZag"],
	["RadialWipe(wipeStyle=clock,enabled=0,Duration=0.20)", -2, "Wipe Clock"],
	["RadialWipe(wipeStyle=wedge,enabled=0,Duration=0.20)", -2, "Wipe Wedge"],
	["RadialWipe(wipeStyle=radial,enabled=0,Duration=0.20)", -2, "Wipe Radial"],
	["revealTrans(Transition=23,enabled=0,Duration=0.20)", 23, "Random"]
];



function nm_Navigations () {
	this.navigation = [];
	this.objType = "navigations";
}
	function nm_Navigations_AddNavigation (navigation) {
		this.navigation[this.navigation.length] = navigation;
	}
	new nm_Navigations();
	nm_Navigations.prototype.AddNavigation = nm_Navigations_AddNavigation;



function nm_Navigation (id, navType, align, resourcePath, spacerImage) {
	this.objType = "navigation";
	this.navType = navType;
	switch (navType) {
		case "float":
			this.navTypeValue = 1;
			break;
		case "custom":
			this.navTypeValue = 2;
			break;
		default:
			this.navTypeValue = 0;
			break;
	}

	this.align = align;
	switch (align) {
		case "center":
			this.alignValue = 1;
			break;
		case "right":
			this.alignValue = 2;
			break;
		default:
			this.alignValue = 0;
			break;
	}

	this.label = "";
	this.id = id;
	this.version = 400;
	this.resourcePath = resourcePath;
	this.spacerImage = spacerImage;

	this.x = "0"; // "stgcl() + x" (if float and autoscroll)
	this.y = "0"; // "stgct() + y" (if float and autoscroll)
	this.showSubMenuAfterClick = 0;
	this.showVerticalMenuDelay = 100;
	this.showHorizontalMenuDelay = 100;
	this.hideSubMenuDelay = 100;
	this.hideSelect = 1;
	this.hideObject = 1;
	this.hideIFrame = 1;

	this.menu = [];
}
	function nm_Navigation_AddMenu (menu) {
		menu.navigation = this;
		this.menu[this.menu.length] = menu;
	}
	function nm_Navigation_Add () {
		stm_bm([
			this.id, this.version,
			this.resourcePath, this.spacerImage,
			this.navTypeValue, this.x, this.y, this.alignValue,
			this.showSubMenuAfterClick, this.showVerticalMenuDelay, this.showHorizontalMenuDelay, this.hideSubMenuDelay,
			this.hideSelect, this.hideObject, this.hideIFrame
			]
		);
	}
	function nm_Navigation_Close () {
		stm_em();
	}
	new nm_Navigation ("", "", "", "", "");
	nm_Navigation.prototype.Add = nm_Navigation_Add;
	nm_Navigation.prototype.AddMenu = nm_Navigation_AddMenu;
	nm_Navigation.prototype.Close = nm_Navigation_Close;






function nm_Menu (name, type, display, direction, padding, spacing) {
	this.type = type;
	if (display == "horizontal") {
		this.display = display;
		this.displayValue = 0;
	}
	else {
		this.display = "vertical";
		this.displayValue = 1;
	}

	this.direction = direction;
	switch (direction) {
		case "left":
			this.directionValue = 1;
			break;
		case "right":
			this.directionValue = 2;
			break;
		case "up":
			this.directionValue = 3;
			break;
		case "down":
			this.directionValue = 4;
			break;
		default:
			this.directionValue = 2;
	}

	this.name = name;
	this.id = name + "Menu";
	this.padding = padding;
	(spacing == void(0))? this.spacing = 0: this.spacing = spacing;
	this.offsetX = 0;
	this.offsetY = 0;
	this.lw_max = 0;
	this.rw_max = 0;
	this.opacity = 100;

	this.align = "left"; // 0 (left) | 1(center) | 2(right)
	this.valign = "top"; // 0(top) | 1(middle) | 2(bottom)

	this.button = new nm_Button ("", "", false);
	this.effect = new nm_Effect ("Normal", "Normal", 0);
	this.dropShadow = new nm_DropShadow ("none", 0, "#999999");
	this.border = [];
	this.border[0] = new nm_Border ("Menu", "none", 0, "#999999", "#cccccc");
	this.border[1] = new nm_Border ("MenuItem", "none", 0, "#999999", "#cccccc");
	this.background = [];
	this.background[0] = new nm_Background ("ItemBackground", "#000000", "", "no-repeat", "opaque");
	this.background[1] = new nm_Background ("ItemActiveBackground", "#000000", "", "no-repeat", "opaque");
	this.background[2] = new nm_Background ("MenuBackground", "", "", "no-repeat", "opaque");
	this.image = [];
	this.image[0] = new nm_Image ("Icon", "images/spacer.gif", -1, -1, this);
	this.image[1] = new nm_Image ("ActiveIcon", "images/spacer.gif", -1, -1, this);
	this.image[2] = new nm_Image ("Arrow", "images/spacer.gif", -1, -1, this);
	this.image[3] = new nm_Image ("ActiveArrow", "images/spacer.gif", -1, -1, this);
	this.font = [];
	this.font[0] = new nm_Font ("Font");
	this.font[1] = new nm_Font ("ActiveFont");
	this.separator = new nm_Separator ("#000000", 5);
	this.navigation = null;
}
	function nm_Menu_AddBorder (border) {
		if (border.name == "Menu") {
			this.border[0] = border;
		}
		else if (border.name == "MenuItem") {
			this.border[1] = border;
		}
	}
	function nm_Menu_AddFont (font) {
		if (font.name == "Font") {
			this.font[0] = font;
		}
		else if (font.name == "ActiveFont") {
			this.font[1] = font;
		}
	}
	function nm_Menu_AddBackground (background) {
		if (background.name == "ItemBackground") {
			this.background[0] = background;
		}
		else if (background.name == "ItemActiveBackground") {
			this.background[1] = background;
		}
		else if (background.name == "MenuBackground") {
			this.background[2] = background;
		}
	}
	function nm_Menu_AddImage (image) {
		if (image.name == "Icon") {
			this.image[0] = image;
		}
		else if (image.name == "ActiveIcon") {
			this.image[1] = image;
		}
		else if (image.name == "Arrow") {
			this.image[2] = image;
		}
		else if (image.name == "ActiveArrow") {
			this.image[3] = image;
		}
	}
	function nm_Menu_Add (idSuffix, parent) {
		var padding = this.padding;
		if (isNaN(this.padding - 0) == false) {
			//padding = this.padding + "px";
			padding = this.padding;
		}
		if (this.type == "button") {
			padding = "0";
		}

		var directionValue = this.directionValue;
		if (parent != void(0) && parent != null && parent.directionValue) {
			directionValue = parent.directionValue;
		}

		if (this.image[0].width > 0) {
			this.lw_max = this.image[0].width;
		}
		if (this.image[2].width > 0) {
			this.rw_max = this.image[2].width;
		}

		stm_bp(
			this.id + idSuffix,
			[
				this.displayValue, directionValue, this.offsetX, this.offsetY,
				this.spacing, padding,
				this.lw_max, this.rw_max, this.opacity,
				this.effect.showValue, this.effect.showId, this.effect.hideValue, this.effect.hideId, this.effect.speed,
				this.dropShadow.styleValue, this.dropShadow.size, this.dropShadow.color,
				this.background[2].color, this.background[2].image, this.background[2].repeatValue,
				this.border[0].styleValue, this.border[0].size, this.border[0].color
			]
		);
	}
	function nm_Menu_Close () {
		stm_ep();
	}
	new nm_Menu ("", "", "", "", "", "");
	nm_Menu.prototype.AddBorder = nm_Menu_AddBorder;
	nm_Menu.prototype.AddBackground = nm_Menu_AddBackground;
	nm_Menu.prototype.AddFont = nm_Menu_AddFont;
	nm_Menu.prototype.AddImage = nm_Menu_AddImage;
	nm_Menu.prototype.Add = nm_Menu_Add;
	nm_Menu.prototype.Close = nm_Menu_Close;










function nm_Effect (show, hide, speed) {
	(show == "")? show = "Normal": show = show;
	(hide == "")? hide = "Normal": hide = hide;
	this.speed = speed; //default is 50
	var showEffect = nm_Effect_GetEffect (show);
	var hideEffect = nm_Effect_GetEffect (hide);
	this.show = show;
	this.showValue = showEffect[0];
	this.showId = showEffect[1];
	this.hide = hide;
	this.hideValue = hideEffect[0];
	this.hideId = hideEffect[1];
}
	function nm_Effect_GetEffect (effect) {
		effect = effect.replace (/_/g, " ");
		for (var i=0; i<nm_EffectArray.length; i++) {
			if (effect == nm_EffectArray[i][2]) {
				var r = [nm_EffectArray[i][0], nm_EffectArray[i][1], nm_EffectArray[i][2]];
				if (r[2] != "Normal" && r[2] != "Random") {
					r[0] = "progid:DXImageTransform.Microsoft." + r[0];
				}
				return r;
			}
		}
		return ["", -2, "Normal"];
	}
	new nm_Effect ("", "", "");





function nm_DropShadow (style, size, color) {
	(style == "")? this.style = "none": this.style = style;
	this.styleValue =  nm_DropShadow_SetStyle (style);
	this.size = size; //0
	this.color = color;
}
	function nm_DropShadow_SetStyle (s) {
		if 		(s == "simple") 	{	this.style = s; this.styleValue = 1;	}
		else if	(s == "complex") 	{	this.style = s; this.styleValue = 2;	}
		else 						{	this.style = "none"; this.styleValue = 0;	}
		return this.styleValue;
	}
	new nm_DropShadow ("", 0, "");





function nm_Border (name, style, size, color, activeColor) {
	this.name = name;
	this.style = style;
	if (this.style == void(0) || this.style == null || this.style == "") {
		this.style = "none";
	}
	this.styleValue =  nm_Border_SetStyle (style);
	(size == void(0) || size == null)? this.size = 1: this.size = size;
	(color == void(0) || color == null)? this.color = "#000000": this.color = color;
	(activeColor == void(0) || activeColor == null)? this.activeColor = this.color: this.activeColor = activeColor;
}
	function nm_Border_SetStyle (s) {
		if 		(s == "solid") 		{	this.style = s; this.styleValue = 1;	}
		else if	(s == "double") 	{	this.style = s; this.styleValue = 2;	}
		else if	(s == "dotted") 	{	this.style = s; this.styleValue = 3;	}
		else if	(s == "dashed") 	{	this.style = s; this.styleValue = 4;	}
		else if	(s == "groove") 	{	this.style = s; this.styleValue = 5;	}
		else if	(s == "ridge") 		{	this.style = s; this.styleValue = 6;	}
		else 						{	this.style = s; this.styleValue = 0;	}
		return this.styleValue;
	}
	new nm_Border ("", "", "", "", "");
	nm_Border.prototype.SetStyle = nm_Border_SetStyle;






function nm_Background (name, color, image, repeat, transparent) {
	this.name = name;
	this.color = color;
	this.image = image;
	(repeat == "")? this.repeat = "no-repeat": this.repeat = repeat;
	this.repeatValue =  nm_Background_SetRepeat (repeat);

	this.transparent = transparent;
	(transparent == "")? this.transparent = "opaque": this.transparent = transparent;
	this.transparentValue =  nm_Background_SetTransparent (transparent);
}
	function nm_Background_SetRepeat (s) {
		if 		(s == "repeat-x") 	{	this.repeat = s;	this.repeatValue = 1;	}
		else if	(s == "repeat-y") 	{	this.repeat = s;	this.repeatValue = 2;	}
		else if	(s == "repeat") 	{	this.repeat = s;	this.repeatValue = 3;	}
		else 						{this.repeat = "no-repeat";	this.repeatValue = 0;	} // "no-repeat"
		return this.repeatValue;
	}
	function nm_Background_SetTransparent (s) {
		if 	(s == "transparent") 	{	this.transparent = s; this.transparentValue = 1;	}
		else 						{	this.transparent = "opaque"; this.transparentValue = 0;	} // "opaque"
		return this.transparentValue;
	}
	new nm_Background ("", "", "", "", "");
	nm_Background.prototype.SetRepeat = nm_Background_SetRepeat;
	nm_Background.prototype.SetTransparent = nm_Background_SetTransparent;






 /* START: Font object */
function nm_Font (name) {
	this.name = name;
	this.declarations = [];
	this.declarations[0] = new nm_Declaration ("font-family", '"Arial", Helvetica", sans-serif","none"');
	this.declarations[1] = new nm_Declaration ("font-size", "11px");
	this.declarations[2] = new nm_Declaration ("font-weight", "normal");
	this.declarations[3] = new nm_Declaration ("font-style", "normal");
	this.declarations[4] = new nm_Declaration ("color", "#000000");
	this.declarations[5] = new nm_Declaration ("text-decoration", "underline");
}
	function nm_Font_SetDeclarations (family, size, weight, style, color, decoration) {
		this.declarations[0] = new nm_Declaration ("font-family", family);
		this.declarations[1] = new nm_Declaration ("font-size", size);
		this.declarations[2] = new nm_Declaration ("font-weight", weight);
		this.declarations[3] = new nm_Declaration ("font-style", style);
		this.declarations[4] = new nm_Declaration ("color", color);
		this.declarations[5] = new nm_Declaration ("text-decoration", decoration);
	}
	function nm_Font_AddDeclarations (family, size, weight, style, color, decoration) {
		this.SetDeclarations (family, size, weight, style, color, decoration);
	}
	function nm_Font_GetFontFamily () {
		a = this.declarations[0].value.split (",");
		var fontFamily = "";
		for (var i=0; i<a.length; i++) {
			var font = "'";
			font += a[i].replace (/[ ]*"|'[ ]*/g, "");
			font += "'";
			fontFamily += font + ",";
		}
		fontFamily = fontFamily.substring (0, fontFamily.length - 2) + "'";
		return fontFamily;
	}
	function nm_Font_GetColor () {
		return this.declarations[4].value;
	}
	function nm_Font_GetCssFont () {
		var cssFont = this.declarations[3].value + " " + this.declarations[2].value + " " + this.declarations[1].value + " " + this.GetFontFamily ();
		return cssFont;
	}
	function nm_Font_GetTextDecoration () {
		var s = this.declarations[5].value;
			textDecoration = 0;
			if (s.indexOf ("underline") > -1) {
				textDecoration += 1;
			}
			if (s.indexOf ("overline") > -1) {
				textDecoration += 2;
			}
			if (s.indexOf ("line-through") > -1) {
				textDecoration += 4;
			}
			return textDecoration;
		}
	new nm_Font ("");
	nm_Font.prototype.SetDeclarations = nm_Font_SetDeclarations;
	nm_Font.prototype.AddDeclarations = nm_Font_AddDeclarations;
	nm_Font.prototype.GetFontFamily = nm_Font_GetFontFamily;
	nm_Font.prototype.GetColor = nm_Font_GetColor;
	nm_Font.prototype.GetCssFont = nm_Font_GetCssFont;
	nm_Font.prototype.GetTextDecoration = nm_Font_GetTextDecoration;
 /* END: Font object */






function nm_Declaration (property, value) {
	this.property = property;
	this.value = value;
	this.objectType = "declaration";
}
	new nm_Declaration ("", "");




function nm_Separator (color, size, image, imageWidth, imageHeight, imageBorder) {
	this.itemType = 6;
	this.color = color;
	this.size = size; // default should be 1
	this.image = image; // default should be ""
	this.imageWidth = imageWidth; // default should be 0
	this.imageHeight = imageHeight; // default should be 0
	this.imageBorder = imageBorder; // default should be 0
}
	function nm_Separator_Add (id) {
		if (this.size == 0 && this.imageWidth == 0 && this.imageHeight == 0) {
			// Do nothing?
		}
		else {
			stm_ai(id, [this.itemType, this.size, this.color, this.image, this.imageWidth, this.imageHeight, this.imageBorder] );
		}
	}
	new nm_Separator ("", "", "", "", "", "");
	nm_Separator.prototype.Add = nm_Separator_Add;




function nm_Button (name, width, hasRollover) {
	this.name = name;
	this.width = width;
	this.hasRollover = hasRollover; //true
	this.t1 = new Object ();
	this.t1.width = 0;
	this.t2 = new Object ();
	this.t2.width = 0;
	this.t3 = new Object ();
	this.t3.width = 0;
}
new nm_Button ("", "", false);






function nm_Image (name, src, width, height, buttonImage) {
	this.name = name;
	if (buttonImage) {
		this.buttonImage = buttonImage;
	}
	this.id = "";
	(src == "")? this.src = ImgSpacer.src: this.src = src;

	this.width = width; //-1
	this.height = height; //-1

	this.image = new Image ();
	if (this.src != "") {
		this.image.src = this.src;
	}
	this.image.width = this.width;
	this.image.height = this.height;
}
	function nm_Image_SetImage (src, width, height) {
		(src == "")? this.src = ImgSpacer.src: this.src = src;
		this.width = width; //-1
		this.height = height; //-1
		this.image.src = this.src;
		this.image.width = this.width;
		this.image.height = this.height;
	}
	new nm_Image ("", "", "");
	nm_Image.prototype.SetImage = nm_Image_SetImage;










 /* START: Menu Item object */
function nm_MenuItem (id, label, href, status, tips, target, menu) {
	this.id = id;
	this.label = label;
	(href == void(0) || href == null)? this.href = "": this.href = href.replace (/&amp;/g, '&');
	(status == void(0) || status == null)? this.status = "": this.status = status;
	(tips == void(0) || tips == null)? this.tips = "": this.tips = tips;
	(target == void(0) || target == null || target == "")? this.target = "_self": this.target = target;

	this.itemType = 1; //1(HTML) | 0(Text) | 6(separator)
	this.align = "left"; // 0 (left) | 1(center) | 2(right)
	this.valign = "top"; // 0(top) | 1(middle) | 2(bottom)

	(menu == void(0) || menu == null)? this.menu = null: this.menu = menu;

	this.image = new Object();
	this.image.src = "";
	this.image.activeSrc = "";
	this.image.width = -1;
	this.image.height = -1;
	this.image.border = 0;

	this.icon = new Object();
	this.icon.src = "";
	this.icon.activeSrc = "";
	this.icon.width = -1;
	this.icon.height = -1;
	this.icon.border = 0;

	this.arrow = new Object();
	this.arrow.src = "";
	this.arrow.activeSrc = "";
	this.arrow.width = -1;
	this.arrow.height = -1;
	this.arrow.border = 0;

	if (this.menu != null) {
		if (this.menu.type == "text") {this.itemType = 0;};
		this.background = this.menu.background[0];
		this.activeBackground = this.menu.background[1];
		this.border = this.menu.border[1];
		this.font = this.menu.font[0];
		this.activeFont = this.menu.font[1];
		this.separator = this.menu.separator;
		if (this.menu.image[0].width > 0) {
			this.icon = this.menu.image[0];
			this.icon.activeSrc = this.menu.image[1].src;
		}
		if (this.menu.image[2].width > 0) {
			this.arrow = this.menu.image[2];
			this.arrow.activeSrc = this.menu.image[3].src;
		}
	}
}
	function nm_MenuItem_Add (state) {
		if (this.menu != null) {
			if (this.menu.type == "text") {this.itemType = 0;};
			this.align = this.menu.align;
			this.valign = this.menu.valign;
			this.background = this.menu.background[0];
			this.activeBackground = this.menu.background[1];
			this.border = this.menu.border[1];
			this.font = this.menu.font[0];
			this.activeFont = this.menu.font[1];
			this.separator = this.menu.separator;
			if (this.menu.image[0].width > 0) {
				this.icon = this.menu.image[0];
				this.icon.activeSrc = this.menu.image[1].src;
			}
			if (this.menu.image[2].width > 0) {
				this.arrow = this.menu.image[2];
				this.arrow.activeSrc = this.menu.image[3].src;
			}
		}

		var align = 0; //left
		if 			(this.align == "center") 	{align = 1;}
		else if		(this.align == "right") 	{align = 2;}

		var valign = 0; //top
		if 			(this.valign == "middle") 	{valign = 1;}
		else if		(this.valign == "bottom") 	{valign = 2;}

		var font = this.font;
		var activeFont = this.activeFont;
		var background = this.background;
		var activeBackground = this.activeBackground;
		var borderColor = this.border.color;
		var activeBorderColor = this.border.activeColor;
		if (state != void(0) && state != null && state == "down") {
			font = this.activeFont;
			background = this.activeBackground;
			borderColor = this.border.activeColor;
		}

		stm_ai( this.id, [
				this.itemType, this.label,
				this.image.src, this.image.activeSrc, this.image.width, this.image.height, this.image.border,
				this.href, this.target, this.status, this.tips,
				this.icon.src, this.icon.activeSrc, this.icon.width, this.icon.height, this.image.border,
				this.arrow.src, this.arrow.activeSrc, this.arrow.width, this.arrow.height, this.image.border,
				align, valign,
				background.color, background.transparentValue,
				activeBackground.color, activeBackground.transparentValue,
				background.image, activeBackground.image,
				background.repeatValue, activeBackground.repeatValue,
				this.border.styleValue, this.border.size, borderColor, activeBorderColor,
				font.GetColor (), activeFont.GetColor (),
				font.GetCssFont (), activeFont.GetCssFont (),
				font.GetTextDecoration (), activeFont.GetTextDecoration ()
			]
		)
	}
	function nm_MenuItem_AddSeparator () {
		var id = this.id + "sep";
		this.menu.separator.Add (id);
	}
	function nm_MenuItem_SetHTMLLabel (state) {
		if (this.menu && this.menu.navigation && this.menu.type == "button" && this.menu.button != null) {
			var b = this.menu.button;
			var cl = this.menu.navigation.id + this.menu.name;
			var ac = cl + "_A";
			var ic = cl + "_I";
			if (state && state == "down") { ic = ac; }

			var tl = "";
			if (this.tips && this.tips != "") {
				tl = " title=\"" + this.tips + "\"";
			}

			var bw = b.width;
			var wd = "";
			if (bw && bw > 0 && bw != "") {
				wd = ' width="' + bw + '"';
			}

			var lb = this.label;
			h = "";
			h += '<table cellspacing="0" cellpadding="0" border="0"' + wd + tl + ' class="' + ic + '" ';
			//h += ' onclick="window.open (\'' + this.href + '\', \'' + this.target + '\');"';
			h += '	onMouseOver="this.className = \'' + ac + '\';" onMouseOut="this.className = \'' + ic + '\';">';
			h += '	<tr>';
			h += '		<td width="' + b.t1.width + '" class="t1"><div class="icon"></div></td>';
			h += '		<td width="100%" class="t2"><div class="icon"></div></td>';
			h += '		<td width="' + b.t3.width + '" class="t3"><div class="icon"></div></td>';
			h += '	</tr>';
			h += '	<tr>';
			h += '		<td class="m1"><div class="icon"></div></td>';
			h += '		<td class="m2"><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td class="cell"><div class="icon"></div></td><td width="100%" class="cell"><div class="label">' + lb + '</div></td></tr></table></td>';
			h += '		<td class="m3"><div class="icon"></div></td>';
			h += '	</tr>';
			h += '	<tr>';
			h += '		<td class="b1"><div class="icon"></div></td>';
			h += '		<td class="b2"><div class="icon"></div></td>';
			h += '		<td class="b3"><div class="icon"></div></td>';
			h += '	</tr>';
			h += '</table>';

			this.label = h;
			return this.label;
		}
	}

	new nm_MenuItem ("", "", "", "", "");
	nm_MenuItem.prototype.Add = nm_MenuItem_Add;
	nm_MenuItem.prototype.AddSeparator = nm_MenuItem_AddSeparator;
	nm_MenuItem.prototype.SetHTMLLabel = nm_MenuItem_SetHTMLLabel;
 /* END: Menu Item object */






























/*
	The DHTML Menu scripts has been modified, referred to comments below for details of the changes

	HISTORY:
		05/01/03
			Table padding is changed to be handled by css
			If no drop shadow and effect is used, do not return a filter string -- it
			causes jaggy font problem in IE.
		06/24/03
			IE 5.0 has problem with the filter, do not show it when it's IE 5.5 or less
*/
// Ver: 4.1
var nOP=0,nOP5=0,nIE=0,nIE4=0,nIE5=0,nNN=0,nNN4=0,nNN6=0,nMAC=0,nIEM=0,nIEW=0,nDM=0,nVER=0.0,st_delb=0,st_addb=0,st_reg=1;stnav();var st_ttb=nIE||nOP&&(nVER>=6&&nVER<7);
var stT2P=["static","absolute","absolute"],stHAL=["left","center","right"],stVAL=["top","middle","bottom"],stREP=["no-repeat","repeat-x","repeat-y","repeat"],stBDS=["none","solid","double","dotted","dashed","groove","ridge"];
var st_max=10,st_ht="",st_gc=0,st_rl=null,st_cl,st_ct,st_cw,st_ch,st_cm=0,st_cp,st_ci,st_ri=/Stm([0-9]*)p([0-9]*)i([0-9]*)e/,st_rp=/Stm([0-9]*)p([0-9]*)i/,st_ims=[],st_ms=[],st_load=0,st_scr=null;
var st_rsp=new RegExp(" +");
if(nNN4){stitovn=stevfn('stitov',1);stitoun=stevfn('stitou',1);stitckn=stevfn('stitck',1);stppovn=stevfn('stppov',0);stppoun=stevfn('stppou',0);}
if(nIE4||nNN4)window.onerror=function(m,u,l){return !confirm("Java Script Error\n"+"\nDescription:"+m+"\nSource:"+u+"\nLine:"+l+"\n\nSee more details?");}
if(nDM)window.onload=st_onload;
if(nIEM||nOP5)window.onunload=function(){if(st_rl){clearInterval(st_rl);st_rl=null;}return true;}
if(typeof(st_js)=='undefined'){
if(nDM&&!nNN4)
{
	var s="<STYLE>\n.st_tbcss,.st_tdcss,.st_divcss,.st_ftcss{border:none;padding:0px;margin:0px;}\n</STYLE>";
	for(var i=0;i<st_max;i++)
		s+="<FONT ID=st_gl"+i+"></FONT>";
	if(nIEW&&nVER>=5.0&&document.body)
		document.body.insertAdjacentHTML("AfterBegin",s);
	else
		document.write(s);
}st_js=1;}
function stm_bm(a)
{
	st_ms[st_cm]=
	{
		ps:[],
		mei:st_cm,
		ids:"Stm"+st_cm+"p",
		hdid:null,
		cked:0,
		tfrm:window,
		sfrm:window,
		mcff:"",
		mcfd:0,
		mcfx:0,
		mcfy:0,
		mnam:a[0],
		mver:a[1],
		mweb:a[2],
		mbnk:stbuf(a[2]+a[3]),
		mtyp:a[4],
		mcox:a[5],
		mcoy:a[6],
		maln:stHAL[a[7]],
		mcks:a[8],
		msdv:a[9],
		msdh:a[10],
		mhdd:nNN4?Math.max(100,a[11]):a[11],
		mhds:a[12],
		mhdo:a[13],
		mhdi:a[14],
		args:a.slice(0)
	};
}
function stm_bp(l,a)
{
	var op=st_cp;var oi=st_ci;st_cp=st_ms[st_cm].ps.length;st_ci=0;
	var m=st_ms[st_cm];
	m.ps[st_cp]=
	{
	is:[],
	mei:st_cm,
	ppi:st_cp,
	ids:"Stm"+st_cm+"p"+st_cp+"i",
	par:(st_cp?[st_cm,op,oi]:null),
	tmid:null,
	citi:-1,
	issh:0,
	isst:!st_cp&&m.mtyp==0,
	isck:!st_cp&&m.mcks,
	exed:0,
	pver:a[0],
	pdir:a[1],
	poffx:a[2],
	poffy:a[3],
	pspc:a[4],
	ppad:a[5],
	plmw:a[6],
	prmw:a[7],
	popc:a[8],
	pesh:a[9]?a[9]:"Normal",
	pesi:a[10],
	pehd:a[11]?a[11]:"Normal",
	pehi:a[12],
	pesp:a[13],
	pstp:a[14],
	psds:nIEW?a[15]:0,
	pscl:a[16],
	pbgc:a[17],
	pbgi:stbuf(stgsrc(a[18],m,0)),
	pbgr:stREP[a[19]],
	pbds:stBDS[a[20]],
	ipbw:a[21],
	pbdc:(!nDM||nNN4)?a[22].split(st_rsp)[0]:a[22],
	args:a.slice(0)
	};
	var p=m.ps[st_cp];
	if(st_cp)	stgpar(p).sub=[st_cm,st_cp];
	// Edited By Kam, 05/30/03: Make z-index a large value
	p.zind=!st_cp?99999999999:stgpar(stgpar(p)).zind+10;
	p.pbgd=stgbg(p.pbgc,p.pbgi,p.pbgr);
	if(nIEW&&nVER>=5.5)
	{
		p.efsh=p.pesh=="Normal"?"stnm":"stft";
		p.efhd=p.pehd=="Normal"?"stnm":"stft";
	}
	else if(nIEW&&(nVER>=5.0||nVER>=4.0&&!p.isst))
	{
		p.efsh=p.pesi>=0?"stft":"stnm";
		p.efhd=p.pehi>=0?"stft":"stnm";
	}
	else
		p.efsh=p.efhd="stnm";
	eval(l+"=p;");
}
function stm_bpx(l,r,a)
{
	var p=eval(r);
	stm_bp(l,a.concat(p.args.slice(a.length)));
}
function stm_ai(l,a)
{
	st_ci=st_ms[st_cm].ps[st_cp].is.length;
	var m=st_ms[st_cm];
	var p=m.ps[st_cp];
	if(a[0]==6)
		p.is[st_ci]=
		{
		ssiz:a[1],
		ibgc:[a[2]],
		simg:stbuf(stgsrc(a[3],m,1)),
		simw:a[4],
		simh:a[5],
		simb:a[6],
		args:a.slice(0)
		};
	else
		p.is[st_ci]=
		{
		itex:a[0]?a[1]:a[1].replace(new RegExp(" ","g"),nMAC?"&#160;":"&nbsp;"),
		iimg:[stbuf(stgsrc(a[2],m,0)),stbuf(stgsrc(a[3],m,0))],
		iimw:a[4],
		iimh:a[5],
		iimb:a[6],
		iurl:a[7],
		itgt:a[8],
		istt:a[9],
		itip:a[10],
		iicn:[stbuf(stgsrc(a[11],m,1)),stbuf(stgsrc(a[12],m,1))],
		iicw:a[13],
		iich:a[14],
		iicb:a[15],
		iarr:[stbuf(stgsrc(a[16],m,1)),stbuf(stgsrc(a[17],m,1))],
		iarw:a[18],
		iarh:a[19],
		iarb:a[20],
		ihal:stHAL[a[21]],
		ival:stVAL[a[22]],
		ibgc:nOP5&&nVER<7.0&&a[24]&&a[26]?["transparent","transparent"]:[nOP5&&nVER<7.0||!a[24]?a[23]:"transparent",nOP5&&nVER<7.0||!a[26]?a[25]:"transparent"],
		ibgi:[stbuf(stgsrc(a[27],m,0)),stbuf(stgsrc(a[28],m,0))],
		ibgr:[stREP[a[29]],stREP[a[30]]],
		ibds:stBDS[a[31]],
		ipbw:a[32],
		ibdc:(!nDM||nNN4)?[a[33].split(st_rsp)[0],a[34].split(st_rsp)[0]]:[a[33],a[34]],
		itxc:[a[35],a[36]],
		itxf:[a[37],a[38]],
		itxd:[stgdec(a[39]),stgdec(a[40])],
		args:a.slice(0)
		};
	var it=st_ms[st_cm].ps[st_cp].is[st_ci];
	it.ityp=a[0];
	it.mei=st_cm;
	it.ppi=st_cp;
	it.iti=st_ci;
	it.ids=p.ids+st_ci+"e";
	it.sub=null;
	it.tmid=null;
	if(it.ityp!=6)
		it.ibgd=[stgbg(it.ibgc[0],it.ibgi[0],it.ibgr[0]),stgbg(it.ibgc[1],it.ibgi[1],it.ibgr[1])];
	eval(l+"=it;");
}
function stm_aix(l,r,a)
{
	var i=eval(r);
	stm_ai(l,a.concat(i.args.slice(a.length)));
}
function stm_ep()
{
	var m=st_ms[st_cm];
	var p=m.ps[st_cp];
	var i=stgpar(p);
	if(i)
	{
		st_cm=i.mei;
		st_cp=i.ppi;
		st_ci=i.iti;
	}
	if(p.is.length==0)
	{
		m.ps.length--;
		if(i)
			i.sub=null;
	}
}
function stm_em()
{
	var m=st_ms[st_cm];
	if(m.ps.length==0)
	{
		st_ms.length--;
		return;
	}
	var mh="";
	var mc="<STYLE TYPE='text/css'>\n";
	var l=nDM?m.ps.length:1;
	for(var ppi=0;ppi<l;ppi++)
	{
		var p=m.ps[ppi];
		var ph=stpbtx(p);
		if(p.isst&&m.maln!="left")
			ph="<TABLE STYLE='border:none;padding:0px;' CELLPADDING=0 CELLSPACING=0 ALIGN="+m.maln+"><TD class=st_tdcss>"+ph;
		for(var iti=0;iti<p.is.length;iti++)
		{
			var i=p.is[iti];
			var ih="";
			ih+=p.pver ? "<TR ID="+i.ids+"TR>" : "";
			ih+=stittx(i);
			ih+=(p.pver ? "</TR>" : "");
			ph+=ih;
			if(i.ityp!=6)
			{
				mc+="."+i.ids+"TX0{"+sttcss(i,0)+"}\n";
				mc+="."+i.ids+"TX1{"+sttcss(i,1)+"}\n";
			}
		}
		ph+=stpetx(p);
		if(p.isst&&m.maln!="left")
			ph+="</TD></TABLE>";
		if(p.isst||nNN4||!nDM)
			mh+=ph;
		else
			st_ht+=ph;
	}
	mc+="</STYLE>";
	if(!nDM||nNN4)
		document.write(mc);
	if(mh)
		document.write(mh);
	if(nDM&&!(nIEM||(nIEW&&nVER<5.0)))
	{
		if(st_ht)
		{
			var o=stgobj('st_gl'+st_gc,'font');
			if(nNN6)
				o.innerHTML=st_ht;
			else if(nIE&&nVER>=5.0)
				o.insertAdjacentHTML("BeforeEnd",st_ht);
			else
				o.document.write(st_ht);
			st_gc++;
			st_ht='';
		}
		if(!nOP&&!nNN)
			stpre(m);
	}
	st_cm++;st_cp=0;st_ci=0;
}
function stpbtx(p)
{
	var s="";
	if(nNN4||!nDM)
	{
		s+=p.isst?"<ILAYER":"<LAYER";
		s+=" VISIBILITY=hide";
		s+=" ID="+p.ids;
		s+=" Z-INDEX="+p.zind;
		s+="><LAYER>";
		s+="<TABLE BORDER=0 CELLSPACING=0 CELLPADDING="+p.pspc;
		s+=" BACKGROUND='"+p.pbgi+"'";
		if (p.pbgc && p.pbgc != "" && p.pbgc != "transparent") {
			s+=" BGCOLOR="+(p.pbgi||p.pbgc=="transparent"?"''":p.pbgc);
		}
		s+=">";
	}
	else
	{
		var ds="position:"+stT2P[p.ppi?1:stgme(p).mtyp]+";";
		ds+="z-index:"+p.zind+";";
		ds+="visibility:hidden;";
		s+=st_ttb ? "<TABLE class=st_tbcss CELLPADDING=0 CELLSPACING=0" : "<DIV class=st_divcss";
		s+=stppev(p);
		s+=" ID="+p.ids;
		s+=" STYLE='";
		if(nIEM)
			s+="width:1px;";
		else if(nIE)
			s+="width:0px;";
		s+=stfcss(p);
		s+=ds;
		s+="'>";
		if(st_ttb)
			s+="<TD class=st_tdcss ID="+p.ids+"TTD>";
		s+="<TABLE class=st_tbcss CELLSPACING=0 CELLPADDING=0";
		s+=" ID="+p.ids+"TB";
		s+=" STYLE='";
		s+=stpcss(p);
		if(nIEW)
			s+="margin:"+p.psds+"px;";
		s+="'>";
	}
	return s;
}
function stpetx(p)
{
	var s="</TABLE>";
	if(nNN4||!nDM)
		s+="</LAYER></LAYER>";
	else if(st_ttb)
		s+="</TD></TABLE>";
	else
		s+="</DIV>";
	return s;
}
function stittx(i)
{
	var s="";
	var p=stgpar(i);
	if(nNN4||!nDM)
	{
		s+="<TD WIDTH=1 NOWRAP>";
		s+="<FONT STYLE='font-size:1pt;'>";
		s+="<ILAYER ID="+i.ids+"><LAYER";
		if(i.ipbw&&i.ityp!=6)
			s+=" BGCOLOR="+i.ibdc[0];
		s+=">";
		for(var l=0;l<(nNN4?2:1);l++)
		{
			if(i.ityp==6&&l)
				break;
			s+="<LAYER Z-INDEX=10 VISIBILITY="+(l?"HIDE":"SHOW");
			if(i.ityp!=6)
			{
				s+=" LEFT="+i.ipbw+" TOP="+i.ipbw;
			}
			s+=">";
			/*
				EDITED BY Kam Cheung
				PADDING of the table has been changed to be handled by css
			*/
			s+="<TABLE ALIGN=LEFT WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0 STYLE=\"padding: "+(i.ityp==6 ? 0 : p.ppad) + "px; \"";
			s+=" BACKGROUND='"+(i.ityp!=6?i.ibgi[l]:"")+"'";
			if (i.ibgc[l] && i.ibgc[l] != "" && i.ibgc[l] != "transparent") {
				s+=" BGCOLOR="+(i.ityp!=6&&i.ibgi[l]||i.ibgc[l]=="transparent"?"''":i.ibgc[l])
			}
			s+=">";
			if(i.ityp==6)
			{
				s+="<TD NOWRAP VALIGN=TOP"+
					" HEIGHT="+(p.pver ? i.ssiz : "100%")+
					" WIDTH="+(p.pver ? "100%" : i.ssiz)+
					" STYLE='font-size:0pt;'"+
					">";
				s+=stgimg(i.simg,i.ids+"LINE",i.simw,i.simh,0);
				s+="</TD>";
			}
			else
			{
				if(p.pver&&p.plmw||!p.pver&&i.iicw)
				{
					s+="<TD ALIGN=CENTER VALIGN=MIDDLE";
					s+=stgiws(i);
					s+=">";
					s+=stgimg(i.iicn[l],"",i.iicw,i.iich,i.iicb);
					s+="</TD>";
				}
				s+="<TD WIDTH=100% NOWRAP ALIGN="+i.ihal+" VALIGN="+i.ival+" style='text-align: " + i.ihal + ";vertical-align:" + i.ival + "'>";
				s+="<A "+stgurl(i)+" CLASS='"+(i.ids+"TX"+l)+"'>";
				if(i.ityp==2)
					s+=stgimg(i.iimg[l],i.ids+"IMG",i.iimw,i.iimh,i.iimb);
				else
				{
					s+="<IMG SRC=\""+stgme(i).mbnk+"\" WIDTH=1 HEIGHT=1 BORDER=0 ALIGN=ABSMIDDLE>";
					s+=i.itex;
				}
				s+="</A>";
				s+="</TD>";
				if(p.pver&&p.prmw||!p.pver&&i.iarw)
				{
					s+="<TD ALIGN=CENTER VALIGN=MIDDLE";
					s+=stgaws(i);
					s+=">";
					s+=stgimg(i.iarr[l],"",i.iarw,i.iarh,i.iarb);
					s+="</TD>";
				}
			}
			s+="</TABLE>";
			if(i.ipbw&&i.ityp!=6)
				s+="<BR CLEAR=ALL><SPACER HEIGHT=1 WIDTH="+i.ipbw+"></SPACER><SPACER WIDTH=1 HEIGHT="+i.ipbw+"></SPACER>";
			s+="</LAYER>";
		}
		if(i.ityp!=6)
			s+="<LAYER Z-INDEX=20></LAYER>";
		s+="</LAYER></ILAYER>"
		s+="</FONT>";
		s+="</TD>";
	}
	else
	{
		// IE will use this to render the menu item
		s+="<TD class=st_tdcss NOWRAP VALIGN="+(nIE ? "MIDDLE" : "TOP");
		s+=" STYLE='"
			s+="padding:"+p.pspc+"px;";
		s+="'";
		s+=" ID="+p.ids+i.iti;
		if(nIEW)
			s+=" HEIGHT=100%";
		s+=">";
		if(!nOP&&!nIE)
		{
			s+="<DIV class=st_divcss ID="+i.ids;
			s+=stitev(i);
			s+=" STYLE=\""+sticss(i,0);
			s+="\"";
			s+=">";
		}
		s+="<TABLE class=st_tbcss CELLSPACING=0 CELLPADDING=0";
		if(!nOP)
			s+=" HEIGHT=100%";
		s+=" STYLE=\"";
		if(nOP||nIE)
			s+=sticss(i,0);
		s+="\"";
		if(nOP||nIE)
			s+=stitev(i);
		if(p.pver||nIEM)
			s+=" WIDTH=100%";
		s+=" ID="+(nOP||nIE ? i.ids : (i.ids+"TB"));
		if(!nOP)
			s+=" TITLE="+stquo(i.ityp!=6 ? i.itip : "");
		s+=">";
		if(i.ityp==6)
		{
			s+="<TD class=st_tdcss NOWRAP VALIGN=TOP"+
				" ID="+i.ids+"MTD"+
				" HEIGHT="+(p.pver ? i.ssiz : "100%")+
				" WIDTH="+(p.pver ? "100%" : i.ssiz)+
				">";
			s+=stgimg(i.simg,i.ids+"LINE",i.simw,i.simh,0);
			s+="</TD>";
		}
		else
		{
			if(p.pver&&p.plmw||!p.pver&&i.iicw)
			{
				s+="<TD class=st_tdcss NOWRAP ALIGN=CENTER VALIGN=MIDDLE HEIGHT=100%";
				s+=" STYLE=\"padding:"+p.ppad+"; \"";
				s+=" ID="+i.ids+"LTD";
				s+=stgiws(i);
				s+=">";
				s+=stgimg(i.iicn[0],i.ids+"ICON",i.iicw,i.iich,i.iicb);
				s+="</TD>";
			}
			s+="<TD class=st_tdcss NOWRAP HEIGHT=100% STYLE=\"";
			s+="color:"+i.itxc[0]+";";
			s+="padding:"+p.ppad+";";
			s+="\"";
			s+=" ID="+i.ids+"MTD";
			s+=" ALIGN="+i.ihal;
			s+=" VALIGN="+i.ival+">";
			s+="<FONT class=st_ftcss ID="+i.ids+"TX STYLE=\""+sttcss(i,0)+"\">";
			if(i.ityp==2)
				s+=stgimg(i.iimg[0],i.ids+"IMG",i.iimw,i.iimh,i.iimb);
			else
				s+=i.itex;
			s+="</FONT>";
			s+="</TD>";
			if(p.pver&&p.prmw||!p.pver&&i.iarw)
			{
				s+="<TD class=st_tdcss NOWRAP ALIGN=CENTER VALIGN=MIDDLE HEIGHT=100%";
				s+=" STYLE=\"padding:"+p.ppad+"; \"";
				s+=" ID="+i.ids+"RTD";
				s+=stgaws(i);
				s+=">";
				s+=stgimg(i.iarr[0],i.ids+"ARROW",i.iarw,i.iarh,i.iarb);
				s+="</TD>";
			}
		}
		s+="</TABLE>";
		if(!nOP&&!nIE)
			s+="</DIV>";
		s+="</TD>";
	}
	return s;
}
function stpcss(p)
{
	var s="";
	s+="border-style:"+p.pbds+";";
	s+="border-width:"+p.ipbw+"px;";
	s+="border-color:"+p.pbdc+";";
	if(nIE)
		s+="background:"+p.pbgd+";";
	else
	{
		if (p.pbgc && p.pbgc != "" && p.pbgc != "transparent") {
			s+="background-color:"+(p.pbgc)+";";
		}
		if(p.pbgi)
		{
			s+="background-image:url("+p.pbgi+");";
			s+="background-repeat:"+p.pbgr+";";
		}
	}
	return s;
}
function stfcss(p)
{
	/*
		Edited By Kam Cheung
			if no filter is added, set s to an empty string
	*/
	if (p.pesh == "Normal" && p.pstp == 0) { return ""; }
	var s="";
	if(nIEW&&(nVER>=5.0||!p.isst))
	{
		var dx=nVER>=5.5?"progid:DXImageTransform.Microsoft." : "";
		s+="filter:";
		if(nVER>=5.5)
		{
			if(p.pesh!="Normal")
				s+=p.pesh+" ";
		}
		else
		{
			if(p.pesi<24&&p.pesi>=0)
				s+="revealTrans(Transition="+p.pesi+",Duration="+((110-p.pesp)/100)+") ";
		}
		/*
			Edited By Kam Cheung
				if effect and/or shadow are not used, do not set the opacity
		*/
		if (p.pesh != "Normal" || p.pehd != "Normal" || p.pstp != 0) {
			s+=dx+"Alpha(opacity="+p.popc+") ";
		}
		if(p.psds)
		{
			if(p.pstp==1)
				s+=dx+"dropshadow(color="+p.pscl+",offx="+p.psds+",offy="+p.psds+",positive=1) ";
			else
				s+=dx+"Shadow(color="+p.pscl+",direction=135,strength="+p.psds+") ";
		}
		if(nVER>=5.5)
		{
			if(p.pehd!="Normal")
				s+=p.pehd+" ";
		}
		else
		{
			if(p.pehi<24&&p.pehi>=0)
				s+="revealTrans(Transition="+p.pehi+",Duration="+((110-p.pesp)/100)+") ";
		}
		s+=";";
	}
	return s;
}
function sticss(i,n)
{
	var s="";
	if(i.ityp!=6)
	{
		s+="border-style:"+i.ibds+";";
		s+="border-width:"+i.ipbw+"px;";
		s+="border-color:"+i.ibdc[n]+";";
		if(!nIEM&&i.ibgi[n])
		{
			s+="background-image:url("+i.ibgi[n]+");";
			s+="background-repeat:"+i.ibgr[n]+";";
		}
	}
	if(nIEM&&i.ityp!=6) {
		s+="background:"+i.ibgd[n]+";";
	}
	else {
		if (i.ibgc[n] && i.ibgc[n] != "" && i.ibgc[n] != "transparent") {
			s+="background-color:"+i.ibgc[n]+";";
		}
	}
	s+="cursor:"+stgcur(i)+";";
	return s;
}
function sttcss(i,n)
{
	var s="";
	s+="cursor:"+stgcur(i)+";";
	s+="font:"+i.itxf[n]+";";
	s+="text-decoration:"+i.itxd[n]+";";
	if(!nDM||nNN4)
		s+="background-color:transparent;color:"+i.itxc[n];
	return s;
}
function stitov(e,o,i)
{
	if(nIEW)
	{
		if(!i.layer)
			i.layer=o;
		if(!stgpar(i).issh||(e.fromElement&&o.contains(e.fromElement)))
			return;
	}
	else
	{
		if(!stgpar(i).issh||(!nNN&&(e.fromElement&&e.fromElement.id&&e.fromElement.id.indexOf(i.ids)>=0)))
			return;
	}
	if(nNN4)
		stglay(i).document.layers[0].captureEvents(Event.CLICK);
	var m=stgme(i);
	if(!i.ppi&&m.mcff)
	stfrm(m);
	var w=m.sfrm;
	if(w!=window)
		m=w.stmenu(m.mnam);
	if(m.hdid)
	{
		w.clearTimeout(m.hdid);
		m.hdid=null;
	}
	var cii=stgpar(i).citi;
	var ci=null;
	if(cii>=0)
		ci=stgpar(i).is[cii];
	var p=stgpar(i);
	if(!p.isck||stgme(i).cked)
	{
		if(p.citi!=i.iti)
		{
			if(p.citi>=0)
			{
			sthdit(p.is[p.citi]);
				p.citi=-1;
			}
		stshit(i);
		p.citi=i.iti;
	}
		else
		{
			var p=stgtsub(i);
			if(p&&!p.issh)
				stshit(i);
		}
	}
	if(i.istt)
		window.status=i.istt;
}
function stitou(e,o,i)
{
	if(nIEW)
	{
		if(!stgpar(i).issh||e.toElement&&o.contains(e.toElement))
			return;
	}
	else
	{
		if(!stgpar(i).issh||(!nNN&&(e.toElement&&e.toElement.id&&e.toElement.id.indexOf(i.ids)>=0)))
			return;
	}
	if(nNN4)
		stglay(i).document.layers[0].releaseEvents(Event.CLICK);
	var p=stgtsub(i);
	if(!p||!p.issh)
	{
		stshst(i,0);
		stgpar(i).citi=-1;
	}
	else if(p&&p.issh&&!p.exed)
		sthdit(i);
	window.status="";
}
function stitck(e,o,i)
{
	if(e.button&&e.button>=2)
		return;
	var m=stgme(i);
	var p=stgpar(i);
	if(p.isck)
	{
		m.cked=!m.cked;
		if(m.cked)
		{
			stshit(i);
			p.citi=i.iti;
		}
		else
		{
			sthdit(i);
			p.citi=-1;
		}
	}
	if(!nNN4&&!(p.isck&&stgsub(i))&&i.iurl)
	{
		if(i.iurl.toLowerCase().indexOf("javascript:")==0)
			eval(i.iurl.substring(11,i.iurl.length));
		else if(i.itgt=="_self")
			window.location.href=i.iurl;
		else if(i.itgt=="_parent")
			window.parent.location.href=i.iurl;
		else if(i.itgt=="_top")
			window.top.location.href=i.iurl;
		else
		{
			for(var co=window;co!=co.parent;co=co.parent)
			{
				if(typeof(co.parent.frames[i.itgt])!="undefined")
				{
					co.parent.frames[i.itgt].location.href=i.iurl;
					return;
				}
			}
			window.open(i.iurl,i.itgt);
		}
	}
}
function stppov(e,o,p)
{
	if(nIEW)
	{
		if(!p.layer)
			p.layer=o;
		if(!p.issh||(e.fromElement&&o.contains(e.fromElement)))
			return;
	}
	else
	{
		if(!p.issh||(!nNN&&(e.fromElement&&e.fromElement.id&&e.fromElement.id.indexOf(p.ids)>=0)))
			return;
	}
	var m=stgme(p);
	var w=m.sfrm;
	if(w!=window)
		m=w.stmenu(m.mnam);
	if(m.hdid)
	{
		w.clearTimeout(m.hdid);
		m.hdid=null;
	}
}
function stppou(e,o,p)
{
	if(nIEW)
	{
		if(!p.issh||(e.toElement&&o.contains(e.toElement)))
			return;
	}
	else
	{
		if(!p.issh||(!nNN&&(e.toElement&&e.toElement.id&&e.toElement.id.indexOf(p.ids)>=0)))
			return;
	}
	var m=stgme(p);
	var w=m.sfrm;
	if(w!=window)
		m=w.stmenu(m.mnam);
	if(m.hdid)
		w.clearTimeout(m.hdid);
	m.hdid=w.setTimeout("sthdall(st_ms['"+m.mei+"'],0);",m.mhdd);
}
function stshst(i,n)
{
	if(nNN4)
	{
		var ls=stgstlay(i);
		ls[n].parentLayer.bgColor=i.ibdc[n];
		ls[n].visibility="show";
		ls[1-n].visibility="hide";
	}
	else
	{
		var os=stglay(i).style;
		if(nIEM)
		{
			if(i.ibgd[0]!=i.ibgd[1])	os.background=i.ibgd[n];
		}
		else
		{
			if(i.ibgc[0]!=i.ibgc[1])
			{
				if(nOP&&nVER<6)
					os.background=i.ibgc[n];
				else
					os.backgroundColor=i.ibgc[n];
			}
			if(i.ibgi[0]!=i.ibgi[1])	os.backgroundImage="url("+(i.ibgi[n]?i.ibgi[n]:stgme(i).mbnk)+")";
			if(i.ibgr[0]!=i.ibgr[1])	os.backgroundRepeat=i.ibgr[n];
		}
		if(i.ibdc[0]!=i.ibdc[1])	os.borderColor=i.ibdc[n];
		var t;
		if(i.iicn[0]!=i.iicn[1])
		{
			t=stgobj(i.ids+'ICON','IMG');
			if(t)	t.src=i.iicn[n];
		}
		if(i.iarr[0]!=i.iarr[1])
		{
			t=stgobj(i.ids+'ARROW','IMG');
			if(t)	t.src=i.iarr[n];
		}
		if(i.ityp==2&&i.iimg[0]!=i.iimg[1])
		{
			t=stgobj(i.ids+'IMG','IMG');
			if(t)	t.src=i.iimg[n];
		}
		if (!i.txstyle)	i.txstyle=stgobj(i.ids+"TX",'FONT').style;
		t=i.txstyle;
		if(i.itxf[0]!=i.itxf[1])
			t.font=i.itxf[n];
		if(i.itxd[0]!=i.itxd[1])
			t.textDecoration=i.itxd[n];
		if(nOP)	stgobj(i.ids+'MTD','td').style.color=i.itxc[n];
		else	t.color=i.itxc[n];
	}
}
function stshpp(p)
{
	stshow(p);
}
function sthdpp(p)
{
	if(p.citi>=0)
	{
		var t=stgsub(p.is[p.citi]);
		if(t&&t.issh)
			sthdpp(t);
		stshst(p.is[p.citi],0);
		p.citi=-1;
	}
	sthide(p);
}
function stshit(i)
{
	var w=stgme(i).tfrm;
	var p=stgtsub(i);
	if(p&&!p.issh)
		w.stshpp(p);
	stshst(i,1);
}
function sthdit(i)
{
	var w=stgme(i).tfrm;
	var p=stgtsub(i);
	if(p&&p.issh)
		w.sthdpp(p);
	stshst(i,0);
}
function stshow(p)
{
	var d=p.ppi&&stgpar(stgpar(p)).pver ? stgme(p).msdv : stgme(p).msdh;
	p.exed=0;
	if(!p.rc)
		stgxy(p);
	if(p.tmid)
	{
		clearTimeout(p.tmid);
		p.tmid=null;
		stwels(1,p)
	}
	if(d>0)
		p.tmid=setTimeout(stsdstr(p,1),d);
	p.issh=1;
	if(d<=0)
		eval(stsdstr(p,1));
}
function sthide(p)
{
	if(p.tmid)
	{
		clearTimeout(p.tmid);
		p.tmid=null;
	}
	if(p.issh&&!p.exed)
	{
		p.exed=0;
		p.issh=0;
	}
	else
	{
		p.exed=0;
		p.issh=0;
		eval(stsdstr(p,0));
	}
}
function stshx(p)
{
	var ly=stglay(p);
	if(nNN4)
	{
		ly.visibility='show';
		if(!p.fixed)
		{
			ly.resizeBy(p.ipbw*2,p.ipbw*2);
			ly=ly.document.layers[0];
			ly.moveTo(p.ipbw,p.ipbw);
			ly.onmouseover=stppovn;
			ly.onmouseout=stppoun;
			for(var l=p.is.length-1;l>=0;l--)
			{
				var i=p.is[l];
				if(i.ityp!=6)
				{
					var ls=stgstlay(i);
					ls[2].resizeTo(ls[0].parentLayer.clip.width,ls[0].parentLayer.clip.height);
					if(stgcur(i)=="hand")
					{
						with(ls[2].document)
						{
							open();
							write("<A "+stgurl(i)+"\"><IMG BORDER=0 SRC='"+stgme(i).mbnk+"' WIDTH="+ls[2].clip.width+" HEIGHT="+ls[2].clip.height+"></A>");
							close();
						}
					}
					ls[0].resizeBy(-i.ipbw,-i.ipbw);
					ls[1].resizeBy(-i.ipbw,-i.ipbw);
					ly=stglay(i).document.layers[0];
					ly.onmouseover=stitovn;
					ly.onmouseout=stitoun;
					ly.onclick=stitckn;
				}
			}
			if(p.ipbw)
				setTimeout("var pp=st_ms["+p.mei+"].ps["+p.ppi+"];stglay(pp).bgColor=pp.pbdc;",1);
			p.fixed=1;
		}
	}
	else
	{
		ly.style.visibility='visible';
		if(nIE5 && cVer != "MSIE5") {
			ly.filters['Alpha'].opacity=p.popc;
			// do not do it to IE 5
		}
	}
}
function sthdx(p)
{
	var ly=stglay(p);
	if(nNN4)
		ly.visibility='hide';
	else
	{
		if(nIE5 && cVer != "MSIE5")
			ly.filters['Alpha'].opacity=0;
		ly.style.visibility='hidden';
	}
}
function sthdall(m,f)
{
	var w=m.sfrm;
	var s=w==window?m:w.stmenu(m.mnam);
	s.cked=0;
	var p=s.ps[0];
	if(p.issh)
	{
		if(p.citi>=0)
		{
			w.sthdit(p.is[p.citi]);
			p.citi=-1;
		}
		if(s.mtyp==2&&f)
			w.sthide(p);
	}
	s.hdid=null;
}
function stnmsh(p)
{
	stmvto(stgxy(p),p);
	stwels(-1,p);
	stshx(p);
}
function stnmhd(p)
{
	sthdx(p);
	stwels(1,p);
}
function stftsh(p)
{
	if(nVER<5.5)
		stshfx(p);
	else if(st_reg)
		eval("try{stshfx(p);} catch(er){st_reg=0;stnmsh(p);}");
	else
		stnmsh(p);
}
function stfthd(p)
{
	if(nVER<5.5)
		sthdfx(p);
	else if(st_reg)
		eval("try{sthdfx(p);}catch(er){st_reg=0;stnmhd(p);}");
	else
		stnmhd(p);
}
function stshfx(p)
{
	var t=stglay(p).filters[0];
	if(nVER>=5.5)
		t.enabled=1;
	if(t.Status!=0)
		t.stop();
	stmvto(stgxy(p),p);
	stwels(-1,p);
	t.apply();
	stshx(p);
	t.play();
}
function sthdfx(p)
{
	var t=stglay(p).filters[stglay(p).filters.length-1];
	if(nVER>=5.5)
		t.enabled=1;
	if(t.Status!=0)
		t.stop();
	t.apply();
	sthdx(p);
	stwels(1,p);
	t.play();
}
function ststxy(m,xy)
{
	m.mcox=xy[0];
	m.mcoy=xy[1];
}
function stnav()
{
	var v=navigator.appVersion;
	var a=navigator.userAgent;
	nMAC=v.indexOf("Mac")>=0;
	nOP=a.indexOf("Opera")>=0;
	if(nOP)
	{
		nVER=parseFloat(a.substring(a.indexOf("Opera ")+6,a.length));
		nOP5=nVER>=5.12&&!nMAC&&a.indexOf("MSIE 5.0")>=0;
		if(nVER>=7)	nOP5=1;
	}
	else
	{
		nIE=document.all ? 1 : 0;
		if(nIE)
		{
			nIE4=(eval(v.substring(0,1)>=4));
			nVER=parseFloat(a.substring(a.indexOf("MSIE ")+5,a.length));
			nIE5=nVER>=5.0&&nVER<5.5&&!nMAC;
			nIEM=nIE4&&nMAC;
			nIEW=nIE4&&!nMAC;
		}
		else
		{
			nNN4=navigator.appName.toLowerCase()=="netscape"&&v.substring(0,1)=="4" ? 1 : 0;
			if(!nNN4)
			{
				nNN6=(document.getElementsByTagName("*") && a.indexOf("Gecko")!=-1);
				if(nNN6)
				{
					nVER=parseInt(navigator.productSub);
					if(a.indexOf("Netscape")>=0)
					{
						st_delb=nVER<20001108+1;
						st_addb=nVER>20020512-1;
					}
					else
					{
						st_delb=nVER<20010628+1;
						st_addb=nVER>20011221-1;
					}
				}
			}
			else
				nVER=parseFloat(v);
			nNN=nNN4||nNN6;
		}
	}
	nDM=nOP5||nIE4||nNN;
}
function stckpg()
{
	var w=st_cw;
	var h=st_ch;
	var l=st_cl;
	var t=st_ct;
	st_cw=stgcw();
	st_ch=stgch();
	st_cl=stgcl();
	st_ct=stgct();
	if(((nOP&&nVER<7.0)||nNN4)&&(st_cw-w||st_ch-h))
		document.location.reload();
	else if(st_cl-l||st_ct-t)
		stscr();
}
function st_onload()
{
	if(nIEM||nOP5||nNN||(nIEW&&nVER<5.0))
	{
		if(st_ht)
			document.body.insertAdjacentHTML('BeforeEnd',st_ht);
		for(i=0;i<st_ms.length;i++)
			stpre(st_ms[i]);
	}
	st_load=1;
	if(!nNN4)
	{
		for(var i=0;i<st_ms.length;i++)
		{
			var m=st_ms[i];
			for(var j=0;j<m.ps.length;j++)
			{
				var p=m.ps[j];
				if(p.issh&&p.exed)
					stwels(-1,p);
			}
		}
	}
}
function stpre(m)
{
	var p=m.ps[m.ps.length-1];
	var i=p.is[p.is.length-1];
	while(1)
		if(stglay(i)) break;
	if(!nNN4)
		stfix(m);
	if(m.mtyp!=2)
		stshow(m.ps[0]);
	if(nIE||nNN6)
		window.onscroll=new Function("if(st_scr)clearTimeout(st_scr);st_scr=setTimeout('stscr();',nIEM ?500:0);");
	else if(!st_rl)
	{
		st_cw=stgcw();
		st_ch=stgch();
		st_cl=stgcl();
		st_ct=stgct();
		st_rl=setInterval("stckpg();",500);
	}
	m.ready=1;
}
function stfix(m)
{
	for(var l=0;l<m.ps.length;l++)
	{
		var p=m.ps[l];
		if(nOP&&nVER<6.0)
			stglay(p).style.pixelWidth=parseInt(stgobj(p.ids+"TB",'table').style.pixelWidth);
		if(nIE5)
			stglay(p).style.width=stglay(p).offsetWidth;
		else if(nIEM||!nIE)
		{
			if(!p.pver)
			{
				var ii=0;
				var fi=stgobj(p.ids+ii);
				var h=parseInt(nOP ? fi.style.pixelHeight : fi.offsetHeight);
				if(h)
				{
					for(ii=0;ii<p.is.length;ii++)
					{
						var i=p.is[ii];
						var lys=stglay(i).style;
						var th=h-2*p.pspc;
						if(nOP)
							lys.pixelHeight=th;
						else if(i.ityp==6||nIE)
							lys.height=th+'px';
						else
							lys.height=th-2*i.ipbw+'px';
						if(nIEM)
						{
							var fh=h-2*p.pspc;
							var lt=stgobj(i.ids+"LTD");
							var rt=stgobj(i.ids+"RTD");
							if(lt)
								lt.style.height=fh+'px';
							stgobj(i.ids+"MTD").style.height=fh+'px';
							if(rt)
								rt.style.height=fh+'px';
						}
					}
				}
			}
			else if(nOP)
			{
				for(var ii=0;ii<p.is.length;ii++)
				{
					var i=p.is[ii];
					if(i.ityp!=6)
					{
						var fi=stgobj(p.ids+ii);
						var it=stglay(i);
						var w=parseInt(fi.style.pixelWidth);
						var h=parseInt(it.style.pixelHeight);
						if(w)
							it.style.pixelWidth=w-2*p.pspc;
						if(h)
							it.style.pixelHeight=h;
					}
				}
			}
		}
	}
}
function stscr()
{
	for(var l=0;l<st_ms.length;l++)
	{
		var m=st_ms[l];
		if(m)
		{
		sthdall(m,0);
		if(m.mtyp==1)
		{
			var p=m.ps[0];
			stwels(1,p);
			stmvto(stgxy(m.ps[0]),p);
			stwels(-1,p);
		}
	}
}
}
function stwels(c,p)
{
	var m=stgme(p);
	if(!st_load||nNN4||nOP||p.isst)	return;
	if(m.mhds&&!nNN6)	stwtag("SELECT",c,p);
	if(m.mhdo)	stwtag("OBJECT",c,p);
	if(m.mhdi&&!nNN6&&!(nIEW&&nVER>=5.5))	stwtag("IFRAME",c,p);
}
function stwtag(tg,c,o)
{
	var es=nNN6 ? document.getElementsByTagName(tg) : document.all.tags(tg);
	var l;
	for(l=0;l<es.length;l++)
	{
		var e=es.item(l);
		var f=0;
		for(var t=e.offsetParent;t;t=t.offsetParent)
			if(t.id&&t.id.indexOf("Stm")>=0)
				f=1;
		if(f)
			continue;
		else if(stwover(e,o))
		{
			if(e.visLevel)
				e.visLevel+=c;
			else
				e.visLevel=c;
			if(e.visLevel==-1)
			{
				if(typeof(e.visSave)=='undefined')
					e.visSave=e.style.visibility;
				e.style.visibility="hidden";
			}
			else if(e.visLevel==0)
				e.style.visibility=e.visSave;
		}
	}
}
function stmvto(xy,p)
{
	if(xy&&(p.ppi||stgme(p).mtyp!=0))
	{
		var l=stglay(p);
		if(nNN4)
			l.moveToAbsolute(xy[0],xy[1]);
		else if(nOP)
		{
			var ls=l.style;
			ls.pixelLeft=xy[0];
			ls.pixelTop=xy[1];
		}
		else
		{
			var ls=l.style;
			ls.left=xy[0]+'px';
			ls.top=xy[1]+'px';
		}
		p.rc=[xy[0],xy[1],p.rc[2],p.rc[3]];
	}
}
function stsdstr(p,iss)
{
	return	"var pp=st_ms["+p.mei+"].ps["+p.ppi+"];pp.tmid=null;"+(iss? p.efsh+"sh(" : p.efhd+"hd(")+"pp);pp.exed=1;"
}
function stwover(e,o)
{
	var l=0;
	var t=0;
	var w=e.offsetWidth;
	var h=e.offsetHeight;
	if(w)
		e._wd=w;
	else
		w=e._wd;
	if(h)
		e._ht=h;
	else
		h=e._ht;
	while(e)
	{
		l+=e.offsetLeft;
		t+=e.offsetTop;
		e=e.offsetParent;
	}
	return ((l<o.rc[2]+o.rc[0]) && (l+w>o.rc[0]) && (t<o.rc[3]+o.rc[1]) && (t+h>o.rc[1]));
}
function stevfn(pr,isi)
{
	var s=isi ? 'st_ri' : 'st_rp';
	s+='.exec(this.parentLayer.id);mei=RegExp.$1;ppi=parseInt(RegExp.$2);';
	if(isi)	s+='iti=parseInt(RegExp.$3);return '+pr+'(e,this,st_ms[mei].ps[ppi].is[iti]);';
	else	s+='return '+pr+'(e,this,st_ms[mei].ps[ppi]);';
	return new Function('e',s);
}
function stppev(p)
{
	var s=" onMouseOver='stppov(event,this,st_ms["+p.mei+"].ps["+p.ppi+"]);'";
	s+=" onMouseOut='stppou(event,this,st_ms["+p.mei+"].ps["+p.ppi+"]);'";
	return s;
}
function stitev(i)
{
	if(i.ityp==6)	return '';
	var s=" onMouseOver='stitov(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
	s+=" onMouseOut='stitou(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
	s+=" onClick='stitck(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
	return s;
}
function stquo(n)
{
	return "\""+n+"\"";
}
function stgurl(i)
{
	return " HREF=" + stquo(i.iurl=="" ? "#" : i.iurl.replace(new RegExp("\"","g"),"&quot;")) + " TARGET=" + stquo(i.iurl==""||i.iurl.toLowerCase().indexOf('javascript:')==0 ? "_self" : i.itgt);
}
function stgdec(v)
{
	if(v)
	{
		var s='';
		if(v&1)
			s+='underline ';
		if(v&2)
			s+='line-through ';
		if(v&4)
			s+='overline';
		return s;
	}
	else
		return 'none';
}
function stgimg(src,id,w,h,b)
{
	var s='<IMG SRC=';
	s+=stquo(src);
	if(id)
		s+=' ID='+id;
	if(w>0)
		s+=' WIDTH='+w;
	else if(nNN)
		s+=' WIDTH=0';
	if(h>0)
		s+=' HEIGHT='+h;
	else if(nNN)
		s+=' HEIGHT=0';
	s+=' BORDER='+b+'>';
	return s;
}
function stgbg(c,im,r)
{
	var s=c;
	if(im)
		s+=" url("+im+") "+r;
	return s;
}
function stgcur(i)
{
	if(nNN6)
		return "default";
	return i.ityp!=6&&((i.ppi==0&&stgme(i).mcks&&stgsub(i))||i.iurl) ? "hand" : "default";
}
function stgiws(o)
{
	if(stgpar(o).pver)
		return stgpar(o).plmw>0 ? " WIDTH="+(stgpar(o).plmw+2) : "";
	else
		return o.iicw>0 ? " WIDTH="+(o.iicw+2) : "";
}
function stgaws(o)
{
	if(stgpar(o).pver)
		return stgpar(o).prmw>0 ? " WIDTH="+(stgpar(o).prmw+2) : "";
	else
		return o.iarw>0 ? " WIDTH="+(o.iarw+2) : "";
}
function stgme(ip)
{
	return st_ms[ip.mei];
}
function stgpar(ip)
{
	if(typeof(ip.iti)!="undefined")
		return st_ms[ip.mei].ps[ip.ppi];
	else
		return !ip.par ? null : st_ms[ip.par[0]].ps[ip.par[1]].is[ip.par[2]];
}
function stgsub(i)
{
	return !i.sub ? null : st_ms[i.sub[0]].ps[i.sub[1]];
}
function stgcl()
{
	return parseInt(nNN||nOP ? window.pageXOffset : document.body.scrollLeft);
}
function stgct()
{
	return parseInt(nNN||nOP ? window.pageYOffset : document.body.scrollTop);
}
function stgcw()
{
	return parseInt(nNN||nOP ? window.innerWidth : (nIEW&&document.compatMode=="CSS1Compat" ? document.documentElement.clientWidth : document.body.clientWidth));
}
function stgch()
{
	return parseInt(nNN||nOP ? window.innerHeight : (nIEW&&document.compatMode=="CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight));
}
function stgobj(id,t)
{
	if(nNN6)
		return document.getElementById(id);
	else if(nNN4)
		return document.layers[id];
	else
		return t ? document.all.tags(t)[id] : document.all[id];
}
function stglay(ip)
{
	if(!ip.layer)
	{
		if(typeof(ip.iti)=='undefined')
			ip.layer=stgobj(ip.ids,st_ttb ? 'table' : 'div');
		else
			ip.layer=nNN4 ? stglay(stgpar(ip)).document.layers[0].document.layers[ip.ids] : stgobj(ip.ids,nIEW ? 'table' : null);
	}
	return ip.layer;
}
function stgstlay(i)
{
	return stglay(i).document.layers[0].document.layers;
}
function stgrc(ip)
{
	if(nNN4)
	{
		var ly=stglay(ip);
		return [ly.pageX,ly.pageY,ly.clip.width,ly.clip.height];
	}
	else
	{
		var l=0,t=0;
		var ly=stglay(ip);
		var w=typeof(ip.rc)=="undefined"?parseInt(nOP&&nVER<7?ly.style.pixelWidth:ly.offsetWidth):ip.rc[2];
		var h=typeof(ip.rc)=="undefined"?parseInt(nOP&&nVER<7?ly.style.pixelHeight:ly.offsetHeight):ip.rc[3];
		while(ly)
		{
			l+=parseInt(ly.offsetLeft);
			t+=parseInt(ly.offsetTop);
			ly=ly.offsetParent;
		}
		if(nIEM)
		{
			l+=parseInt(document.body.leftMargin);
			l-=ip.ipbw;
			t-=ip.ipbw;
		}
		if(typeof(ip.iti)!='undefined')
		{
			if(st_delb)
			{
				l-=ip.ipbw;
				t-=ip.ipbw;
			}
			if(st_addb)
			{
				l+=stgpar(ip).ipbw;
				t+=stgpar(ip).ipbw;
			}
		}
		return [l,t,w,h];
	}
}
function stgxy(p)
{
	var x=p.poffx;
	var y=p.poffy;
	var sr=stgrc(p);
	p.rc=sr;
	if(p.ppi==0)
	{
		if(stgme(p).mtyp==2)
			return [stgme(p).mcox,stgme(p).mcoy];
		else if(stgme(p).mtyp==1)
			return [eval(stgme(p).mcox),eval(stgme(p).mcoy)];
		else
			return [sr[0],sr[1]];
	}
	var ir=stgirc(stgpar(p));
	var cl=stgcl();
	var ct=stgct();
	var cr=cl+stgcw();
	var cb=ct+stgch();
	if(p.pdir==1)
		x=p.poffx+ir[0]-sr[2]+p.psds;
	else if(p.pdir==2)
		x=p.poffx+ir[0]+ir[2]-p.psds;
	else
		x=p.poffx+ir[0]-p.psds;
	if(x+sr[2]>cr)
		x=cr-sr[2];
	if(x<cl)
		x=cl;
	if(p.pdir==3)
		y=p.poffy+ir[1]-sr[3]+p.psds;
	else if(p.pdir==4)
		y=p.poffy+ir[1]+ir[3]-p.psds;
	else
		y=p.poffy+ir[1]-p.psds;
	if(y+sr[3]>cb)
		y=cb-sr[3];
	if(y<ct)
		y=ct;
	return [x,y];
}
function stbuf(s)
{
	if(s)
	{
		var i=new Image();
		st_ims[st_ims.length]=i;
		i.src=s;
	}
	return s;
}
function stgsrc(s,m,f)
{
	if(s=='')
		return f ? m.mbnk : '';
	var sr=s.toLowerCase();
	if(sr.indexOf('http://')==0||(sr.indexOf(':')==1&&sr.charCodeAt(0)>96&&sr.charCodeAt(0)<123)||sr.indexOf('ftp://')==0||sr.indexOf('/')==0||sr.indexOf('gopher')==0)
		return s;
	else
		return m.mweb+s;
}
function showFloatMenuAt(n,x,y)
{
	if(nDM)
	{
		var m=stmenu(n);
		if(m&&typeof(m.ready)!="undefined"&&m.mtyp==2&&m.ps.length&&!m.ps[0].issh)
		{
			ststxy(m,[x,y]);
			stshow(m.ps[0]);
		}
	}
}
function hideMenu(n)
{
	var m=stmenu(n);
	var w=m.sfrm;
	if(w!=window)
		m=w.stmenu(n);
	if(m.hdid)
	{
		w.clearTimeout(m.hdid);
		m.hdid=null;
	}
	w.sthdall(m,1);
}
function stmenu(n)
{
	for(var l=st_ms.length-1;l>=0;l--)
		if(st_ms[l].mnam==n)
			return st_ms[l];
	return null;
}
function stgtsub(i)
{
	var m=stgme(i);
		var w=m.tfrm;
		if(i.ppi||w==window)
			return stgsub(i);
			m=w.stmenu(m.mnam);
			return w.stgsub(m.ps[i.ppi].is[i.iti]);
		}
function stgirc(i)
{
	var m=stgme(i);
	var w=m.sfrm;
	if(i.ppi||w==window)
		return stgrc(i);
	m=w.stmenu(m.mnam);
	var rc=w.stgrc(m.ps[0].is[i.iti]);
	var x=rc[0]-w.stgcl();
	var y=rc[1]-w.stgct();
	switch(m.mcfd)
	{
		case 0:y-=w.stgch();break;
		case 1:y+=stgch();break;
		case 2:x-=w.stgcw();break;
		case 3:x+=stgcw();break;
	}
	x+=stgcl()+m.mcfx;
	y+=stgct()+m.mcfy;
	return [x,y,rc[2],rc[3]];
}
function stfrm(m)
{
	var a=m.mcff.split(".");
	var w="top";
	for(var l=0;l<a.length-1;l++)
		if(typeof(eval(w+"."+a[l]))=="undefined")
			return 0;
	w=eval("top."+m.mcff);
	if(typeof(w.st_load)!="undefined"&&w.st_load)
		{
			var t=w.stmenu(m.mnam);
		if(typeof(t)=="object")
			{
			if(w!=window)
				{
					if(t.mhdd<1000)
						m.mhdd=t.mhdd=1000;
					hideMenu(m.mnam);
					m.sfrm=t.sfrm=window;
					m.tfrm=t.tfrm=w;
				}
			m.mcff="";
			return 1;
			}
		}
	return 0;
}
