function siteInit() {
	if($('sitemapvirtualTour')) {
		$('sitemapvirtualTour').observe('click', function(event) {
			Event.stop(event);
			window.open(($('sitemapvirtualTour').firstDescendant()).getAttribute('href'), '', 'width=700, height=450');
		});
	}
	//setContainerHeight();
	attachEpochHandlers();
}

function attachEpochHandlers(){
	var epochDateFields = $$('.formDateSelector');
    for(i=0; i<epochDateFields.length; i++){
        new Epoch('epoch_popup','popup',epochDateFields[i]);
	}
}

//hack  to allow for certical center aligning of site
function setContainerHeight() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	
	$('mainContainer').style.height = myHeight+"px";
}
