$(document).ready( function(){

	$.getJSON("ajax_cat.php", { cat: 2 } , function (json) {
		$("div#stitle ul ul:first").empty();
		for ( i = 0 ; i < json.length ; i++ ) {
			$("#stitle ul ul:first").append('<li><a href="'+json[i].link+'">'+json[i].title+'</a><!--[if lte IE 6]><table><tr><td><![endif]--><!--[if lte IE 6]></td></tr></table></a><![endif]-->');
		}
	});
	
	$("#stitle ul li.jump a").click( function() { 
		window.open($(this).attr("href"),'myWin','width=1024,height=768,resizable=yes,menubar=yes,toolbar=yes,scrollbars=yes,status=yes,directories=yes');
		return false;
	});

	if ( $("div.lsidebar").height() <= $("div.rsidebar").height() )	{
		$("div.lsidebar").height($("div.rsidebar").height());
	} else {
		$("div.rsidebar").height($("div.lsidebar").height());
	}
	$("#loading table tbody tr").hover( function(){$(this).addClass("over");} , function(){$(this).removeClass("over");} );

	//$("div").click( function(){ alert($(this).html()); alert($(this).css("z-index")); });
	//$("#mainp").click( function(){ alert($("div.lsidebar").css("height")); alert($("div.rsidebar").css("height")); alert($("div#faqcontent").css("height")); });
	//$("#mainp").click( function(){ alert($('div#faqcontent dl').text()); });
});