jQuery.noConflict();

jQuery(document).ready(init);
jQuery(window).unload(bye);

function bye() {
	jQuery.cookie('fontSize', '');
}

function init() {
	jQuery('div#logo').click(function(e){window.location = '/'});
	jQuery('img#banner').fadeIn('slow');
	
	
	jQuery('div#downmenu ul').html(jQuery('div#downmenu ul').html().replace(/<\/li><li>/g, '</li> <li>'));
	jQuery('div#downmenu ul li a:last').css('border', '0');
	jQuery('div#menu ul li a:last').css('border', '0');
	jQuery('div#downmenu ul li a').each(
		function(i) {		
			this.innerHTML = this.innerHTML.replace(/ /g, '&nbsp;');
		}
	);
	
}

function setFont(val) {
	if(parseInt(jQuery('div#content').css('fontSize')) < 20 && val) {
		jQuery('div#content').css('fontSize', (parseInt(jQuery('div#content').css('fontSize')) + 1) + 'px');
	} else if(parseInt(jQuery('div#content').css('fontSize')) > 9 && !val) {
		jQuery('div#content').css('fontSize', (parseInt(jQuery('div#content').css('fontSize')) - 1) + 'px');
	}
	jQuery.cookie('fontSize', jQuery('div#content').css('fontSize'), {path: '/'});
}

function blurLink(obj) {
	
}

function embedSWF(url, id, w, h, flashvars, params, attributes) {
	swfobject.embedSWF(url, id, w, h, '8.0.0', '../swf/expressInstall.swf', flashvars, params, attributes);
}

