Cufon.replace('#gns,.banner-section h2,#subcontent h3', { fontFamily: 'Amplitude-Medium',separate: "words",
	hover:true });
Cufon.replace('#content-home #banner .inner-txt h2,#subcontent-home h3,#main h2', { fontFamily: 'Amplitude-Bold',separate: "words",
	hover:true });

function emailme() {
        var title = document.title;
        var url = document.location.href;
        var subject = "MoneyMate Website";
        var bodyText = "I saw this page and though you might like to see it " + url;

        window.location.href = "mailto:?subject=" + subject + "&body=" + bodyText;

    }


$(document).ready(function() {
$('.video-list li:lt(3)').css('font-weight', 'bold');
$('.video-list li:lt(3)').css('height', '20px');
//Default Action
	$(".mngt-team").hide(); //Hide all content
	$("ul.mngt-tabs li:first").addClass("active").show(); //Activate first tab
	$(".mngt-team:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.mngt-tabs li").click(function() {
		$("ul.mngt-tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".mngt-team").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

 
	$(".various3").fancybox({
	            'width'				: 600,
				'height'			: 450,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'isWindowless'      : 'false',
				'onStart'		: function() {
	                $("object").hide();
	            },
				'onClosed'		: function() {
	                $("object").show();
	            }

            });
    


    
     if (querySt() == false) {
        $('a').each(function() {
        var url = this.href
        if (this.href.indexOf("javascript") == -1 && this.href!="") 
        {
                
                var a = new RegExp('/' + window.location.host + '/');
                if (!a.test(this.href)) {
                    if (this.href.lastIndexOf("javascript") == -1) {
                        $(this).click(function(event) {
                            event.preventDefault();
                            event.stopPropagation();
                            window.open(this.href, '_blank');
                        });
                    }
                }
            }
            if (url.lastIndexOf(".") > 0) {

                if (url.substring(url.lastIndexOf("."), url.length) == ".ashx") {

                    $(this).attr("target", "_blank").attr("title", "Opens new window").addClass("external");
                }
            }
        });
    }

}); 

function querySt() {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == "cmspagemode") {
            return true;
        }
    }
    return false;
}




