$(document).ready(function(){

	/* init search box */
	$("input[id='search-term']").focus(function(){
		$(this).attr("value", "");
	});
	$("input[id='search-term']").blur(function(){
		$(this).attr("value", jsLangs.Search[lang]);
	});

	$('#fashion-news-list').jScrollPane({scrollbarWidth: 15, arrowSize: 16});

    comment_form_display = "none";
    $("#comment_title").click(function () {
		//if($(".infobox-form").attr("id")=='comm_error')
		//	document.getElementById("comment_form").style.display="block";
		//else
		//{
			if(document.getElementById("comment_form").style.display == "block")
			document.getElementById("comment_form").style.display="none";
			else
				document.getElementById("comment_form").style.display="block";
		//}
		return false;
    });
   //alert(document.getElementById('comm_error').id);
  
   if($(".infobox-form").attr("id")=='comm_error'){ $("#comment_form").attr("style","display:block");}
});

