// JavaScript Document

animatedcollapse.addDiv('newsletter', 'fade=1,height=80px')
animatedcollapse.addDiv('teamSubnav', 'fade=1')

animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}

animatedcollapse.init()

//anylinkmenu.init("menu_anchors_class") //Pass in the CSS class of anchor links (that contain a sub menu)
anylinkmenu.init("menuanchorclass")


function random_imglink(){

var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="images/masthead.jpg"
myimages[2]="images/masthead2.jpg"
myimages[3]="images/masthead3.jpg"
myimages[4]="images/masthead5.jpg"
myimages[5]="images/masthead9.jpg"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
var currentImg	= document.write('<img id="mastImg" src="'+myimages[ry]+'" width="938" height="287">')
return currentImg
}

$(document).ready(function(){ 
        $(document).pngFix(); 
    }); 