///////////////Sharaf/////////////////

$(document).ready(function(){
	// setup ul.tabs to work as tabs for each div directly under div.panes
	$(".secTabs ul.tabs").tabs(".secTabs div.panes > div"); // Rohoma
	$(".mostTabs ul.tabs").tabs(".mostTabs div.panes > div");
	//add class over to clicked tab
	$(".secTabs ul.tabs li").click(function(){
		$(".secTabs ul.tabs li").removeClass('over');
		$(this).addClass('over');
	});
	$(".mostTabs ul.tabs li a").click(function(){
		$(".mostTabs ul.tabs li a").removeClass('over');
		$(this).addClass('over');
	});
	
});

function sectionControl(secId){
	//hover menu section of secId
	$('#menu_sec_'+secId).addClass('hover');
}

//Docs
$(document).ready(function(){
	$('#mlf-dots a').click(function(){
		if($(this).attr('class') != 'selected'){
			$('#mlf-dots a').removeClass('selected');
			$(this).addClass('selected');
			//$('.malf-pic').animate({height: 'hide', opacity: 'hide'}, 'slow');
			//$('.malf-pic:eq('+$(this).index()+')').animate({height: 'show', opacity: 'show'}, 'slow');
			$('.malf-pic').hide();
			$('.malf-pic:eq('+$(this).index()+')').show();
		}
		return false;
	});	
});

//Prevent img right click
$(document).ready(function() {
    $("img").bind("contextmenu",function(){
       return false;
    }); 
});
