$(document).ready(function(){
//DROPDOWN MENU INIT
ddsmoothmenu.init({
mainmenuid: "mainMenu", //menu DIV id
orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu', //class added to menu's outer DIV
//customtheme: ["#1c5a80", "#18374a"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
$('.basic').click(function(){
		var src = "http://www.tuganet.pt/wp-content/themes/tuga2011/demo.php";
		$.modal('<iframe src="' + src + '" height="400" width="600" style="border:0; overflow:hidden;">', {
		onShow: function (d) {
		d.wrap.css('overflow','hidden');
		var el = $('h1.cufon', d.data);
		Cufon.replace(el);
		},
		closeHTML:"",
		containerCss:{
		backgroundColor:"#000",
		borderColor:"#fff",
		height:400,
		padding:0,
		width:600
	},
		overlayClose: true,
		});
		  return false;
	});
	/*$('#content').localScroll({
           target:'body'
        });*/
// Tooltips
	$('.tooltip').hover(function(){
		$tt = $(this).parent().find('.tooltip-content');
		$tt.stop().css({
			display: 'block',
			top: $(this).position().top,
			left: $(this).position().left + 40 + 'px',
			opacity: 0
		}).animate({
			opacity: 1
		}, 300);
	}, function(){
		$tt = $(this).parent().find('.tooltip-content');
		$tt.stop().css({
			opacity: 1
		}).animate({
			opacity: 0
		}, {
			duration: 300,
			complete: function(){
				$(this).css('display', 'none');
			}
		});
	});
	<!-- end document ready -->
});

