
function expandMenuItem(item){
	var i = document.getElementById(item);
	var p = i.parentNode ;
	if (i.style.display != 'block' ){
		i.previousSibling.className = 'collapse' ;		
		i.style.display = 'block' ;
	}else{
		i.style.display = 'none' ;
		i.previousSibling.className = 'expand' ;		
	}
}

function popPage(page){
	var properties = new Array (
		['location','no'],
		['menubar','no'],
		['resizable','no'],
		['scrollbars','yes'],
		['status','no'],
		['toolbar','no'],
		['width','500'],
		['height','400']
	);
	var useprops = '';
	var customarguments = new Array();	
	var p_width = 0;
	var p_height = 0 ;
	if (arguments[1]) {
		customarguments = arguments[1].split(',') ;
	}
	for (var i = 0  ; i < properties.length ; i ++ ) {
		var propset = false ;		
		for (var j = 0 ; j < customarguments.length ; j+=2) {
			if (customarguments[j] == properties[i][0]) {
				useprops += properties[i][0] +'=' + customarguments[j+1] ;
				if (properties[i][0] == 'width' ) {
					p_width = customarguments[j+1] ;
				}
				if (properties[i][0] == 'height' ) {
					p_height = customarguments[j+1] ;
				}
				propset = true ;		
			}	
		}
		if (!propset) {
			useprops += properties[i][0] +'=' + properties[i][1]
			if (properties[i][0] == 'width' ) {
				p_width = properties[i][1] ;
			}
			if (properties[i][0] == 'height' ) {
				p_height = properties[i][1] ;
			}
		}
		useprops += ','
	}
	if (page) {
		useprops += 'left=' + parseInt((screen.width - parseInt(p_width))/2) + ',top=' + parseInt((screen.height - parseInt(p_height))/2) ;
		window.open (baseHref + 'popup.php?page=' + page , 'popup' , useprops);
	}
}
//image map for Partnership Circle

function smInfo(sector) {
	if (sector == undefined) sector = "";	
	var infos = document.getElementById('mapcontainer').getElementsByTagName ('DIV') ;
	for (var i = 0 ; i < infos.length ; i ++ ) {
		if (infos[i].className == 'sectorinfo' ) {
			infos[i].style.display = 'none' ; 
		}	
	}
	var infobg = document.getElementById('mapinfobg') ;
	infobg.style.display = 'none' ;
	var cblock = document.getElementById ('sectorinfo_' + sector ) ;
	if (cblock){
		document.getElementById('mapinfobg_title').innerHTML = cblock.getAttribute('title') ;
		document.getElementById('mapinfobg_content').style.height = cblock.style.height;
		infobg.style.display = 'block' ;
		cblock.style.display = 'block' 
	}
}


