/*function initMenu()
{
	$('.has-sub').bind("mouseenter",function(){
		$(this).next().css('display','block');
		$(this).next().bind("mouseenter",function(){
			$(this).css('display','block');
		})
		
	})
	$('.has-sub').bind("mouseleave",function(){
		$(this).next().css('display','none');
		$(this).next().bind("mouseleave",function(){
			$(this).css('display','none');
		})
	})
	
}*/

function initMenu()
{
	$('.has-sub').bind("mouseenter",function(){
							 
		$(this).children('ul').css('display','block');
		
	})
	$('.has-sub').bind("mouseleave",function(){
		$(this).children('ul').css('display','none');									 
	})
	
}

function initSlide()
{
		$(document).ready(function (){
		$('.slide-head').click(function(){
			//alert($(this).parent().next().attr('class'));
			
			$(this).next().slideToggle();
			src=$(this).find('img').attr('src');
			if(src.indexOf("plus")>=0)
			{
				src=src.replace("plus", "minus")
				$(this).addClass('slide-head-sel');
			}
			else
			{
				src=src.replace("minus", "plus")
				$(this).removeClass('slide-head-sel');
				
			}
			$(this).find('img').attr('src',src);
		})
		
		//open first div
		src=$(this).find('img.icon-slide').attr('src');
		src=src.replace("plus", "minus");
		$('.slide-head:first').find('img').attr('src',src);
		$('.slide-head:first').next().addClass('show');
		$('.slide-head:first').addClass('slide-head-sel');
	})
	
}
