jQuery(function(){
				jQuery('.imagebutton, .imagelink').each(function(){
					var tmp = 0;
					//alert('foop');
					jQuery.each(jQuery(this).children(),function(index,value){
						//alert(jQuery(value).width());
						tmp = tmp + jQuery(value).width();
					});
					
					//alert ("gesamt "+tmp);
					if(jQuery(this).attr('class') == 'imagebutton')
					{
						tmp = tmp + 6; //18
					/*
						 if(checkBrowserName('MSIE')){  
						  tmp = tmp + 12;
						 }  
						*/					
					}
					//alert(tmp);
					if(navigator.userAgent.indexOf("Mac OS X") != -1 && checkBrowserName('firefox')) tmp = tmp + 2;
					jQuery(this).css('width',tmp+'px');
				});
				
				//buttons big hover
				jQuery('.imagelink, .imagebutton').each(function(){
					jQuery(this).hover(
					  function () {
					  
						jQuery(this).children('.big_button_first').addClass('big_button_first_hover');
						jQuery(this).children('.big_button_last').addClass('big_button_last_hover');
						jQuery(this).children('.big_button_main').addClass('big_button_main_hover');
						
						//jQuery(this).children('.small_button_first').addClass('small_button_first_hover');
						//jQuery(this).children('.small_button_last').addClass('small_button_last_hover');
						//jQuery(this).children('.small_button_main').addClass('small_button_main_hover');
					  }, 
					  function () {
					  
						jQuery(this).children('.big_button_first').removeClass('big_button_first_hover');
						jQuery(this).children('.big_button_last').removeClass('big_button_last_hover');
						jQuery(this).children('.big_button_main').removeClass('big_button_main_hover');
						
						//jQuery(this).children('.small_button_first').removeClass('small_button_first_hover');
						//jQuery(this).children('.small_button_last').removeClass('small_button_last_hover');
						//jQuery(this).children('.small_button_main').removeClass('small_button_main_hover');
					  }
					 );
				});
				
			
				
			});
			
		function checkBrowserName(name){  
				var agent = navigator.userAgent.toLowerCase();  
				if (agent.indexOf(name.toLowerCase())>-1) {  
					return true;  
				}  
				return false;  
			}

