// JavaScript Document

function initRollovers() {
    if (!document.getElementById) return
      
    var aPreLoad = new Array();
    var sTempSrc;
    var aImages = document.getElementsByTagName('img');
    for (var i = 0; i < aImages.length; i++) {
	if (aImages[i].className == 'rollover') {
	    var src = aImages[i].getAttribute('src');
	    var ftype = src.substring(src.lastIndexOf('.'), src.length);
	    var hsrc = src.replace(ftype, '_over'+ftype);

	    aImages[i].setAttribute('hsrc', hsrc);
	    
	    aPreLoad[i] = new Image();
	    aPreLoad[i].src = hsrc;
	    
	    aImages[i].onmouseover = function() {
		sTempSrc = this.getAttribute('src');
		this.setAttribute('src', this.getAttribute('hsrc'));
	    }
	    aImages[i].onmouseout = function() {
		if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_over'+ftype, ftype);
		this.setAttribute('src', sTempSrc);
	    }
	}
    }
}

window.onload = initRollovers;

//zh-TW Chinese (Traditional) zh-CN Chinese (Simplified)

function CreateNavigation()
{
	document.write('<table height="20"> ');
	document.write('<tr> ');
	document.write('<td width="30"><a target="_blank" href="http://translate.google.com/translate?client=tmpg&hl=en&u=');
	document.write( window.location.href );
	document.write('&langpair=en|nl"><img alt="Nederlands/Dutch" border="0" src="img/flag_nl.gif" height="20" width="30" align="absmiddle" /></a></td>  ');
	document.write('<td width="30"><a target="_blank" href="http://translate.google.com/translate?client=tmpg&hl=en&u=');
	document.write( window.location.href );
	document.write('&langpair=en|cs"><img alt="&#268;esky/Czech" border="0" src="img/flag10.jpg" height="20" width="30" align="absmiddle" /></a></td>  ');                  
	document.write('<td width="30"><a target="_blank" href="http://translate.google.com/translate?client=tmpg&hl=en&u=');
	document.write( window.location.href );
	document.write('&langpair=en|zh-CN"><img alt="Chinese (Simplified)" border="0" src="img/flag9.jpg" height="20" width="30" align="absmiddle" /></a></td>  ');  
	document.write('<td width="30"><a target="_blank" href="http://translate.google.com/translate?client=tmpg&hl=en&u=');
	document.write( window.location.href );
	document.write('&langpair=en|ru"><img alt="Russian" border="0" src="img/flag_ru.gif" height="20" width="30" align="absmiddle" /></a></td>         ');          
	document.write('<td width="30"><a target="_blank" href="http://translate.google.com/translate?client=tmpg&hl=en&u=');
	document.write( window.location.href );
	document.write('&langpair=en|de"><img alt="Deutsch/German" border="0" src="img/flag2.jpg" height="20" width="30" align="absmiddle" /></a></td>  ');
	document.write('<td width="30"><a target="_blank" href="http://translate.google.com/translate?client=tmpg&hl=en&u=');
	document.write( window.location.href );
	document.write('&langpair=en|it"><img alt="Italiano/Italian" border="0" src="img/flag5.jpg" height="20" width="30" align="absmiddle" /></a></td>      ');              
	document.write('<td width="30"><a target="_blank" href="http://translate.google.com/translate?client=tmpg&hl=en&u=');
	document.write( window.location.href );
	document.write('&langpair=en|es"><img alt="Espa&#241;ol/Spanish" border="0" src="img/flag3.jpg" height="20" width="30" align="absmiddle" /></a></td>     ');                 
	document.write('</tr>  ');            
	document.write('</table>');
}


function noSpam(user,domain) {
		locationstring = "mailto:" + user + "@" + domain;
		window.location = locationstring;
	}
	
	