	if ( navigator.appVersion.indexOf("2.") != -1 ) check = false;
	if (( navigator.appVersion.indexOf("3.") != -1 ) && ( navigator.appName.indexOf("Explorer") != -1 )) check = false; else check = true;
	
	function money_format(amount) {
		var amount;
		amount = amount*100;
		amount = Math.round(amount);
		if ( isNaN(amount) )
			amount = 0.00;
		if ( amount > 99999999999 ) 
			return "NaN";
		
		cen = amount%100;
		if ( cen < 0 )
			cen = ".00";
		else if ( cen < 10 )
			cen = ".0" + cen;
		else if ( cen < 100 )
			cen = "." + cen;
		else
			cen = cen;
		
		amount = parseInt(amount/100);
		hun = amount - ( ( parseInt(amount/1000) ) * 1000 );
		if ( hun > 0 && hun < 1000 )
			hun = hun;
		else if ( hun == 0 && amount >= 1000 )
			hun = '000';
		else
			hun = '';
	
		amount = parseInt(amount/1000);
		tho = amount -( ( parseInt(amount/1000) ) * 1000 );
		if ( tho > 0 && tho < 1000 )
			tho = tho + ",";
		else if ( tho == 0 && amount >= 1000 )
			tho = '000,';
		else
			tho = '';
	
		amount = parseInt(amount/1000);
		mil = amount - ( ( parseInt(amount/1000) ) * 1000 );
		if ( mil > 0 && mil < 1000 )
			mil = mil + ",";
		else
			mil = '';
	
		return mil+tho+hun+cen;
	}
	
	function runBar(pos,len) {
		if ( pos == -1 ) { // stop running
			clearTimeout(timerID);
			return;
		}
		if ( pos == len ) {
			for ( x = 1; x <= len; x++ ) {
				$('b'+x+'w').style.display = "";
				$('b'+x+'f').style.display = "none";
			}
			timerID = setTimeout("runBar(0,"+len+")",500);
		}
		pos++;
		if ( $('b'+pos+'w') )
			$('b'+pos+'w').style.display = "none";
		if ( $('b'+pos+'f') )
			$('b'+pos+'f').style.display = "";
		timerID = setTimeout("runBar("+pos+","+len+")",500);
	}
	
	function writeBar(len){
		path = "http://"+top.location.host+"/ml/images/progressbar/";
		document.write('<img src="'+path+'pble.gif" id="b1w"><img src="'+path+'pblf.gif" id="b1f" style="display:none">');
		for ( x = 2; x < len; x++ )
			document.write('<img src="'+path+'pbme.gif" id="b'+x+'w"><img src="'+path+'pbmf.gif" id="b'+x+'f" style="display:none">');
		document.write('<img src="'+path+'pbre.gif" id="b'+len+'w"><img src="'+path+'pbrf.gif" id="b'+len+'f" style="display:none">');
	}
	
	function startVideo(lang,file,title) {
		if ( file ) window.open("http://"+top.location.host+"/ml/about/showvideo.php?lang="+lang+"&vid="+file+"&ttl="+title+"&w=640&h=480","","toolbar=no,directories=no,location=no,status=yes,menubar=no,resizable=yes,scrollbars=no,width=680,height=590");
	}
	
	function isInteger(s) {
		return (s.toString().search(/^-?[0-9]+$/) == 0);
	}
	
	function validEmail(adr) {
		var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		return ( filter.test(adr) ? true : false );
	}
	
	function showLink(lnk,on) {
		$(lnk).style.textDecoration = on ? "underline" : "";
		$(lnk).style.color = on ? "orange" : "";
	}
	
	function $(id) {
		return document.getElementById(id);
	}
	
	function in_array (needle, haystack, argStrict) {
		var key = '', strict = !!argStrict;
		
		if ( strict ) {
			for ( key in haystack )
				if ( haystack[key] === needle )
					return true;
		} else {
			for ( key in haystack )
				if ( haystack[key] == needle )
					return true;
		}
		return false;
	}

/*	OLD FUNCTIONS
	
	function imgsize(name) {
		if ( self.screen ) {
			if ( screen.width < 1024 ) {
				origwidth = document[name].width;
				document[name].width = ( ( origwidth * screen.width ) / 1024 );
			}
		}
	}

	window.onload = function ImagesResize() {
		for ( x = 0; x < 20; x++ )
			if ( document['img'+x] )
				imgsize('img'+x);
	}
*/