//------------------------------
// TAB
//------------------------------
/*
$(function(){
	$("#TAB-CONTENT> div:not(#TAB-IDEAS)").hide();
	$("#HOUSE").show();
	$("#TAB-IDEAS a").eq(0).mouseover();
	$("#TAB-IDEAS a").eq(0).removeClass("selected");
	
	$("#TAB-IDEAS a").click(function(){
		$("#TAB-CONTENT > div:not(#TAB-IDEAS)").hide();
		$($(this).attr("href")).show();
		$("#TAB-IDEAS a").addClass("selected");
		$("#TAB-IDEAS a").mouseout();
		$(this).mouseover();
		$(this).removeClass("selected");
		return false;
	});

});
*/

$(function() {
	
	$( "#TAB-CONTENT div.tabs" ).hide();
	$( "#TAB-IDEAS a" ).click(function(){			
		$( "div#TAB-CONTENT div.tabs" ).hide();
		$( $(this).attr("href") ).show();
		$("#TAB-IDEAS a").removeClass("selected");
		$(this).addClass("selected");
		return false;
	});
	$( "#SUB-TAB-IDEAS a" ).click(function(){			
		var href = $(this).attr("href");
		$( "div#TAB-CONTENT div.tabs" ).hide();
		$( href ).show();
		$("#TAB-IDEAS a").removeClass("selected");
		$("div#TAB-IDEAS ul li a[href="+href+"]").addClass("selected");
		//alert($(this).attr("href"));
		return false;
	});

	$( "#TAB-IDEAS a" ).eq(0).click();
	
});

