
// initLayaout : Porsitionierung der einzelenen Elemente am Screen
function initlayout(){
//************ Skaliert Hintergrundbild
var $winwidth = $(window).width()-22;
var $winheight = $(window).height()-90;
$("img.source-image").attr({
	width: $winwidth
});
//*****************


$("div.bg").css({'height' : $winheight, 'width': $winwidth});
$("div.blackfade").css({'height' : $winheight, 'width': $winwidth});
$("div.content-head").css({'width': $winwidth});
$("div.box1").css({'width': $winwidth});
$("div.box2").css({'width': $winwidth});
$("div.box3").css({'left': $winwidth-225});
$("div.footer").css({'top': $winheight+62});
$("div.banner-container").css({'top': $(window).height()-90-$('div.banner-container').height()+61, 'left': $(window).width()-277});
$("div.news").css({'top': $winheight-$('div.news').height()-17});
$("div.effect").css({'height': $(window).height()});
$("div.effect").css({'width': $(window).width()});
if(impressumVisibility)
	{
		var fadepos = $(window).height()-250;
		$("div.impressum").css({'top':fadepos});
	}else
	{
		var fadepos = $(window).height()-18;
		$("div.impressum").css({'top':fadepos});
	}
}

function preLoadImages(ar)
{	
	for (x=0;x < ar.length;x++) {
		var  img = new Image();
		img.src = ar[x];
	}
}


function setMState(obj)
{
	test = $('#'+obj).children();
	$('#'+test[0].id).hide();
	$('#'+test[0].id).next().show();
}

function setMStateOut(obj)
{
	test = $('#'+obj).children();
	$('#'+test[0].id).show();
	$('#'+test[0].id).next().hide();
}

function toggleTrackListView(obj)
{
	$('div.'+obj).toggle();
}




