function init(){}
sp ='4000';
to = '';
$('.button').corner().css('visibility','visible');
$('.button').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
$('.img').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
$('.button').click(function(){t=$(this).find('a').attr('href');location=t;});
$('.img').corner();
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;
	}
});
