var Link = Class.create({
	
  
  initialize: function() {

    this.pe = 0;

  },
  
  buttonOver: function(o){
  	Element.extend(o);
  	o.setStyle({backgroundImage: 'url(../image/button1.gif)', color:'#006699'});
  },
  buttonOut: function(o){
  	Element.extend(o);
  	o.setStyle({backgroundImage:'url(../image/button0.gif)', color:'#ffffff'});
  	
  },
  iluBig: function(o){
    //o.up().setStyle({width:'530px'});
    this.pe = new PeriodicalExecuter(function(pe){
	  Element.extend(o); 
	  var h = o.getWidth();
	  h = h+1;
	  if(h>510){pe.stop(); return;}
	  o.setStyle({width:h+'px'});

	      
	}.bind(this), 0.005);	
  },
  
  clickJa: function(id, nr){
  	
  	if(nr == 3){
  		
  		window.location.href="../angebot/"+id;
  		return false; 
  	}
  	var opt = {
	  postBody: 'nr=1&nav_id='+id+'&pos='+nr,
	  		onComplete: function(t,j){   

	  			if(j.error == 'true'){
	  				alert(j.msg);
	  		    }else{
	  		    	
	  		    	$('iluHolder').update(j.html);
	  		    }
	  	}  }
	  	new Ajax.Request('../function/server_ajax.php', opt);
  },
  
  blah: function(){}

  
});


var link = new Link();