/**
 * @author Hitankar Ray
 */
$(document).ready(function(){
	$.localScroll.hash({
		target: '#content', // Could be a selector or a jQuery object too.
		queue:true,
		duration:1500
	});
	$('#navigation').localScroll({
		target:'#content',
   		axis:'x',
   		queue:true,
		hash:true,
		duration:1500,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});
		//$(".round").corners("10px");
		$("table.tstripe tr:even").addClass("odd");
		$("table.tstripe1 tr:even").addClass("odd");
});

$(document).ready(function(){
	//hide the all of the element with class msg_body
	$("div.msg_head").corners("10px top-left transparent");
	$(".msg_body").hide();
	//slides the element with class "msg_body" when paragraph with class "msg_head" is clicked 
	$("#firstpane div.msg_head").click(function(){
		if($(this).next("div.msg_body").css("display")=="none") {
			$(this).css("background-image", "url(images/arrow-down.png)");
		}else {
			$(this).css("background-image", "url(images/arrow-right.png)");
		}
		$(this).next("div.msg_body").slideToggle(700).siblings("div.msg_body").slideUp("slow").prev("div.msg_head").css({"background-image": "url(images/arrow-right.png)"});
	});
	//slides the element with class "msg_body" when mouse is over the paragraph
	$("#secondpane p.msg_head").mouseover(function(){
	     $(this).next("div.msg_body").slideDown("slow").siblings("div.msg_body").slideUp("slow");
	});
});
