var j = jQuery.noConflict();
j(document).ready(function(){
		j('#side_navigation').hide(); //hide right sub menu at loading time.
        var sty = j('#main_nav li:first').css("margin-left","0px");


				//a tag slide effect
				j(".scroll").click(function(event){
					//prevent the default action for the click event
					event.preventDefault();

					//get the full url - like mysitecom/index.htm#home
					var full_url = this.href;

					//split the url by # and get the anchor target name - home in mysitecom/index.htm#home
					var parts = full_url.split("#");
					var trgt = parts[1];

					//get the top offset of the target anchor
					var target_offset = j("#"+trgt).offset();
					var target_top = target_offset.top;

					//goto that anchor by setting the body scroll top to anchor top
					//j('html, body').animate({scrollTop:target_top}, 800);
					j('html, body').animate({scrollTop:target_top}, {duration: 'slow'});

				});


	j("#sub_nav li a").each(function () { 
		j(this).html(j(this).html().replace('breaktag','<br/>'));
		j(this).attr('title', j(this).attr('title').replace('breaktag',''));
	j(this).html(j(this).html().replace('breaktag','<br/>'));
		j(this).attr('title', j(this).attr('title').replace('breaktag',''));
	});
	
	j('#side_navigation').show();  //show the side navigation

});




