
function toggleSearchBox(box) {
	document.getElementById('branch').className = 'searchbox_title_inactive';
	document.getElementById('world').className = 'searchbox_title_inactive';
	document.getElementById(box).className = 'searchbox_title_active';
	
	document.getElementById('div_branch').style.display = 'none';
	document.getElementById('div_world').style.display = 'none';
	document.getElementById('div_'+box).style.display = 'block';
}
function toggleSearchBoxLong(box) {
	document.getElementById('branch').className = 'searchbox_title_inactive_long';
	document.getElementById('world').className = 'searchbox_title_inactive_long';
	document.getElementById(box).className = 'searchbox_title_active_long';
	
	document.getElementById('div_branch').style.display = 'none';
	document.getElementById('div_world').style.display = 'none';
	document.getElementById('div_'+box).style.display = 'block';
}

function mapOver(country){
	document.getElementById('worldmap').src = '/gfx/'+country+'.gif'
}

var dv='introcontent';

function divToggle(){
	if(dv == 'introcontent')
		{
		document.getElementById('introcontent').style.display = 'none';
		document.getElementById('masthead').style.display = 'block';
		dv='masthead';
		}
	else{
		document.getElementById('masthead').style.display = 'none';
		document.getElementById('introcontent').style.display = 'block';
		dv='introcontent';
	}
}

/* ----------- tooltip ----------- */
wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
    x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
    if (wmtt != null) {
        wmtt.style.left = (x + 10) + "px";
        wmtt.style.top  = (y + 10) + "px";
    }
}

function showWMTT(id) {
    wmtt = document.getElementById(id);
    wmtt.style.display = "block"
}

function hideWMTT() {
    wmtt.style.display = "none";
}



var win = null;
function c2pOpener(WinUrl, WinName, WinWidth, WinHeight) {
	Left = (screen.width) ? (screen.width-WinWidth)/2 : 0;
	Top = (screen.height) ? (screen.height-WinHeight)/2 : 0;
	settings = 'height='+WinHeight+', width='+WinWidth+', top='+Top+', left='+Left+', scrollbars=auto, resizable=no'
	win = window.open(WinUrl, WinName, settings);
	win.focus();
}
