/*
showMenu = function (el) {
	$('#secondnav > ul > li').css('display', 'none');
	if ($(el).hasClass('hassubs')) {
		$(el).css('display', 'block');
		$('#secondnav').slideDown('normal');
	} else {
		$('#secondnav').slideUp('normal');
	}
}

getMenuHTML = function() {
	var r = $('#swfnav').html();
	return r.substr(5, r.length - 9);
}
*/

doInit = function() {
	$('#printme').click(function (ev) { self.print(); return false; });
	$('#fontsize a').click(function (ev) {
		$('#fontsize a').removeClass('active');
		$('#fontsize a').each(function (i) { $('body').removeClass($(this).attr('class')); });
		$('body').addClass($(this).attr('class'));
		document.cookie = 'zoom=' + $(this).attr('class') + '; expires=0; path=/';
		$(this).addClass('active');
	});
	if ($('#banner').length > 0) {
		params = {
			img: $($('#banner img').get(0)).attr('src'),
			txt: $($('#banner .text').get(0)).html()
		}
		swfobject.embedSWF('/content/swf/banner.swf', 'banner', '650', '95', '9.0.0', '/content/swf/expressInstall.swf', params, {menu: 'false', wmode: 'transparent'}, {id: 'swf_banner'});
	}
	/* $('#content h1').each(function (i) {
		$(this).attr('id', 'swf_h1_' + i);
		swfobject.embedSWF('/content/swf/h1.swf', $(this).attr('id'), '650', '103', '9.0.0', '/content/swf/expressInstall.swf', {txt: $(this).html()}, {menu: 'false', wmode: 'transparent'}, {'class': 'pagehead'});
	}) */
	/* $('#hp h2, #sidebar h2').each(function (i) {
		$(this).attr('id', 'swf_header_' + i);
		swfobject.embedSWF('/content/swf/header.swf', $(this).attr('id'), '100%', '27', '9.0.0', '/content/swf/expressInstall.swf', {txt: $(this).html()}, {menu: 'false', wmode: 'transparent'}, {'class': 'header'});
	}); */
	/*
	$('#secondnav').hide();
	$('body').mouseover(function (ev) {
		found = (ev.target == $('#secondnav').get(0));
		if (!found) {
			$(ev.target).parents().each(function (i) {
				if (this == $('#secondnav').get(0)) found = true;
			});
		}
		if (ev.target == $('#navigation').get(0)) found = true;
		if (!found) {
			$(ev.target).parents().each(function (i) {
				if (this == $('#navigation').get(0)) found = true;
			});
		}
		if (!found) $('#secondnav').slideUp('normal');
	});
		$('#badge div').mouseover(function (ev) { $(ev.currentTarget).addClass('hover_' + $(ev.currentTarget).attr('id')); });
		$('#badge div').mouseout(function (ev) { $(ev.currentTarget).removeClass('hover_' + $(ev.currentTarget).attr('id')); });
	if ($.browser.msie) {
		if (parseInt($.browser.version.substr(0, 1)) < 7) {
			$('#secondnav > ul > li > a').addClass('tla');
			$('#secondnav .hassubs > a > span').addClass('hassubs');
			$('#secondnav li').mouseover(function (ev) { $(ev.currentTarget).addClass('hover'); });
			$('#secondnav li').mouseout(function (ev) { $(ev.currentTarget).removeClass('hover'); });
			$('#secondnav ul ul a span').mouseover(function (ev) { $(ev.currentTarget).addClass('hover'); });
			$('#secondnav ul ul a span').mouseout(function (ev) { $(ev.currentTarget).removeClass('hover'); });
		}
		$('#nav a').mouseover(function (ev) {
			id = $(ev.currentTarget).parents('li').attr('id');
			if (id != id.replace(/navitem/, '')) {
				id = id.replace(/navitem/, '');
				if ($(ev.currentTarget).parents('li').hasClass('hassubs')) showMenu('#scndnvitem' + id); else $('#secondnav').slideUp('normal');
			}
		});
	}

	swfobject.embedSWF('/content/swf/nav.swf', 'nav', '100%', '33', '9.0.0', '/content/swf/expressInstall.swf', {}, {menu: 'false', wmode: 'transparent'});
	*/
	// $('#subnav li.hassubs').mouseover(function (ev) { $(ev.currentTarget).children('ul').slideDown('normal'); });
	if ($.browser.msie && parseInt($.browser.version.substr(0, 1)) <= 7) {
		$('#badge div').mouseover(function (ev) { $(ev.currentTarget).addClass('hover_' + $(ev.currentTarget).attr('id')); });
		$('#badge div').mouseout(function (ev) { $(ev.currentTarget).removeClass('hover_' + $(ev.currentTarget).attr('id')); });
	}

}