//---------------------------------------------------------------------------
//  Check for browser older than N4
//---------------------------------------------------------------------------
var detect, place, theString, browser;
function checkBrowser () {
	if (document.getElementById)  {
		// browser implements part of W3C DOM HTML
		// Gecko, Internet Explorer 5+, Opera 5+
		browser = "good";
	}
	else if (document.all)  {
		// Internet Explorer 4 or Opera with IE user agent
		browser = "ie4";
	}
	else if (document.layers) {
		// Navigator 4
		browser = "net4";
		location.href = "oldbrowser.html";
	}
	
	detect = navigator.userAgent.toLowerCase();
	if (checkIt('msie')) { // browser is IE
		var version = detect.charAt(place + theString.length);
		if (checkIt('mac'))
			browser='macIE';
	}
}
function checkIt(string) {
	place = detect.indexOf(string) + 1;
	theString = string;
	return place;
}
//----------------------------------------------------------------------
// open a new window
//----------------------------------------------------------------------
function targetBlank (url) {
  blankWin = window.open(url,'_blank','menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=no,titlebar=yes,hotkeys=yes,status=yes,scrollbars=yes,resizable=yes');
}

//----------------------------------------------------------------------
// open media player window
//----------------------------------------------------------------------
var UniqueID = 314 // Make each link open in a new window 
var newWinOffset = 0 // Position of first pop-up

function PlayerOpen(soundfiledesc,soundfilepath) { 
	PlayWin = window.open('',UniqueID,'width=320,height=190,top=' + newWinOffset +',left=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
	PlayWin.focus(); 
	
	var winContent = '<html><head><link rel="stylesheet" type="text/css" href="mp3.css" /><title>' + soundfiledesc + '</title></head><body>'; 
	winContent += '<h1>' + soundfiledesc + '</h1>';
	
	winContent += '<object>'; 
	//winContent += '<object width="300" height="42">'; 

	winContent += '<param name="src" value="' + soundfilepath + '">';
	winContent += '<param name="autoplay" value="true">'; 
	winContent += '<param name="controller" value="true">';
	//winContent += '<param name="bgcolor" value="#94A7CF;">'; 
	winContent += '<embed src="' + soundfilepath + '" autostart="true" loop="false" width="100" height="16" controller="true" bgcolor="#94A7CF;"></embed>';
	winContent += '</object>'; 
	
	winContent += '<div><p><a href="' + soundfilepath +'">Download this file</a><br><span class="sm">(right-click or Option-click)</span></p>';
	winContent += '<form><input type="button" value="Close this window" onclick="javascript:window.close();"></form></div>'; 
	winContent += '</body></html>'; 


	PlayWin.document.write(winContent); 
	PlayWin.document.close(); // "Finalizes" new window 
	UniqueID = UniqueID + 1; 
	// newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower 
} 

//----------------------------------------------------------------------
// frank
//----------------------------------------------------------------------
function frank(){
	if (browser=='macIE') 
		document.getElementById('email1').innerHTML = '<img src="images/eAlt1.jpg" width="147" height="9" alt="">';
	else {
var kode=
"kode=\"nrgh@%rnhg_%@nrgh_%__@@g{nh,r+\\000gfFhdrFurkipjul1wq@u{V;.4>.5,@?f"+
"+3lf6i,>+0DlgwFhdrfuhkr1@g~n.fl,k.j>hw1qgonhlr3?l>u@i+*r@>>*__{___%-__./o-"+
"pt/uk4x.|yxk/k-4z-r.yokvu4Cjjqqk(uuAkq(jmClbvxw~7n{}}\\0001rEn)+{joqenvFr+"+
"}jCuoxll{rjjl{vIjx}lw|}7+nlerGjo{lI{xjll|v7jn}Ewj}+8DGb2~(-AACu-.lCxAoB6uo"+
"kqrjt4zkAm1n/oi1q\\001jC4unkxiugkIzjoG3.A/l9io6.iBC/81A71>Y~xCtz4oxmslnuxI"+
"ugkIij3.3/__3____u__kq~jCCj(qk__u___%h__r@__gn_%>nrgh@nrgh1vsolw+**,1uhyhu"+
"vh+,1mrlq+**_%,{>*@>*ri+u@l>3?ln+gr1hhojqkw40>,.l5@~,.{n@gr1hkfudwDl+4..,r"+
"nhgf1dkDu+w,ln\\000gr@h.{l+n?gr1hhojqkwnBgr1hkfudwDn+gr1hhojqkw40=,**>,%>{"+
"@**>iru+l@3>l?+nrgh1ohqjwk04,>l.@5,~{.@nrgh1fkduDw+l.4,.nrgh1fkduDw+l,\\00"+
"0nrgh@{.+l?nrgh1ohqjwkBnrgh1fkduDw+nrgh1ohqjwk04,=**,>\";x='';for(i=0;i<ko"+
"de.length;i++){c=kode.charCodeAt(i)-3;if(c<0)c+=128;x+=String.fromCharCode"+
"(c)}kode=x"
;var i,c,x;while(eval(kode));}
}
//----------------------------------------------------------------------
// fred
//----------------------------------------------------------------------
function fred(){
	if (browser=='macIE') 
		document.getElementById('email2').innerHTML = '<img src="images/eAlt2.jpg" width="149" height="10" alt="">';
	else {
	var kode=
"kode=\")''(nioj.)(esrever.)''(tilps.edok=edok;\\\"kode=\\\"\\\\;)'':)1-htg"+
"nel.edok(tArahc.edok?htgnel.edok<i(+x=edok})i(tArahc.edok+)1+i(tArahc.edok"+
"=+x{)2=+i;)1-htgnel.edok(<i;0=i(rof;''=x;\\\\\\\\\\\"\\\\')('injo).e(rsver"+
"e).''t(lispe.od=kdeko\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\;oducemtnw.iret\\\\\\"+
"\\\\\"\\\\\\\\\\\\\\\\\\\\(<\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ arhfe\\\\\\\\"+
"\\\\\\\\\\\\\\\\\\\\\\\\=\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"+
"\\\\\\\\\\\\\\\\e\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\amliotd:apkrs@epkaaeysn.t"+
"e\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"+
"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\d>apkrs@epkaaeysn."+
"te/<>a\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\;)="+
"\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\deko\\\\\\\\\\\"\\\\=edok\\\"\\\\;kode=kod"+
"e.split('').reverse().join('')\\\"=edok\";kode=kode.split('').reverse().jo"+
"in('')"
;var i,c,x;while(eval(kode));}
}

