/*
	---------------------------------------------------------------------------------------------
	datei:	exp.js
	project:	website experian
	---------------------------------------------------------------------------------------------
*/
// holt die browserversion
var is;
var isIE3Mac = false;
// this section is designed specifically for IE3 for the Mac
if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && 
(parseInt(navigator.appVersion)==3))
       isIE3Mac = true;
else   is = new Is(); 
// --------------------------------------------------------------------------------------------------------------------------------------
var debug = 0;


/*
	popUps
*/

/*
	---------------------------------------------------------------------------------------------
	funktion popUp():
		macht ein pop-up.
		abhaengig von der uebermittelten maskeNr wird festgelegt:
			- welche datei wird in das popup geladen
			- groesse des popups-fensters
	uebergabewerte:
		maskeNr = eindeutige nr [id] der dateneingabemaske
		
	---------------------------------------------------------------------------------------------
*/
function popUp( popNr ) {

	// pfad zum popup
	var popPfad = 'fileadmin/redakteur/pop/index.html';
	var debug = 0;
	var resize = 'yes'
	var langSwitch = 0;
	var langPath = 'de/index.html';
	
	langSwitch = popNr.indexOf("en");
	if ( langSwitch != -1 ){
//		alert ('englisch! langSwitch: ' + langSwitch);
		langPath = 'en/index.html';
		popNr = popNr.substring(2,100);
	}

	switch ( popNr ){
		case '1':
			var debug = 0;
			var popDatei = langPath + 'pop_zeitschiene.htm';
			var popHeight = 431;
			var popWidth = 1000;
			var resize = 'no'
			
			// anpassung der popupgroesse an verschiedene browser
			if ( is.brauserNs ) {
				if ( debug ){ alert('ich bin in case 1 und: brauserNs ....'); }
			}
			if ( is.brauserIeMac ) {
				if ( debug ){ alert('ich bin in case 1 und: brauserIeMac ....'); }
			}
			if ( is.brauserNs4UpMac ) {
				if ( debug ){ alert('ich bin in case 1 und: brauserNs4UpMac ....'); }
			}
			if ( is.firefoxMac ) {
				if ( debug ){ alert('ich bin in case 1 und: firefoxMac ....'); }
				popHeight += 10;
			}
			if ( is.brauserNs6UpMac ) {
				if ( debug ){ alert('ich bin in case 1 und: brauserNs6UpMac ....'); }
				popHeight += 30;
			}
			if ( is.brauserMoz ) {
				if ( debug ){ alert('ich bin in case 1 und: brauserMoz ....'); }
			}
			break;

		case '2':
			var popDatei = 'pop_zeitschiene_ie.html';
			var popHeight = 480;
			var popWidth = 1000;
			var resize = 'no'
			break;

		case '3':
			var popDatei = langPath + 'pop_kreis.htm';
			var popHeight = 515;
			var popWidth = 520;
			break;

		case '4':
			var popDatei = 'de/1_home/pop_kreis.html';
			var popHeight = 515;
			var popWidth = 525;
			break;

		case '5':
			var debug = 0;
			var popDatei = langPath + 'pop_opal.htm';
			var popHeight = 600;
			var popWidth = 817;
			// anpassung der popupgroesse an verschiedene browser
			if ( is.brauserNs ) {
				if ( debug ){ alert('ich bin: brauserNs ....'); }
			}
			if ( is.brauserIeMac ) {
				if ( debug ){ alert('ich bin: brauserIeMac ....'); }
			}
			if ( is.brauserNs4UpMac ) {
				if ( debug ){ alert('ich bin: brauserNs4UpMac ....'); }
			}
			if ( is.brauserNs6UpMac ) {
				if ( debug ){ alert('ich bin: brauserNs6UpMac ....'); }
				popHeight += 5;
				popWidth -= 15;
			}
			if ( is.brauserMoz ) {
				if ( debug ){ alert('ich bin: brauserMoz ....'); }
				popHeight += 5;
				popWidth -= 15;
			}
			if ( is.firefoxMac ) {
				if ( debug ){ alert('ich bin: firefoxMac ....'); }
				popHeight += 5;
			}
			break;

	}
	
	var popName = popHeight + 'x' + popWidth;
	popDatei = popPfad + popDatei;
	var expPopUp = window.open( popDatei, popName, 'width=' + popWidth + ',height=' + popHeight + ',directories=no,status=no,scrollbars=yes,resizable=' + resize + ',menubar=no,toolbar=no' );
	expPopUpFoc = expPopUp.focus();				
};
