$(document).ready(function(){
//Modal iFrame Window
$(".modalFrameWin").fancybox({
	'width'				: '95%',
	'height'			: '95%',
	'autoScale'     	: false,
	'transitionIn'		: 'fade',
	'transitionOut'		: 'fade',
	'titleShow'     	: false,
	'type'				: 'iframe'
});
//Modal Movie Window
$(".modalMovie").fancybox({
	'padding'			: 0,
	'autoScale'     	: false,
	'transitionIn'		: 'fade',
	'transitionOut'		: 'fade',
	'titleShow'     	: false
});
//Toggle Boxes
$(".toggle_container,.toggle_containerQA").hide();
	$('div.trigger,div.triggerQA').click(function() {
		if ( $('div.trigger,div.triggerQA').hasClass("active") ) {
			 $('div.trigger,div.triggerQA').removeClass("active");
		} else {
			$(this).addClass("active");
	}
	var $nextDiv = $(this).next();
	var $visibleSiblings = $nextDiv.siblings('div:visible:has(.block,.blockQA)');
		if ($visibleSiblings.length ) {
			$(this).addClass("active");
			$visibleSiblings.slideUp('fast', function() {
			$nextDiv.slideToggle('fast');
	});
	} else {
	$nextDiv.slideToggle('fast');
	}
	return false;
});
//Font Sizer
//Global '.contentBox-noLftNav','.contentBox-lftNavWrap','#contentBoxTabs-NoLeft','.topNav'
//SBDC '.topHolderSecondary' 
var section = new Array('.contentBox-noLftNav','.contentBox-lftNavWrap','#contentBoxTabs-NoLeft','.topNav','.topHolderSecondary');  
section = section.join(',');  
$(".increaseFont").click(function(){  
    var currentFontSize = $(section).css('font-size');  
    var currentFontSizeNum = parseFloat(currentFontSize, 10);  
	var newFontSize = currentFontSizeNum + 3;
		if (newFontSize < 19) {
		$(section).css('font-size', newFontSize);  
    return false; 
	}
});  
$(".decreaseFont").click(function(){  
    var currentFontSize = $(section).css('font-size');  
    var currentFontSizeNum = parseFloat(currentFontSize, 10);  
	var newFontSize = currentFontSizeNum - 3;
		if ( newFontSize > 8 ) {
    	$(section).css('font-size', newFontSize);  
    return false;
	}
});

$(".blueBoxContent,.brownBoxContent").equalHeights();
//Show/Hide Trigger Equal Heights
$(".triggerQA_leftTxtBx,.triggerQA_RightTxtBx").equalHeights('auto');
//SBDC Equal Heights
$(".heightBox").equalHeights();
//Governor Equal Heights
$("#contactGovWrapper div,#govCommisionWrapper div").equalHeights(98,300);
$("#hghLtsWrapperTxt,#hghLtsWrapperVid").equalHeights(150,300);
$("#quickLinksWrapper,#multimediaWrapper").equalHeights(105,300);
});
//Equal Column Heights
(function($) {
	$.fn.equalHeights = function(minHeight, maxHeight) {
		tallest = (minHeight) ? minHeight : 0;
		this.each(function() {
			if($(this).height() > tallest) {
				tallest = $(this).height();
			}
		});
		if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
		return this.each(function() {
		if ($.browser.msie && $.browser.version == 6.0) { $(this).height(tallest); }
			$(this).css("min-height", tallest + "px").css("overflow", "auto");
		});
	}
})(jQuery);
$('[alt*=pdf],[alt*=word],[alt*=excel],[alt*=powerpoint],[alt*=flash],[alt*=Zip]').prev().css("font-size","13px");

