$(document).ready(function(){
		megaNav();
		toolTip();
		/***** accordian*****/
		var prev=0;
		$('.accordian_content').hide();
		
		
		$('.accordian_content:eq(0)').show();
		$('.accordian_block a:eq(0)').attr('class','selected');
		$('.accordian_block a').click(function (e)
		{
			e.preventDefault();
			if(!$(this).hasClass('selected'))
			{
				
				//$('.faq_item_container img').attr('src','images/bg-arrow-up.gif');
				$('.accordian_content').slideUp('slow');
				$('.accordian_block a').attr('class','hide');
				$(this).attr('class','selected');
				$(this).parent().next('.accordian_content').slideDown('slow');
				//$('.vmore',this).attr('src','images/bg-arrow.gif');
			}
			else
			{
				$('.accordian_block a').attr('class','hide');
				$('.accordian_content').slideUp('slow');
			}
		});
		
		/***** accordian*****/
});

// Mega Navigation Starts here 
function megaNav(){
navId();
$('#nav ul li .dropDown').hide();
$("#nav li a").hover(
	function() {
		if($.browser.msie && $.browser.version == '6.0')
			{
				$(this).parent().find(".dropDown").slideDown('fast');
				$(this).parent().addClass("mouseOver");
			}
			else
			{
				$(this).parent().find(".dropDown").slideDown('fast');	
				$(this).parent().addClass("mouseOver");
			}
		$(this).parent().find(".dropDown").css('z-index','9999');
		$(this).parent().hover(
		function() {
		}, 
		function(){	
			if($.browser.msie && $.browser.version == '6')
				{
					$(this).parent().find(".dropDown").slideUp('fast');
					$(this).parent().find(".mouseOver").removeClass("mouseOver");
				}
				else
				{
					$(this).parent().find(".dropDown").slideUp('fast');
					$(this).parent().find(".mouseOver").removeClass("mouseOver");
				}
			});
		},
		function(){
				$(this).parent().find(".dropDown").slideDown(300).show();
				});
}
// Mega Navigation Ends here*
	 
// Mega Navigation Adding id Stats Here
function navId(){
$("#nav ul#top_nav").children('li').each(function(i){ //pass the root element id and particular element
	var nodePosition=$(this).attr('id');
		if(i>=0) {
			$(this).attr('id','NavPosition'+i) //add your class
	}
});
}
// Mega Navigation Adding id Ends Here


//News Tooltip Starts
function toolTip(){
	$("#NewsList span.newsDesc a").hover(function() {
		var SpanHeight= $(this).next("span").height();
		$(this).next("span").css('bottom' , '-'+SpanHeight+'px');
	  $(this).next("span").show();
	}, function() {
	  $(this).next("span").hide();
	});
	
	$("#NewsList li").hover(function() {
		$(this).css('z-index' , '2');
	}, function(){
		$(this).css('z-index' , '1');
	});
	
}

//News Tooltip End

	
