var Site = {
	init: function() {
		Site.Overlay.init()
	},
	Overlay: {
		init: function() {
		    SqueezeBox.initialize({
		    	url: window.root+'overlay/default.aspx',
		    	handler:'iframe', 
		    	size:{x:952,y:594}, 
		    	shadow: false,
		    	targetBody: null, //'overlayholder'
		    	zIndex: 1050,
		    	absoluteLeft: 45,
		    	absoluteTop: 18,
		    	customScale: true,
				resizeFx: {
					duration: 1500
				},
				overlayOpacity: 0.2						    			    	
	    	});
			SqueezeBox.assign($$('a.squeezebox'));
			
			//test href for querystring "overlay=true," if present launch the overlay
			var exp 	= /.*\?.*overlay=true.*/i
			if (window.location.href.test(exp)) {
				var cta = $(document.body).getElement('a.squeezebox')
				SqueezeBox.fromElement(cta)				
			}
		}
	}
}




window.addEvent('domready', function() {
	Site.init();
})
