$(document).ready(function(){
	$(".colorbox_photo").colorbox({
		maxWidth: "95%", 
		maxHeight: "95%", 
		photoScaling: "true", 
		opacity: .75});
	$(".colorbox").colorbox({
		opacity: .75
	});
	$(".colorbox_iframe").colorbox({width:"940px", height:"750px", iframe:true});
	$("#home_banner").tabs({event: 'mouseover'});
	$("#home_banner").tabs( "rotate" , 7000);
	var selected;
	$( "#home_banner" ).tabs({
	   show: function(event, ui) {
		selected = $('.ui-state-active a').attr('rel');
		$('#wrapper').removeClass().addClass(selected);			
		}
	});				
});
jQuery(function() {
    swapValues = [];
    jQuery(".swap_value").each(function(i){
        swapValues[i] = jQuery(this).val();
        jQuery(this).focus(function(){
            if (jQuery(this).val() == swapValues[i]) {jQuery(this).val("");}
        }).blur(function(){
            if (jQuery.trim(jQuery(this).val()) == "") {jQuery(this).val(swapValues[i]);}
        });
    });
});
