$(document).ready(function() {
													 
$(".featured_works img[title]").tooltip({
   offset: [0, 0],
   effect: 'toggle',
   opacity: 0.8,
   position: 'bottom center',
	 tipClass: 'tooltip_thumb'
	 });

$(".project_set img[title]").tooltip({
   offset: [34,0],
   effect: 'toggle',
   opacity: 0.7,
   position: 'top center',
	 tipClass: 'tooltip_display'
	 });

$('.services p').hide();  
$('.services h4').click(function() {
		$(this).next().slideToggle('normal');
		});
$('a.show_all').click(function() {
		$('.services p').slideToggle('normal');
		});
$('.show_all p').slideToggle('normal');
$('#main_nav ul').hide();
$('li.sub_menu').click(function() {
		$(this).next().slideToggle('normal');
		});

//hide title attribue on mouseover
$("a").hover(function(){
    $(this).stop().attr('title', '');},
		function(){$(this).stop().attr();
		});

$("ul.portfolio_thumbs").tabs(".panes > div", {effect: 'default', history: true});
$("ul.page").tabs("div.image > div");
$("ul.project_thumbs").tabs("#right_column > div.project_set");

$("img[rel]").overlay({
   expose:{color:'#000', opacity:0.8, loadSpeed:'normal', closeSpeed:'normal'},
   fixed: false,
});

});

