function mainmenu(){
jQuery(" #top-menu ul ").css({display: "none"}); // Opera Fix
jQuery(" #top-menu li").hover(function(){
		jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(300);
		},function(){
		jQuery(this).find('ul:first').css({visibility: "hidden"});
		});
}

 
 
 jQuery(document).ready(function(){	
 	var $ = jQuery;				
	mainmenu();
	
	//add home button
	if (jQuery(".page_item").length > 0 && jQuery("#logo").length){
			jQuery('.page_item:first').each(function(){
				var home_btn = jQuery(this).clone();
				jQuery("#top-menu").prepend(home_btn);
				var link = jQuery('a', home_btn);
				link.html('Home');
				link.attr('href', jQuery('#logo a').attr('href'));
				link.attr('title', "Home");
				
				var blog_btn = jQuery(this).clone();
				jQuery("#top-menu").append(blog_btn);
				var link = jQuery('a', blog_btn);
				link.html('Blog');
				link.attr('href', "http://thisisyou.info/blog/");
				link.attr('title', "Blog");
				link.attr('target', "_blank");
			});
	} 
	//
	
	//col fix IE
	jQuery(".mcol:first").css('float', 'left');
	
	if(window.get_last_post_color){
		$('#logo').css('border-top', '30px solid ' + window.header_color);
		//$('#logo').attr('style', "border-top: solid 30px " + window.header_color);
	}
	
});
