// MeltDown Media javascript über scheise

// global Variables
	
// init functions

function init() {
	// move that fatty
	driverMoveThatBitch('moveBitch');
	moveTheDon('contactTheDon'); 
}
	
function pageHeight(thing) {
	var screenH = document.documentElement.clientHeight;
	var currentDiv = document.getElementById(thing);
	currentDiv.style.height = (screenH - 10)  + 'px';
}

function driverMoveThatBitch(thing) {
	var screenW = document.documentElement.clientWidth;
	//var bitchSize = document.getElementById(thing).offsetWidth;
	
	var currentDiv = document.getElementById(thing);
	
	currentDiv.style.marginLeft = (screenW - 620) + 'px';
}


// contactTheDon

function moveTheDon(thing) {
	var screenH = document.documentElement.clientHeight;
	var currentDiv = document.getElementById(thing);
	var heaven = currentDiv.offsetTop;
	
	currentDiv.style.height = (screenH - heaven) - 60 + 'px';
}

function goToPlace(where) {
	if (where == 'gowalla') {
		 this.location.href = 'http://gowal.la/c/3vmuo';
	} else if (where == 'twitter'){
		this.location.href = 'http://twitter.com/meltdownmedia';
	} else {
		this.location.href = 'http://md-media.se';
	}
}


