function popupPerson(strPerson){
	
	if (window.screenX){
		intLeft = window.screenX;
		intTop = window.screenY;
		intWidth = window.innerWidth;
		intHeight = window.innerHeight;
	}
	else {
		intLeft = window.screenLeft;
		intTop = window.screenTop;
		intWidth = document.body.offsetWidth;
		intHeight = document.body.offsetHeight;
	}
	
	var lngHeight = 341;
	if(strPerson=='Rohner') lngHeight = 421;
	
	intLeft = intLeft + intWidth/2 - 475;
	intTop = intTop+30;
	
	win = window.open('popupPerson'+strPerson+'.html','objPopupPerson','left=' + intLeft + ',top=' + (intTop) + ',width=949,height='+lngHeight+',scrollbars=no');

	win.focus();
}






var imgButton = new Array();

//initialize button
function imgButtonInit(_lyr){
	if(_lyr == null){
		_lyr = document
	}
	
	for(var i=0; i < _lyr.images.length;i++){
		if(_lyr.images[i].name.indexOf('but') != -1){
			imgButton[_lyr.images[i].name] = new ImgButton(_lyr.images[i]);
		}
	}
}

//button class
function ImgButton(_img) {	
	this.imgLo = new Image();
	this.imgOv = new Image();
	
	this.imgLo.src = _img.src;
	this.imgOv.src = _img.src.replace('_lo','_ov');
	
	this.locked = false;
	
	_img.button = this;
	this.img = _img;
	
	_img.lo = ImgButtonLo;
	_img.ov = ImgButtonOv;
	
	_img.lock = ImgButtonLock;
	_img.unlock = ImgButtonUnlock;
}

function ImgButtonLo(){
	if(!this.button.locked) this.src = this.button.imgLo.src
}

function ImgButtonOv(){
	if(!this.button.locked) this.src = this.button.imgOv.src;
}

function ImgButtonLock(){
	this.button.locked = true;
}

function ImgButtonUnlock(){
	this.button.locked = false;
}













