function setColor(pos, color) {
	pos.style.backgroundColor = color;
	return true;
}

function surfTo(target) {
	if (target != "") location = target;
}

function surfto2(target) {
	if (target != "")
 		target = window.location.href = target;
}

function window_open(seite,titel,breite,hoehe) {
	window.open(seite,""+titel+"","width="+breite+",height="+hoehe);
}

function swap_content(span) {
	displayType = (document.getElementById(span).style.display == 'none') ? 'block' : 'none';
	document.getElementById(span).style.display = displayType;
}

function swap_extension(swap, img1, img2) {
	displayType = (document.getElementById(swap).style.display == 'none') ? 'block' : 'none';
	document.getElementById(swap).style.display = displayType;
	displayType = (document.getElementById(img1).style.display == 'none') ? 'block' : 'none';
	document.getElementById(img1).style.display = displayType;
	displayType = (document.getElementById(img2).style.display == 'none') ? 'block' : 'none';
	document.getElementById(img2).style.display = displayType;
}

function swap_content(span, img) {
	displayType = (document.getElementById(span).style.display == 'none') ? 'block' : 'none';
	document.getElementById(span).style.display = displayType;
	image = (document.getElementById(img).src.indexOf('expand') != -1) ? 'images/button_closeext.gif' : 'images/button_readmore.gif';
	document.getElementById(img).src = image;
}

headsponsoron = new Image(180, 120);
headsponsoron.src = "images/sponsors/headsponsor_col.gif";
headsponsoroff = new Image(180, 120);
headsponsoroff.src = "images/sponsors/headsponsor.gif";

mainsponsoron = new Image(180, 115);
mainsponsoron.src = "images/sponsors/mainsponsor3.jpg";
mainsponsoroff = new Image(180, 115);
mainsponsoroff.src = "images/sponsors/mainsponsor3.jpg";

sponsor01on = new Image(180, 44);
sponsor01on.src = "images/sponsors/sponsor01_col.gif";
sponsor01off = new Image(180, 44);
sponsor01off.src = "images/sponsors/sponsor01.gif";

sponsor02on = new Image(180, 64);
sponsor02on.src = "images/sponsors/sponsor02_col.gif";
sponsor02off = new Image(180, 64);
sponsor02off.src = "images/sponsors/sponsor02.gif";

sponsor03on = new Image(180, 64);
sponsor03on.src = "http://www.gamboo.net/banner/banner_gamboo_arteria_2.gif";
sponsor03off = new Image(180, 64);
sponsor03off.src = "http://www.gamboo.net/banner/banner_gamboo_arteria_1.gif";

sponsor04on = new Image(180, 64);
sponsor04on.src = "images/sponsors/host4clans_col.jpg";
sponsor04off = new Image(180, 64);
sponsor04off.src = "images/sponsors/host4clans.jpg";

sponsor05on = new Image(180, 41);
sponsor05on.src = "images/sponsors/sponsor05_col.gif";
sponsor05off = new Image(180, 41);
sponsor05off.src = "images/sponsors/sponsor05.gif";

sponsor06on = new Image(180, 52);
sponsor06on.src = "images/sponsors/sponsor06_col.gif";
sponsor06off = new Image(180, 52);
sponsor06off.src = "images/sponsors/sponsor06.gif";

sponsor07on = new Image(180, 49);
sponsor07on.src = "images/sponsors/sponsor07_col.gif";
sponsor07off = new Image(180, 49);
sponsor07off.src = "images/sponsors/sponsor07.gif";

sponsor08on = new Image(180, 74);
sponsor08on.src = "images/sponsors/sponsor08_col.gif";
sponsor08off = new Image(180, 74);
sponsor08off.src = "images/sponsors/sponsor08.gif";

sponsor09on = new Image(180, 36);
sponsor09on.src = "images/sponsors/sponsor09_col.gif";
sponsor09off = new Image(180, 36);
sponsor09off.src = "images/sponsors/sponsor09.gif";

sponsor10on = new Image(180, 54);
sponsor10on.src = "images/sponsors/sponsor10_col.gif";
sponsor10off = new Image(180, 54);
sponsor10off.src = "images/sponsors/sponsor10.gif";

sponsor11on = new Image(180, 72);
sponsor11on.src = "images/sponsors/sponsor11_col.gif";
sponsor11off = new Image(180, 72);
sponsor11off.src = "images/sponsors/sponsor11.gif";

sponsor12on = new Image(180, 79);
sponsor12on.src = "images/sponsors/sponsor12_col.gif";
sponsor12off = new Image(180, 79);
sponsor12off.src = "images/sponsors/sponsor12.gif";

sponsor13on = new Image(180, 115);
sponsor13on.src = "images/sponsors/sponsor13_col.gif";
sponsor13off = new Image(180, 115);
sponsor13off.src = "images/sponsors/sponsor13.gif";

sponsor14on = new Image(180, 125);
sponsor14on.src = "images/sponsors/gslogo_ov.jpg";
sponsor14off = new Image(180, 125);
sponsor14off.src = "images/sponsors/gslogo.jpg";

sponsor15on = new Image(180, 125);
sponsor15on.src = "images/sponsors/sponsor15_ov.gif";
sponsor15off = new Image(180, 125);
sponsor15off.src = "images/sponsors/sponsor15.gif";

partner01on = new Image(180, 68);
partner01on.src = "images/sponsors/partner01_col.gif";
partner01off = new Image(180, 68);
partner01off.src = "images/sponsors/partner01.gif";

partner02on = new Image(180, 75);
partner02on.src = "images/sponsors/partner02_col.gif";
partner02off = new Image(180, 75);
partner02off.src = "images/sponsors/partner02.gif";

partner03on = new Image(180, 100);
partner03on.src = "images/sponsors/partner03_col.gif";
partner03off = new Image(180, 100);
partner03off.src = "images/sponsors/partner03.gif";

partner04on = new Image(180, 100);
partner04on.src = "images/sponsors/spielehimmel_col.jpg";
partner04off = new Image(180, 100);
partner04off.src = "images/sponsors/spielehimmel.jpg";


function hover_on(imgName) {
	imgOn = eval(imgName + "on.src");
	document[imgName].src = imgOn;
}

function hover_off(imgName) {
	imgOn = eval(imgName + "off.src");
	document[imgName].src = imgOn;
}

function PreviewCountry(shorthandle)
{
	document.getElementById('nation_img').src = 'images/flags/' + shorthandle + '.gif';
}

function loadImages() {
if (document.getElementById) {  // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) {  // Netscape 4
document.hidepage.visibility = 'hidden';
}
else {  // IE 4
document.all.hidepage.style.visibility = 'hidden';
      }
   }
}

function PreviewCountry(shorthandle)
{
	document.getElementById('nation_img').src = 'images/flags/' + shorthandle + '.gif';
}

function loadImages() {
if (document.getElementById) {  // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) {  // Netscape 4
document.hidepage.visibility = 'hidden';
}
else {  // IE 4
document.all.hidepage.style.visibility = 'hidden';
      }
   }
}


function openWindow(w_name,w_titel,breite,hoehe) {

	var links = screen.width/2-breite/2;
	var oben  = screen.height/2-hoehe/2;
	
	NewWin = window.open(w_name, w_titel, "width="+breite+",height="+hoehe+",top="+oben+",left="+links+",toolbar=0 scrollbar=yes,location=0");
}
