$(document).ready(function() {
	
//check login info display member-nav if logged in, otherwise display public
	var loggedin = window.ISLOGGEDIN; // defined in template
	if (loggedin == 1) {
		$(".aside-member").css({
			"display": "block"
		});
		$(".aside").css({
			"display": "none"
		});
	}
	
	
	
	//menu for ie6
	if ($.browser.msie && $.browser.version.substring(0,1) === '6') {

		$('#menu ul li').mouseover(function(){
					$(this).find('ul').css('display','block');	
		});	
		$('#menu ul li').mouseout(function(){
				$(this).find('ul').css('display','none');	
		});
	}
	//sidebar
	$('#side-bar ul li:last-child').addClass('last');
	$('#side-bar #utility-bar ul li:last-child').removeClass('last');
	$('#side-bar.blog ul li:last-child').removeClass('last');
	$('#search input[type="text"]').focus(function() {
		$(this).val('');
		});
    
	$('table.invoice table.border tr:first-child').addClass('first');
	$('#side-bar table.order-list td:first-child').css('width','180px');
	$('#side-bar table.order-list td:last-child').css('width','90px');
	$('#side-bar table.order-list td:nth-child(2)').css('display','none');
	$('#side-bar table.order-list td:nth-child(3)').css('display','none');
	$('#side-bar .box table:last-child').addClass('last');
 
 	$("input[type='radio']").css({
				'border' : 'none', 
				'background' : 'none'
	});
	$("input[type='text'], input[type='password']").addClass('textinput');
	$("input[type='submit']").addClass('submit');
	$("input[type='button']").addClass('button');
	$("input[type='checkbox']").css({
				'border' : 'none', 
				'background' : 'none'
	});
	//consultantlinks
	$(".consultantlinks .imageplaceholder:odd").addClass('second');
	
	//set col heights
	var centerColHeight = $('.center-col').height();
	//alert(centerColHeight);
});




