// Cycle Plugin for light-weight slideshows

$(document).ready(function() {
    $('.banner').cycle({
		fx: 'fade',
		speed:  3000,
		pause:  1
	});
});


// Fix png transparency in IE<6 
//apply to all png images 

$('img[@src$=.png]').ifixpng(); 


// Open ext.links in the new window and add acrobat icon next to the pdf link

$(document).ready(function() {
						   
	$("a[@href$=pdf]").addClass("pdf");		
	$("a[@href$=doc]").addClass("word");	
	$("a[@href^='http']").attr('target','_blank');
	
}); 

// Toggle layer function

function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}

