function init(){}
sp ='4000';
to = '';
$('.button').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
$('.img').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
$('div.button').click(function(){t=$(this).find('a').attr('href');if(t.length<1){location=t}});

$('li.required label strong').prepend('<span>* </span>');
$('.vsummary').hide();
$('input.button').click(function(){$('.Doc2Form li.required > span').each(function(){var x=$(this).attr('id');var e=eval(x).errormessage;if(eval(x).isvalid){$(this).css({'display':'none'});}if(!eval(x).isvalid){$(this).css({'display':'block'});$(this).text(e);}});});

function altrows(classname, firstcolor, secondcolor) {$("."+classname+" tr:odd").css("background",firstcolor);$("."+classname+" tr:even").css("background",secondcolor);}
altrows('pressreleasetable', '#efefef', '#D5E4E7');altrows('altrows', '#efefef', '#D5E4E7');altrows('GreenBlue', '#efefef', '#D5E4E7');altrows('press', '#E7E8F2', '#D9E4EA');altrows('RedBlue', '#E7E8F2', '#D9E4EA');altrows('fin', '#E7E8F2', '#D9E4EA');
altrows('springcolorstable','#FFDD00','#C7DD75');altrows('marinebluetable','#00B9E7','#0072BC');jQuery(".marinebluetable td p").css("color","white");altrows('envrionmentgreen','#C7DD75','#AAC2A0');
$("select.contactdropdown").change( function(){document.location = $(this).attr("value");});
$("body div#map01 div a.terms-of-use-link").parent().children().css("display","block");
$("body div#map01 div a.terms-of-use-link").parent().css({'width':'300px','text-wrap':'normal'});

function switchSelectElements(division) {
	$("#contactselector select.contact").hide();
	if(division == null){}
	else if(division == 'service' || division.match('=')){
	    $("#" + division + "-contacts").show();
	}
	else{
	    $("#" + division + "-contacts").show().removeAttr("disabled");		
	}
}

var division = $("select#service :selected").attr("value");
switchSelectElements(division);

$("select#service").change(function() {
    var division = $("select#service :selected").attr("value");
     switchSelectElements(division);
});
 $("#contactselector .contact").change(function(e) {
    var url = $(this).attr("value");
	if(url != 'option'){
    		document.location = url;
	}
});
if(!sp){sp  = 0;}
if(!to){to  = 4000;}
$('#banner').cycle({fx: 'fade', pager: '.pager', speed: sp, timeout: to});
if (typeof pageTracker != 'undefined') { pageTracker._trackEvent( 'Browser Dimensions', 'load', $(window).width() + 'x' + $(window).height(), $(window).width() );
$(window).resize(function () { if ($(this).data('gatimer')) { clearTimeout($(this).data('gatimer')); $(this).data('gatimer', null);} $(this).data('gatimer',setTimeout(function () {pageTracker._trackEvent('Browser Dimensions','resize',$(window).width() + 'x' + $(window).height(),$(window).width());},500));});}



$(document).ready(function() {
$('div.button').corner().css('visibility','visible');
$('.img').corner();
});

