// JavaScript Document

window.addEvent('domready', function() {
	
	//create our Accordion instance
	var myAccordion = new Accordion($$('h5.toggler'), $$('div.element'), {
		opacity: true,
		show:0,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#616265');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#5a7e92');
		}
	});


});

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function profileBGon(id,img) {
	document.getElementById(id).style.backgroundImage=img;
}
function profileBGoff(id,img) {
	document.getElementById(id).style.backgroundImage=img;
}
function navBold(id) {
	document.getElementById(id).style.fontWeight='bold';
}
function navRegular(id) {
	document.getElementById(id).style.fontWeight='normal';
}
function changeBGColor(id,color) {
	document.getElementById(id).style.backgroundColor=color;
	document.getElementById(id).style.cursor='pointer';
}
function returnBGColor(id,color) {
	document.getElementById(id).style.backgroundColor=color;
}
function getURL(url) {
	window.open(url);
}
function changeBG(img) {
	document.getElementById('bg').src=img;	
}
function showTitle(id) {
	document.getElementById(id).style.display="block";
}
function hideTitle(id) {
	document.getElementById(id).style.display="none";
}
function changeText(text) {
	document.getElementById('caption').innerHTML = text;	
}
