$(function() {


	// http://j.mp/jquery-target-blank
	$('a[href^="http://"], a[rel="external"], a[href$=".pdf"]').attr({
		target: "_blank",
		title: "Opens in a new window"
	});

	// Labelify
	$("#header input").labelify({
	  text: "label"
	});


	// Cycle Home Slideshow
	$('#slideshow').before('<div id="slide-nav">').cycle({
	    fx:     'fade',
	    timeout: 6000,
	    pager:  '#slide-nav'
	});

    // Show/Hide Tabbed Content
    var tabContainers = $('#tab-pricing .pricing-content');
    $('#tab-pricing .nav a').click(function () {

        tabContainers.addClass('hide').filter(this.hash).removeClass('hide');

        $('#tab-pricing .nav a').removeClass('active');
        $(this).addClass('active');

        return false;
    }).filter(':first').click();

    // Show/Hide Tabbed Content
    var tabContainers2 = $('#tab-details .details-content');
    $('#tab-details .nav a').click(function () {

        tabContainers2.addClass('hide').filter(this.hash).removeClass('hide');

        $('#tab-details .nav a').removeClass('active');
        $(this).addClass('active');

        return false;
    }).filter(':first').click();


	// Fancybox
	$(".fancybox").fancybox({
		titlePosition : "inside"
	});

	// Fancybox
	$("a.fancybox").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});

});




















