function init_web(pageID)
{
	switch(pageID)
	{
		case 2: 
		var links = $("div.controls a");
		var a = links.eq(2);
		a.click();
		break;

		case 3833:
		var links = $("div.controls a");
		var a = links.eq(1);
		a.click();
		break;

		case 3203:
		doFilter();
		var links = $("div.controls a");
		var a = links.eq(1);
		a.addClass('selected');
		break;
	}

	deployFunctions();
	
	$('.menu ul.list li a').hover(function() {
		$(this).animate({paddingLeft: '20px'}, {queue:false, duration: 100});
	},
	function(){
		$(this).animate({paddingLeft: '10px'}, {queue:false, duration: 100});
	});

	$('.menu .search').hover(function(){
		$(this).animate({left: '0px'}, {queue:false, duration: 100});
	},
	function(){
		$(this).animate({left: '-150px'}, {queue:false, duration: 100});
	});
	
}

window.onresize = function() {
	deployFunctions();
}

function deployFunctions() 
{
	var sWi = $(window).width();
	var sHe = $(window).height();

	$("div.raster").css({
		'width': sWi+"px",
		'height': sHe+"px"
	});
	
	var he = sHe-30;
	var wi = sWi-400;
	$(".contentBG").width(wi).height(he);
	$(".content2").width(wi-80);
	$(".tomGallery").width(wi);
	
	var wi = sWi-250;
	$(".content").width(wi).height(he);
	resize_bgVideo();
	
	$('#contact').contactable({
		subject: 'Ein Feedback zu VUCX'
	});

}

function resize_bgVideo()
{
	var wi = $(window).width();
	var he = $(window).height();

	$("#html5Video").width(wi).height(he);
}
