
function show(elId){
      var el = $(elId);
      test=el.getStyle('height');
      if(test=="0px"){
        el.setStyle('height','auto');
      }else{
        el.setStyle('height','0px');      
      }
      return;
          
}

window.addEvent('domready', function() {
  if($('artistNoDates')){
      var myVerticalSlide = new Fx.Slide('artistNoDates');
      myVerticalSlide.hide();
    
      $('v_slidetoggle').addEvent('click', function(e){
      		e.stop();
      		myVerticalSlide.toggle();
      	});
  } 	
}
);









var x;
var container;



//mooMessageBox for mootools version 1.2
// does not work with previous mootools versions
// more tools at www.artviper.net
function msgBox(title,message,width,height,type,speed){
	this.title = title;
	this.message = message;
	this.width = width;
	this.height= height;
	this.type = type;
	this.speed = speed;
	this.buttonClicked = "";
	this.createBox = createBox;
	this.createBox();
};



function createBox(){

	var wwidth = "";
	if(Browser.Engine.trident){
			wwidth = document.body.clientWidth.toInt();
	}else{
			wwidth =  window.innerWidth.toInt();
			
		}
		
	wwidth = (wwidth-this.width)/2;
	
	// Add the title line	
	var LineWidth = this.width - 10;
	var titleLine = new Element('div', {
		'styles': {
			'width': LineWidth,
			'height':'1px',
			'padding':'0px 0px',
			'line-height':'5px',
			'color':'#000',
			'font-size':'11px',
			'font-weight':'bold'
			
		}
	});
	// Add the container messageBox
	var	container = new Element('div',{
		'styles': {
			'cursor':'pointer',
			'width':this.width,
			'height':'auto',
			'display':'block',
			'position':'fixed',
			'background-color':'#FDFB31',
			'opacity':'0.9',
			'margin-bottom':'15px',
			'padding-bottom':'10px',
			'left':wwidth,
			'top':'200px',
			'color':'#000'
		}
	})
	container.setAttribute('id','myContainer');
	// Add the message in the inside container
	var innerContent = new Element('div',{
	    	'styles': {
				'padding':'10px'
		}
	});
	innerContent.setAttribute('id','myInnerContent');
	
	// Add the close button top right
	var closeBtn = new Element('img',{		
		'styles':{
			'position':'absolute',
			'right':0,
			'top':0,
			'width':'18px',
			'height':'18px'
		}
	});
	
	closeBtn.addEvent('click',function(){
		container.dispose();
		
		return true;
	})
	 


	closeBtn.src = "/smarty/templates/tp/img/closebtn.gif";
	innerContent.innerHTML = this.message;
	titleLine.innerHTML = this.title;
	container.injectInside(document.body);
	closeBtn.injectInside(titleLine);
	titleLine.injectInside(container);


	
	var myEffect = new Fx.Morph(container, { duration: this.speed, wait:true, transition:Fx.Transitions.linear}).chain(function(){
				innerContent.injectInside(container); 
			});
			
			
	myEffect.start({ 
				'height':[0,this.height]
	});
	
		

  new Drag(container);

}

// ENDE MooMsgBox


function setBoxContent(b){
   c=$(b).get('html');


  if( (typeof(x)=="object") && ( $('myContainer') ) ){
         $('myInnerContent').innerHTML = c;
  }else{
    	x = new msgBox("",c,350,120,2,350);
  }
  
  
  
  
    
}


