/*function toggleContent(id){
	$("#"+id).toggle();
}*/
$(document).ready(function(){
	$(".channel_title").mouseover(function(){
		$(this).css("cursor","pointer");
	}).click(function(){
		$(this).next(".channel_content").toggle();
	});
	
	$(".category_title").mouseover(function(){
		$(this).css("cursor","pointer");
	}).click(function(){
		if($(".category_content:visible").prev(".category_title").text()!=$(this).text()){
			$(".category_content:visible").css("display","none");
		}
		$(this).next(".category_content").toggle();
		if($(this).css("backgroundImage")=="url(images/category_open.gif)"){
			$(this).css("backgroundImage","url(images/category_close.gif)")
		}
		else{
			$(this).css("backgroundImage","url(images/category_open.gif)")
		}
	});
	$(".content_wrapper_toggler").mouseover(function(){
		$(this).css("cursor","pointer");
	}).click(function(){
		$(this).prev().toggle();
		if($(this).css("backgroundImage")=="url(images/content_wapper_close.gif)"){
			$(this).css("backgroundImage","url(images/content_wapper_open.gif)");
		}
		else{
			$(this).css("backgroundImage","url(images/content_wapper_close.gif)");
		}
	});
	
	$(".category_content:last-child").css("borderBottom","none");
	//$(".category_title:first").css("backgroundImage","url(images/category_open.gif)");
	$(".category_title").css("backgroundImage","url(images/category_close.gif)");
	//$(".category_content:first").css("display","block");
	//$(".content_wrapper_toggler:first").css("backgroundImage","url(images/content_wapper_close.gif)");
	$(".content_wrapper_toggler").css("backgroundImage","url(images/content_wapper_close.gif)");
	//$(".content_wrapper:first").css("display","block");
});
