/* */
last = "news";
var autoplay = true;
// Delay Plugin for jQuery
// - http://www.evanbot.com
// - ﾃつｩ 2008 Evan Byrne
jQuery.fn.delay = function(time,func){
	this.each(function(){
		setTimeout(func,time);
	});
	return this;
};
// //

function dosizer() {
	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
}

function scrollto(num) {
	$("#hiddenscroll").stop().animate({ "left" : "-" + (970 * num) + "px" } , 2000);
}

function doCP(what) {
	if (last != what) {
		$("#" + last).slideUp("fast", function(){
			$("#" + what).slideDown("slow");
		});
		last = what;
	}

}
function dotopnavibild(targetpic) {
	document.write('<img src="'+targetpic+'" alt="Fallback Background" />');
}
function doheaderbild(targetpic) {
	document.write('<img src="'+targetpic+'" alt="Fallback Background" />');
}

function init () {
	dosizer();
}

function loadflash(){
	flash1(); 
	flash2();
}

//
$(document).ready(function(){
	init();
	loadflash();
});
