function UnCryptMailto(s, shift) {
	var n=0;
	var r='';
	for(var i=0;i<s.length;i++) { 
		n=s.charCodeAt(i); 
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(shift)); 
	}
	return r;
}
function linkTo_UnCryptMailto(s, shift)	{
	location.href=UnCryptMailto(s, shift);
}
function openExhibitorsWindow(language,id,width,height) {
	popupWin = window.open('exhibitors_show.php?l=' + language + '&id='+ id, 'exhibitors', 'width='+width+',height='+height+',left=100,top=100,scrollbars=1');
	popupWin.focus();
}
function openExhibitorsExternWindow(url,width,height) {
	popupWin = window.open(url, 'exhibitors', 'width='+width+',height='+height+',left=100,top=100,scrollbars=1');
	popupWin.focus();
}
function openNewsWindow(html_file,width,height) {
	popupWin = window.open('popup.php?src=' + html_file, 'popup', 'width='+width+',height='+height+',left=100,top=100');
	popupWin.focus();
}
function openGalleryWindow(html_file,width,height) {
	popupWin = window.open('popup.php?folder=gallery&src=' + html_file, 'popup', 'width='+width+',height='+height+',left=100,top=100');
	popupWin.focus();
}

$(document).ready(function(){
	$("#navigation/ul/li/a").mouseover(function(){
		$(this).children().attr("src",function(){return("/images/"+$(this).attr("id")+"_on.gif")});
	}).mouseout(function(){
		$(this).children().attr("src",function(){return("/images/"+$(this).attr("id")+".gif")});
	}).focus(function(){
		$(this).children().attr("src",function(){return("/images/"+$(this).attr("id")+"_on.gif")});
	}).blur(function(){
		$(this).children().attr("src",function(){return("/images/"+$(this).attr("id")+".gif")});
	});
	$("a[@rel='external']").attr("target","_blank");
});