var GUI = function() {
	function initGUI() {
		MiscGUIFixes();
		AddPipesToList( '#mainNavigation' );
	}
	
	function MiscGUIFixes() {
		/*if ( $.browser.msie6 ) $( ((partialupdate)?'.partialUpdate ':'') + "input[@type='text']" ).addClass('ietextfield');
		//$('#CommonContent').append( $('<div>').addClass('mainContentBottom').append('<img src="/Themes/Spore/images/spore/footer_characters.jpg" alt="Game Characters" />') );
		if ( $.browser.msie6 ) $( ((partialupdate)?'.partialUpdate ':'') + "textarea" ).addClass('ietextarea');*/
		$('#CommonContentInner').append('<img src="/Themes/Spore/images/spore/footer_characters.jpg" id="footerCharacters" alt="Game Characters" />');
		
		var footeritemscount = $('#CommonFooter li').length;
		if ( footeritemscount > 0 ) {
			$( '#CommonFooter li:nth-child(' + (footeritemscount-1) + ')').css({border: 'none'}); /* remove last items border */
		}
	}
	
	function AddPipesToList( rootElement ) {
		var list = $( rootElement );
		if ( list ) {
			$( 'li', list ).each( function( index, item ) {
				if ( !$(item).is( ':nth-child(1)' ) ) {
					$(item).before('<li class="sep">|</li>');
				}
			});
		}
	}	
		
	return {
		init:initGUI
	}
}();

$( document ).ready( function() {
	GUI.init();
});