function navArtist(strURLContent,strURLNavigation,strColor){
	top.frames['frmNavigation'].location.href = strURLNavigation;
	top.frames['frmContent'].location.href = strURLContent;
}
document.navArtist = navArtist;


function gallery(strImage){
	document.images['imgGallery'].src = strImage;
}



function popupImpressum(){		
	var win = window.open('/popup_impressum.html','objImage','left='+((screen.width/2)-154)+',top='+((screen.height/2)-200)+',width=317,height=400');
}

function popupWelter(){		
	var win = window.open('/popup_welter.html','objImage','left='+((screen.width/2)-154)+',top='+((screen.height/2)-200)+',width=450,height=400');
}

function popupTicketsBestellen(_id){		
	var win = window.open('/popup_tickets_bestellen-de.asp?id='+_id,'objTicketsBestellen','left='+((screen.width/2)-154)+',top='+((screen.height/2)-200)+',width=485,height=500,scrollbars=yes');
}


function getSelectValue(_obj){
	return _obj.options[_obj.selectedIndex].value;
}


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.imgHi = new Image();
	
	this.imgLo.src = _img.src;
	this.imgHi.src = _img.src.replace('_lo','_hi');
	
	this.locked = false;
	
	_img.button = this;
	this.img = _img;
	
	_img.lo = ImgButtonLo;
	_img.hi = ImgButtonHi;
	
	_img.lock = ImgButtonLock;
	_img.unlock = ImgButtonUnlock;
}

function ImgButtonLo(){
	if(!this.button.locked) this.src = this.button.imgLo.src
}

function ImgButtonHi(){
	if(!this.button.locked) this.src = this.button.imgHi.src;
}

function ImgButtonLock(){
	this.button.locked = true;
}

function ImgButtonUnlock(){
	this.button.locked = false;
}