/*********************************************************************************
* Copyright - SIS Software and Internet Solutions Ltd.
*
* Diese Scripte duerfen nur innerhalb der Walberer Internetseiten verwendet werden.
* Jede Veraenderung oder jeder Einsatz innerhalb 
* anderer Seiten und/oder Projekte ist ausdruecklich untersagt.
* Ein Entfernen dieser Zeilen verletzt das Copyright!
**********************************************************************************/

var	Nr							= 0;																
var nAnzahlObj 			= 1;
var cButtonName 		= "";
var cSelectedButton	= "";
var nLastButtonNr		= 0;
var cImagePath			= "images/navigation/";
var cCountry				= "de";
var aButton 				= new Array();
var allLoaded				= false;


function InitButton(Nr, cButton, cTheImage, cTheCountry) {
	aButton[Nr] 				= new Array(6);
	aButton[Nr][0] 			= new Image();
	aButton[Nr][0].src 	= cImagePath + cTheImage + ".gif";
	aButton[Nr][1] 			= new Image();
	aButton[Nr][1].src 	= cImagePath + cTheImage + "_over.gif";
	aButton[Nr][2] 			= new Image();
	aButton[Nr][2].src 	= cImagePath + "/" + cTheCountry + "/typo_" + cTheImage + ".gif";
	aButton[Nr][3] 			= new Image();
	aButton[Nr][3].src 	= cImagePath + "/" + cTheCountry + "/typo_" + cTheImage + "_over.gif";
	aButton[Nr][4] 			= cButton;
	aButton[Nr][5] 			= cTheImage;
	nAnzahlObj++;
}

// -------------------------------------------------------- //

function GlowOn(Nr) {
	if ( allLoaded ){
		Nr = ( cCountry == "uk" ) ? (Nr +4) : Nr;
		
		cButtonName = aButton[Nr][4];
		cTypoButton	= "typo_" + cButtonName;
		if ( cSelectedButton != cButtonName ) {
			document.images[cButtonName].src = aButton[Nr][1].src;
			document.images[cTypoButton].src = aButton[Nr][3].src;
			window.status = " ";
		}
	}
}

// -------------------------------------------------------- //
   
function GlowOff(Nr) {
	if ( allLoaded ){
		Nr = ( cCountry == "uk" ) ? (Nr +4) : Nr;
		
		cButtonName = aButton[Nr][4];
		cTypoButton	= "typo_" + cButtonName;
		if ( cSelectedButton != cButtonName ) {
			document.images[cButtonName].src = aButton[Nr][0].src;
			document.images[cTypoButton].src = aButton[Nr][2].src;
			window.status = " ";
		}
	}
}

// -------------------------------------------------------- //

function PictureClicked(cChoice) {
	location.href = "frameset.html?" + cChoice + "+" + cCountry;
}

// -------------------------------------------------------- //

InitButton( 1, "ziele",				"ziele"				, "de" );
InitButton( 2, "strategisch",	"strategisch"	, "de" );
InitButton( 3, "erfahrung",		"erfahrung"		,	"de" );
InitButton( 4, "kontakt",			"kontakt"			, "de" );

InitButton( 5, "ziele",				"ziele"				, "uk" );
InitButton( 6, "strategisch",	"strategisch"	, "uk" );
InitButton( 7, "erfahrung",		"erfahrung"		,	"uk" );
InitButton( 8, "kontakt",			"kontakt"			, "uk" );

// -------------------------------------------------------- //

function CountryOver(cCountryName) {
	if ( allLoaded ){
		if ( cCountry != cCountryName ) {
			document.images[cCountryName].src = "images/navigation/" + cCountryName + "_over.gif";
			window.status = " ";
		}
	}
}

// -------------------------------------------------------- //
   
function CountryOut(cCountryName) {
	if ( allLoaded ){
		if ( cCountry != cCountryName ) {
			document.images[cCountryName].src = "images/navigation/" + cCountryName + ".gif";
			window.status = " ";
		}
	}
}

// -------------------------------------------------------- //
   
function CountryClick(cCountryName) {
	if ( allLoaded ){
		document.images['de'].src 							= "images/navigation/de.gif";
		document.images['uk'].src 							= "images/navigation/uk.gif";

		document.images[cCountryName].src 			= "images/navigation/" + cCountryName + "_over.gif";

		document.images['head'].src							= "images/head_" + cCountryName + ".gif";		
		document.images['typo_ziele'].src				= "images/navigation/" + cCountryName + "/typo_ziele.gif";
		document.images['typo_strategisch'].src	= "images/navigation/" + cCountryName + "/typo_strategisch.gif";
		document.images['typo_erfahrung'].src		= "images/navigation/" + cCountryName + "/typo_erfahrung.gif";
		document.images['typo_kontakt'].src			= "images/navigation/" + cCountryName + "/typo_kontakt.gif";
				
		cCountry = cCountryName;
		window.status = " ";
	}
}

