var isie6 = false

var Layout = {
	
	toggleContact: function() {
		$('hide-link').blur() // prevents user selection staying on this button and users accidently opening the pane again
		var panel = $('footer')
		if (panel.offsetHeight > 30) {
			this.hideContact()
		} else {
			this.showContact()
		}
	},
	
	showContact: function() {
		$$('object').each(function(o) { o.style.visibility = 'hidden' })
		new Effect.Scale('footer', 100, {
			scaleX:false, 
			scaleFrom: 6, 
			scaleContent:false, 
			scaleMode: { originalHeight: 240 }
		})
	},
	
	hideContact: function() {
		new Effect.Scale('footer', 6, {
			scaleX:false, 
			scaleContent:false, 
			afterFinish:function() { 
				$('footer').style.height = "15px" 
				$$('object').each(function(o) { o.style.visibility = 'visible' })
			}
			})
	},
	
	showVideo: function(num) {
		alert("Clicking this wil play video #" + num.toString())
	}
}