
z = 0;

function show(blockId) {
	z++;
	if(document.getElementById(blockId).style.display!='block') {
		moveIT(blockId);
		document.getElementById(blockId).style.display='block';
		document.getElementById(blockId).style.zIndex=z;
	} else {
		document.getElementById(blockId).style.display='none';

	}
	
}

function moveIT(blockId) {

	var numA;
	var numB;

	switch(blockId) {
	case 'audioContentShell':
		numA = Math.floor(Math.random()*40)+80
		numB = Math.floor(Math.random()*40)+70
		document.getElementById('audioContentShell').style.top=numA+"px";
		document.getElementById('audioContentShell').style.left=numB+"px"
		break;
	case 'bioContentShell':
		numA = Math.floor(Math.random()*40)+75
		numB = Math.floor(Math.random()*40)+200
		document.getElementById('bioContentShell').style.top=numA+"px";
		document.getElementById('bioContentShell').style.left=numB+"px"
		break;
	case 'linksContentShell':
		numA = Math.floor(Math.random()*40)+45
		numB = Math.floor(Math.random()*40)+200
		document.getElementById('linksContentShell').style.top=numA+"px";
		document.getElementById('linksContentShell').style.left=numB+"px"
		break;
	case 'videoContentShell':
		numA = Math.floor(Math.random()*40)+85
		numB = Math.floor(Math.random()*40)+630
		document.getElementById('videoContentShell').style.top=numA+"px";
		document.getElementById('videoContentShell').style.left=numB+"px"
		break;
	}
}

