$(document).ready(function(){

						   $(".thumb").fadeTo("fast", 0.8); // This sets the opacity of the thumbs to fade down to 30% when the page loads

						   $(".thumb").hover(function(){

						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover

						   },function(){

						   $(this).fadeTo("fast", 0.8); // This should set the opacity back to 30% on mouseout

							   	});

						   });



function fxMe(){

	$('.pic').panelGallery({

		boxSize:50,

		boxFadeDuration:1000,

		boxTransitionDuration:100,

		FX: new Array('boxSouthEast','fade','boxRandom','panelZipperDown,true','panelZipperRight,true','panelTeethDown,true','panelTeethRightReveal')

	});

};

var y=0;

var opened=0;

var blacked = 0;

function toggleHeaders(){

	if (clicked){

	if (!opened){

		if (y<180){

		y=y+20;

		document.getElementById('headlines').style.height=y+"px";

		} else {

		opened=1;

		clicked=0;

		document.getElementById('headers_button').innerHTML="<img style='margin-bottom:1px' src='images/site/arr_up.jpg' width='7' height='7' alt='Hide headlines' /> &nbsp;Hide headlines";

		}

	}

	}

	if (clicked){

	if (opened){

		if (y>0){

		y=y-20;

		document.getElementById('headlines').style.height=y+"px";

		} else {

		opened=0;

		clicked=0;

		document.getElementById('headers_button').innerHTML="<img style='margin-bottom:-2px' src='images/site/arr_down.jpg' width='7' height='7' alt='Show headlines'/> &nbsp;Show headlines";

		}

	}

	

	setTimeout('toggleHeaders()', 10);

	}

	}

	

function theultimateheight() {

    var D = document;

    return Math.max(

        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),

        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),

        Math.max(D.body.clientHeight, D.documentElement.clientHeight)

    );

}

var isIE = /*@cc_on!@*/false;

 

function showMe(theID) {

if (!isIE){

if (bclicked){

if (!blacked){

	blacked = 1;

	bclicked = 0;

	document.getElementById("blackOut").style.height = theultimateheight()+"px";

	document.getElementById("blackOut").style.display = "block";

	document.getElementById(theID).style.zIndex = "2";

	document.getElementById(theID).style.position = "absolute";

	fxMe();

}

}

if (bclicked){

if (blacked){

	blacked = 0;

	bclicked = 0;

	document.getElementById("blackOut").style.display = "none";

	document.getElementById(theID).style.zIndex = "0";

	document.getElementById(theID).style.position = "";fxMe();

}

}

}

}
