jQuery(document).ready(function() {
	jQuery('#ctl00_ctl00_ffnpWucSEARCH1_txtSearch').click(function(){ 
		jQuery(this).css("border-bottom","1px solid #666"); 
		if (jQuery('#ctl00_ctl00_ffnpWucSEARCH1_txtSearch').val() == "Search") {
			jQuery(this).attr('value', '');
		}
	});
	jQuery(document).mousedown(function (e) { 
		if (e.target.id != "ctl00_ctl00_ffnpWucSEARCH1_ibsearchAll" && e.target.id != "ctl00_ctl00_ffnpWucSEARCH1_txtSearch") {
			if (jQuery('#ctl00_ctl00_ffnpWucSEARCH1_txtSearch').val() == "") {
				jQuery('#ctl00_ctl00_ffnpWucSEARCH1_txtSearch').css("border-bottom","none"); 
				jQuery('#ctl00_ctl00_ffnpWucSEARCH1_txtSearch').attr('value', 'Search');
			}
		}
	});
});


jQuery(document).ready(function () {	
	jQuery('#nav li').hover(
		function () {
			//show its submenu
			jQuery('ul', this).slideDown(100);
		}, 
		function () {
			//hide its submenu
			jQuery('ul', this).slideUp(100);			
		}
	);
});



jQuery(document).ready(function () {	
	jQuery('#dvtEmailsbox').hide();
	//	var maskHeight = jQuery(document).height();
	//	var maskWidth = jQuery(window).width();

	//maskHeight = window.innerHeight? window.innerHeight : $(window).height;
	//maskWidth = window.innerWidth? window.innerWidth : $(window).width;
	maskHeight = jQuery(document).height();
	maskWidth = '100%';
	jQuery('#dvtEmails').click( function () {
		//jQuery("body").css('overflow','hidden');
		//jQuery('#dvtBackgrounMask').css({'width':innerWidth,'height':maskHeight,'overflow':'hidden'});
		if(isiPad || isiPod || isiPhone) {
			jQuery('#dvtBackgrounMask').css({'width':'1280px !important','height': maskHeight});
		} else {
			jQuery('#dvtBackgrounMask').css({'width':maskWidth,'height':maskHeight});
		}
		jQuery('#dvtEmailsbox').show();
		jQuery('#dvtBackgrounMask').show();
	});

	jQuery("#dvtMailingContent").click(function(){
		//jQuery("body").css('overflow','visible');
		jQuery("#dvtEmailsbox").hide();
		jQuery('#dvtBackgrounMask').hide();
	});

	jQuery('#SizeHelp').hide();
	
 	
	jQuery('#dvLinkHelpDetail').click( function () {
		if(isiPad || isiPod || isiPhone) {
			jQuery('#dvtBackgrounMask').css({'width':'1280px !important','height': maskHeight});
		} else {
			jQuery('#dvtBackgrounMask').css({'width':maskWidth,'height':maskHeight});
		}
		jQuery('#dvtBackgrounMask').show();
	});

	jQuery("#dvPopFrameII").click(function(){
		jQuery("#SizeHelp").hide();
		jQuery('#dvtBackgrounMask').hide();
		jQuery("body").css('overflow','visible');

	});

});

 /*jQuery(document).ready(function() {
  jQuery(this).find('.FBConnectButton_Text').addClass('fake_facebook_button');
  jQuery(this).find('.FBConnectButton_Small').css('background-position', 'left 0px');
  jQuery(this).find('.FBConnectButton').css('background', 'none');
  jQuery(this).find('.fb_share_count, .fb_share_count_nub_right, .tb').css('display', 'none');
  
 })*/

  


