/*
	--------------------------------------------------------------------------------- 
	datei:		guj_karte_zeitschriften.js
	project:	relaunch von guj.de
	--------------------------------------------------------------------------------- 

*/
var nationActive = '';
var nationActiveBefore = '';
var nationChoosen = 'welt';

var nationenWelt = new Array();

nationenWelt[0] = "argentinien";
nationenWelt[1] = "brasilien";
nationenWelt[2] = "china";
nationenWelt[3] = "europa";
nationenWelt[4] = "mexico";
nationenWelt[5] = "russland";

/*
	--------------------------------------------------------------------------------- 
	funktion nation_info()
	wechselt die anzeige des informationstextes ueber das land und
	steuert den mouse-over-bildwechsel.
	--------------------------------------------------------------------------------- 
*/
function nation_info ( nation, bulk ){
//	alert ('nation over: ' + nation );
	nationActive = nation;
	layer_show( nationActive + '_over' );
	layer_show( 'box_' + nationActive );
	layer_hide( 'box_' + nationChoosen );
}

function nation_info_before ( nation, bulk ){
//	alert ('nation out: ' + nation );
	for ( iNat in nationenWelt ){
		layer_hide( nationenWelt[iNat] + '_over' );
		layer_hide( 'box_' + nationenWelt[iNat] );
	}
	layer_show( 'box_' + nationChoosen );
}

function nation_change ( nation, bulk ){
//	alert ('nation: ' + nation );
	nationActiveBefore = nationChoosen;
	nationChoosen = nation;
	nationActive = nation;
/*
	alert ('nationActiveBefore: ' + nationActiveBefore );
	alert ('nationChoosen: ' + nationChoosen );
*/
	layer_show( nationChoosen + '_choosen' );
	layer_show( 'box_' + nationChoosen );
	if ( nationActiveBefore != nationChoosen  ){
		if ( nationActiveBefore != 'welt' ){
			layer_hide( nationActiveBefore + '_choosen' );
		}
		layer_hide( 'box_' + nationActiveBefore );
	}
}

