			// Startup functions
			ie4 = (document.all)? true:false;			
			ns4 = (document.layers)? true:false;
			browser = navigator.userAgent;
			rewrite = ((browser.indexOf("4.0") == -1) && ns4)? true:false;
			
			var thisWidth = "100%";
			if (ns4) thisWidth = window.innerWidth;
			
			if ((browser.indexOf("U;") >=0) && ns4 && (browser.indexOf("Macintosh") == -1)) ns4 = false;
			if (!(ie4||ns4)) {
				MB.Background="#999999";
				MB.Highlight="#cccccc";
				MB.Border="#000000"
			}
			function reDo(){window.location.reload()}
			if (ns4 && rewrite) {window.onresize = reDo;}
			function Promo(button,url,left) {
				this.button = button;
				this.url = url;
				this.dropleft = left;
			}
			function hideAll() {
				for(x=1; x<MB.length; x++) {
					if (ie4) {
						button = eval("MB" + x);
						button.style.backgroundColor = MB.Background;
						target = eval("Promo" + x); 
						target.style.visibility = "hidden";
					} else if (ns4) {
						button = "MB" + x;
						document.layers[button].bgColor = MB.Background;
						target = "Promo" + x;
						document.layers[target].visibility = "hide";
					}
				}
			}
			function showPromo(target) {
				if (ie4) target.style.visibility = "visible";
				else if(ns4)document.layers[target].visibility = "show";
			}
			function magicBar() {
				navbar = '';
				if (ie4 || ns4) navbar += '<div style="position : absolute; left : 0px; top : 0px;"><table width="' + thisWidth + '" height="31" bgcolor="' + MB.Background + '" border="0" cellpadding="0" cellspacing="0"><tr><td>&nbsp;</td></tr></table></div>\n\n';
				if (ns4) navbar += '<layer width="100%" left="0" top="0" width="' + thisWidth + '" height="30" bgcolor="' + MB.Background + '" onmouseout="hideAll();"></layer>\n\n';
				if (!(ns4 || ie4)) navbar = '<table cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="' + MB.Border + '"><table cellpadding="3" cellspacing="1" border="0" bgcolor="' + MB.Background + '"><tr>\n';
				if (ie4) navbar += '<div id="MBleft" style="height : 28px; position : absolute; left : 0; top : 0; z-index : 5; border : 1px ' + MB.Border + ' solid; background : ' + MB.Highlight + '"><img src="' + MB.SiteDomain + '/magic/magicbar_left.gif" width="25" height="25" border="0" alt="" vspace="2"></div>\n';
				if (ns4) navbar +='<layer z-index="2" width="23" height="22" left="0" top="0" bgcolor="' + MB.Highlight + '" style="border-width : 1px; border-color : ' + MB.Border + ';"><img src="' + MB.SiteDomain + '/magic/magicbar_left.gif" width="22" height="22" border="0" alt="" vspace="0"></layer>\n\n';
				for (b=1; b<MB.length; b++) {
					AdCode='';
					if (MB[b].BarAdID != '') AdCode='http://x.ibsys.com/event.ng/Type=click&AdID=' + MB[b].BarAdID + '&Redirect=';
					pxleft = (((b-1) * 110)+23);
					if (ie4) navbar += '<div id="MB' + b + '" style="background : ' + MB.Background + '; width : 110px; height : 30px; position : absolute; left : ' + pxleft + '; top : 0; z-index : 10; border : 1px ' + MB.Border + ' solid;" onmouseover=" hideAll(); showPromo(Promo'  + b + '); this.style.backgroundColor=\'' + MB.Highlight + '\'; active=' + b + ';" onmouseout="hideAll();"><a href="' + AdCode + MB[b].url + '" style="text-align : center; margin : 0px; width : 110px; font : bold 11px/25px Verdana; text-decoration : none; color : ' + MB.ButtonColor + '; padding : 2px; background : transparent; border-bottom : 0px black solid;">' + MB[b].button + '</a></div>\n\n';
					else if (ns4) navbar +='<layer z-index="2" height="30" width="110" bgcolor="' + MB.Background + '" left="' + pxleft + '" top="0" name="MB' + b + '" onmouseover=" hideAll(); bgColor=\'' + MB.Highlight + '\'; showPromo(\'Promo' + b + '\');" onmouseout=""><layer name="" style="width : 110px; height : 30px; border : 1px ' + MB.Border + ' solid; font : normal 10px/10px Verdana;"><img src="' + MB.SiteDomain + '/sh/images/structures/misc/spacer.gif" width="1" height="2" vspace="10" border="0" alt="" align="absmiddle"><a href="' + AdCode + MB[b].url + '" style="text-align : center; font : bold 11px/11px Verdana; text-decoration : none; color : ' + MB.ButtonColor + '; background : transparent;">' + MB[b].button + '</a></layer></layer>\n\n';
					else navbar +='<td><font size="2" face="Verdana"><b>&nbsp;<a href="' + AdCode + MB[b].url + '">' + MB[b].button + '</a>&nbsp;</b></font></td>\n';
				}
				//alert(navbar);
				if (ie4) { // Write DIV code for DHTML
					for (b=1; b<MB.length; b++) {
					if (b < 5) {pxleft = (((b-1) * 110)+19);} else {pxleft=(((b-1)*110)-109);}
						if (MB[b].drop != '') {
							navbar +='<div id="Promo' + b + '" style="position : absolute; left : ' + pxleft + 'px; top : 32px; visibility : hidden; width : 300px; height : 120px; padding : 10px; z-index : 10;" onmouseover="MB' + b + '.style.backgroundColor=\'' + MB.Highlight + '\'; this.style.visibility=\'visible\'" onmouseout="this.style.visibility=\'hidden\'; MB' + b + '.style.backgroundColor=\'' + MB.Background + '\';">\n';
							navbar +='<div style="position : absolute; width : 240px; height : 77px; left : 0px; top : 0px; border : 1px ' + MB.Border + ' solid; margin-left : 5px;"><iframe src="' + MB[b].drop + '" scrolling="No" width="238" height="75" marginwidth="2" marginheight="2" style="position : absolute; width : 238px; height :75px;" frameborder="No" onmouseover="MB' + b + '.style.backgroundColor=\'' + MB.Highlight + '\';" onmouseout="MB' + b + '.style.backgroundColor=\'' + MB.Background + '\';"></iframe></div>\n';
							navbar +='</div>\n\n';
						} else {
							navbar +='<div id="Promo' + b + '" style="position : absolute; left : ' + pxleft + 'px; top : 30px; visibility : hidden; width : 1px; height : 1px; padding : 10px; z-index : 10;" onmouseover="MB' + b + '.style.backgroundColor=\'' + MB.Highlight + '\'; this.style.visibility=\'visible\'" onmouseout="this.style.visibility=\'hidden\'; MB' + b + '.style.backgroundColor=\'' + MB.Background + '\';">\n';
							navbar +='</div>\n\n';
						}
					}
				} else if (ns4) { // Write LAYER code for DHTML
					for (b=1; b<MB.length; b++) {
					if (b < 5) {pxleft = (((b-1) * 110)+25);} else {pxleft=(((b-1)*110)-106);}
						if (MB[b].drop != '') {
							navbar +='<layer z-index="10" bgcolor="' + MB.Border + '" visibility="hide" width="240" height="77" id="Promo' + b + '" left="' + pxleft + '" top="31" onmouseover="visibility=\'show\';" onmouseout="hideAll();" class="MBPromo">\n';
							navbar +='<layer src="' + MB[b].drop + '" width="238" height="75" left="1" top="1" marginwidth="3"></layer>\n';
							navbar +='</layer>\n\n';
						} else {
							navbar +='<layer z-index="10" visibility="hide" width="250" height="20" id="Promo' + b + '" left="' + pxleft + '" top="29" onmouseover="visibility=\'show\';" onmouseout="hideAll();" class="MBPromo">\n';
							navbar +='</layer>\n\n';
						}
					}
				}
				if (!(ns4 || ie4)) navbar += '<td width="100%">&nbsp;</td></tr></table></td></tr></table><br>';
				return navbar;
			}

			function magicBox() {
				box='';
				box += '<table width="120" cellpadding="1" cellspacing="0" border="0"><tr><td bgcolor="#000000">\n';
				if (ie4||ns4) box += '<div class="MagicBox">\n';
				box += '<table width="118" cellpadding="3" cellspacing="0" border="0">\n';
				for (b=1; b<MB.length; b++) {
				AdCode='';
				if (MB[b].BoxAdID != '') AdCode='http://x.ibsys.com/event.ng/Type=click&AdID=' + MB[b].BoxAdID + '&Redirect=';
					box+= '<tr><th class="section" align="center" bgcolor="' + MB.Background + '"><font face="Verdana" size="1"><a href="' + AdCode + MB[b].url + '">' + MB[b].button + '</a></font></th></tr>\n\n';
					box+= '<tr><td class="teaser" align="center" bgcolor="' + MB.Highlight + '"><font face="Verdana" size="1"><a href="' + AdCode + MB[b].teaserurl + '">' + MB[b].teaser + '</a></font></td></tr>\n\n';
				}
				box+= '</table>\n';
				if (ie4||ns4) box += '</div>\n';
				box += '</td></tr></table>\n';
				return box;
			}