var storm={popup:function(c,b,d,a){x=screen.width/2-(b/2);y=screen.height/2-(d/2);window.open(c,"popup","location=yes, resizable=yes, width="+b+",height="+d+",scrollbars="+a+",left="+x+",top="+y)},external:function(){$("a[rel=external]").click(function(a){storm.popup(this.href,screen.availWidth,screen.availHeight,1);a.preventDefault()})},flash:function(){function a(b){return document.getElementById(b)}if(a("id-Flash")){swfobject.embedSWF("Assets/Animations/Home.swf","id-Flash","640","223","9.0.0","expressInstall.swf",{},{wmode:"opaque"},{id:"id-Flash"})}if(a("id-Flash-News1")){swfobject.embedSWF("Assets/Animations/News1.swf","id-Flash-News1","640","223","9.0.0","expressInstall.swf",{},{wmode:"opaque"},{id:"id-Flash-News1"})}if(a("id-Flash-News2")){swfobject.embedSWF("Assets/Animations/News2.swf","id-Flash-News2","640","223","9.0.0","expressInstall.swf",{},{wmode:"opaque"},{id:"id-Flash-News2"})}if(a("id-Flash-News3")){swfobject.embedSWF("Assets/Animations/News3.swf","id-Flash-News3","640","223","9.0.0","expressInstall.swf",{},{wmode:"opaque"},{id:"id-Flash-News3"})}if(a("id-Flash-Generic")){swfobject.embedSWF("Assets/Animations/Generic.swf","id-Flash-Generic","640","223","9.0.0","expressInstall.swf",{},{wmode:"opaque"},{id:"id-Flash-Generic"})}},clock:function(){function h(){var k=new Date();var j=k.getHours();var l=k.getMinutes();if(j>12){j=j-12}if(l<10){l="0"+l}var m=j+":"+l;$(".datetime").html(m+"&nbsp;&nbsp;&nbsp;"+c)}$("#id-Date").append('<p class="datetime">&nbsp;</p>');setInterval(h,"1000");var g=new Date();var i=g.getDay();var b=g.getDate();var e=g.getMonth();var f=g.getFullYear();var a=["January","February","March","April","May","June","July","August","September","October","November","December"];var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var c=d[i]+" "+b+" "+a[e]+" "+f},quicklinks:function(){$("#id-QuickLinks").change(function(){document.location.href=this.options[this.selectedIndex].value})},dropdowns:function(){$(".dropDown").next().hide();$(".dropDown").css("cursor","pointer");$(".dropDown").mouseover(function(){this.style.backgroundColor="#0077c0"});$(".dropDown").mouseout(function(){this.style.backgroundColor="#0e3b81"});$(".dropDown").click(function(){$(this).next().slideToggle()})},browser:function(){if($.browser.safari){}}};$(document).ready(storm.external);$(document).ready(storm.clock);$(document).ready(storm.flash);$(document).ready(storm.quicklinks);$(document).ready(storm.dropdowns);