$(function(){

	$("ul#ftp-menu li .sub").css({'opacity':'0'});
	$("ul#ftp-menu li").hoverIntent(config);
	
	
});


$(document).ready(function() {
	$("#tool-bar").jixedbar();
	$("#tool-bar").prepend($("#mm-LiveChatBox"));	
   
   
   $('#btn_LiveChatClose').click(function(){
   		$("#mm-LiveChatBox").hide();
   });
		
	$("div.go, div.play, .vidItem-wrap ,div.zoom, div.view, div.read_more, div.external, div.arrow_left, div.arrow_right, div.read_article, div.zoom_rounded").hover(function(){
		$("img", this).stop().animate({ "opacity": 0.3 }, 400);
		}, function() {
		$("img", this).stop().animate({ "opacity": 1 }, 250);
	});	
		
    var w = 845; 
    var h = 610; 
			$("#launchGuide").fancybox({
				'width'				: w,
				'height'			: h,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
			
			$("#launchVC").fancybox({
				'width'				: w,
				'height'			: h,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
			
		var $dialog = $('<div></div>')
		.html('<h1 align="center" style="color:#F00; font-weight:bold;">1-877-Morgan-Law</h1><p>Experienced Case Intake Specialists Are Available 24-Hours a Day to Take Your Call.</p><p align="center"><strong>Call Now for a Free Consultation</strong></p>')
		.dialog({
				modal: true,
			autoOpen: false,
			title: 'Morgan and Morgan'
		});

	$('#phoneWindow').click(function() {
		$dialog.dialog('open');
		return false;
	});
}); 


function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

// Apply font replacement (cufon)
// -------------------------------------------------------------------
//Cufon.replace('h1,h2', { fontFamily: 'Vegur' });
//Cufon.replace('h2', { fontFamily: 'Vegur Light' });

