$(function(){
	
	jQuery('ul.sf-menu').superfish({ 
	            delay:       100,                           
	            animation:   {opacity:'show',height:'show'},  
	            speed:       'fast',   
	            pathLevels:  1,                   
	            autoArrows:  false,                          
	            dropShadows: false                            
	});
	jQuery('ul.sf-menu2').superfish({ 
	            delay:       100,                           
	            animation:   {opacity:'show',height:'show'},  
	            speed:       'fast',                          
	            autoArrows:  false,                          
	            dropShadows: false                            
	 });	
	
});





function closeThis(element) {
	panel = $(element).parent().attr('id');
	$('#' + panel + ' .contents').hide();
}

function openThis(element) {
	panel = $(element).parent().attr('id');
	$('#' + panel + ' .contents').show();
}

function showFriend(element) {
	$('.hideit').hide();
	panel = $(element).parent().parent().attr('id');
	$('#' + panel + ' .hideit').show();
	var new_position = $('#'+panel).offset();
    window.scrollTo(new_position.left,new_position.top-200);
}
