/*=================================================
	Lechner Hans Peter
	B@20-06-2009	
=================================================*/

function jsfPrint() {
	window.print(window.document);
}
//var win = null;
function jsfWinNew(purl,pname) {
	//if(!(win==null)) {
	//	win.close();
	//}
	win = window.open(purl,'');
	win.focus();
}
var winmovie = null;
function jsfWinNewMovie(purl,pname) {
	winmovie = window.open(purl,pname);
	winmovie.focus();
}
function jsfWinModMovie(purl) {
	w = 400;
	w = 400;
	l = (screen.availWidth - w) / 2;
	t = (screen.availHeight - h) / 2;
	window.showModalDialog(purl, "", "dialogtop:" + t + "; dialogleft:" + l + "; dialogwidth:" + w + "; dialogheight:" + h + "; scroll:1;");
}
function jsfKeyEnter(evt) {
	evt = (evt) ? evt : ((event) ? event : null);
	if(evt) {
		if(evt.keyCode == 13) {
			return true;
		}
	}
	return false;
}
function jsfPlayer(param,idx) {
	stitle = '&lt;make your choice below&gt;';
	sfile = 'http://www.helmutneugebauer.at/hn/hape/_musicfiles/';
	f = false;
	switch(param) {
		case 'c81e728d9d4c2f636f067f89cc14862c':
			switch(idx) {
				// ==========================================
				case 1:
					stitle = '&quot;Eclipse&quot;';
					sfile+= 'lopnor/eclipse.mp3';
					f = true;
					break;
				case 2:
					stitle = '&quot;Rain&quot;';
					sfile+= 'lopnor/rain.mp3';
					f = true;
					break;
				case 3:
					stitle = '&quot;Run on Sun&quot;';
					sfile+= 'lopnor/run_on_sun.mp3';
					f = true;
					break;
				case 4:
					stitle = '&quot;Trainspotting&quot;';
					sfile+= 'lopnor/trainspotting.mp3';
					f = true;
					break;
				case 5:
					stitle = '&quot;Death Smells&quot;';
					sfile+= 'lopnor/death_smells.mp3';
					f = true;
					break;
				case 6:
					stitle = '&quot;Ultra Light Last Minute&quot;';
					sfile+= 'lopnor/ultra_light_last_minute.mp3';
					f = true;
					break;
				case 7:
					stitle = '&quot;Interplay&quot;';
					sfile+= 'lopnor/interplay.mp3';
					f = true;
					break;
				case 8:
					stitle = '&quot;Lop Nor&quot;';
					sfile+= 'lopnor/lop_nor.mp3';
					f = true;
					break;
				case 9:
					stitle = '&quot;Lent Morris&acute;&quot;';
					sfile+= 'lopnor/lent_morris.mp3';
					f = true;
					break;
				case 10:
					stitle = '&quot;Pacemaker&quot;';
					sfile+= 'lopnor/pacemaker.mp3';
					f = true;
					break;
				case 11:
					stitle = '&quot;Chez Toi Ou Chez Moi&quot;';
					sfile+= 'lopnor/chez_toi_ou_chez_moi.mp3';
					f = true;
					break;
				// ==========================================
				case 12:
					stitle = '&quot;Kim&acute;s Fest&quot;';
					sfile+= 'kimkocht/Kims_Fest.mp3';
					f = true;
					break;
				case 13:
					stitle = '&quot;Vorbereitung&quot;';
					sfile+= 'kimkocht/Vorbereitung.mp3';
					f = true;
					break;
				case 14:
					stitle = '&quot;Reinigung&quot;';
					sfile+= 'kimkocht/Reinigung.mp3';
					f = true;
					break;
				case 15:
					stitle = '&quot;Regeln&quot;';
					sfile+= 'kimkocht/Regeln.mp3';
					f = true;
					break;
				case 16:
					stitle = '&quot;Hingabe&quot;';
					sfile+= 'kimkocht/Hingabe.mp3';
					f = true;
					break;
				case 17:
					stitle = '&quot;W&uuml;rze&quot;';
					sfile+= 'kimkocht/Wuerze.mp3';
					f = true;
					break;
				case 18:
					stitle = '&quot;Sehnsucht&quot;';
					sfile+= 'kimkocht/Sehnsucht.mp3';
					f = true;
					break;
				case 19:
					stitle = '&quot;40&quot;';
					sfile+= 'kimkocht/40.mp3';
					f = true;
					break;
				// ==========================================
				case 20:
					stitle = '&quot;Neurotrain&quot;';
					sfile+= 'picturetraxvol2/01-Neurotrain.mp3';
					f = true;
					break;
				case 21:
					stitle = '&quot;Pain&quot;';
					sfile+= 'picturetraxvol2/02-Pain.mp3';
					f = true;
					break;
				case 22:
					stitle = '&quot;Startpaket&quot;';
					sfile+= 'picturetraxvol2/03-Startpaket.mp3';
					f = true;
					break;
				case 23:
					stitle = '&quot;Kammerflimmern&quot;';
					sfile+= 'picturetraxvol2/04-Kammerflimmern.mp3';
					f = true;
					break;
				case 24:
					stitle = '&quot;Bacardi&quot;';
					sfile+= 'picturetraxvol2/05-Bacardi.mp3';
					f = true;
					break;
				// ==========================================
				default:
					sfile+= 'dummy.mp3';
			}
			break;
		case 'eccbc87e4b5ce2fe28308fd9f2a7baf3':
			switch(idx) {
				default:
					sfile+= 'dummy.mp3';
			}
			break;
		case 'e4da3b7fbbce2345d7772b0674a318d5':
			switch(idx) {
				case 1:
					stitle = '&quot;Trotz alledem&quot;';
					sfile+= 'trotz_alledem.mp3';
					f = true;
					break;
				case 2:
					stitle = '&quot;Sharpskaz&quot;';
					sfile+= 'sharpskaz-hn.mp3';
					f = true;
					break;
				case 3:
					stitle = '&quot;At My Age&quot;';
					sfile+= 'AT_MY_AGE-H.N.mp3';
					f = true;
					break;
				case 4:
					stitle = '&quot;Queentoilets&quot;';
					sfile+= 'queentoilets-hn.mp3';
					f = true;
					break;
				default:
					sfile+= 'dummy.mp3';
			}
			break;
		default:
	}
	if(obj = document.getElementById('player-title')) {
		obj.innerHTML = 'playing: ' + stitle;

		obj = document.getElementById('player');
		strg = '<embed src=\"http://www.helmutneugebauer.at/hn/hape/_musicfiles/mediaplayer.swf\"\n';
		strg+= 'width=\"240\" height=\"19\" allowscriptaccess=\"always\" allowfullscreen=\"false\"';
		if(f) {
			strg+= 'flashvars=\"height=20&amp;width=240&amp;file=' + sfile + '&amp;frontcolor=0x000000&amp;lightcolor=0x000000&amp;screencolor=0x000000&amp;autostart=false&amp;repeat=false\"';
		}
		else {
			strg+= 'flashvars=\"height=20&amp;width=240&amp;file=' + sfile + '&amp;frontcolor=0x000000&amp;lightcolor=0x000000&amp;screencolor=0x000000&amp;autostart=false&amp;repeat=false\"';
		}
		strg+= 'class=\"dsR157 dsR1749\"></embed>';
		obj.innerHTML = strg;
	}

}
