var db=document.body;
	var imag=document.getElementById('wallpaper');
	//var img=$('#wallpaper');

	var dbsize={}; //needed to store body size
	var imgsrc=imag.src; //needed to store images src
	var keyStop=function(e){
		var e=window.event||e||{};
		var tag=e.target.tagName.toLowerCase();
		if(tag!='textarea'&&!(tag=='input'&&(e.target.type=='text'||e.target.type=='password'))){ //are the user not writing?
			if(e.keyCode==32||e.keyCode==39||e.keyCode==40){ //Did he press any of the "scrolling-keys"? (down, right, and space key)
				if(e.preventDefault)e.preventDefault();
				else e.returnValue=false;
			}
		}
	}

	if(this.addEventListener)window.addEventListener('keydown',keyStop,false);
	else window.attachEvent('onkeydown',keyStop);

	setInterval(function(){
		window.scrollTo(0,0);
		if(imag.complete){ //check if image has loaded
			if(db.clientWidth!=dbsize.w||db.clientHeight!=dbsize.h||imag.src!=imgsrc){ //check if size or img size has changed
				imgsrc=imag.src; //store current src
				var dbsizew=db.clientWidth; //store current body width
				var dbsizeh=db.clientHeight; //store current body height

				var newwidth=Math.round(dbsizeh*(imag.offsetWidth/imag.offsetHeight)); //calculate new width based on height
                var nextvar=dbsizew>newwidth?dbsizew:newwidth;
                imag.style.width=nextvar+'px'; //use the largest value of body-width and newwidht
				//and this is the real trick: if there's no specified height, the height is automaticly calculated relative to the with
			}
		}
	},300);



                           $("#sect_menubox_1").find(".sect_menubox_button").hoverIntent(function(){
						
							$(this).find('img').animate({opacity: 1.0},300);	
					       
                               
						}, function(){
							
							$(this).find('img').animate({opacity: 0.0},300);
					       							
						});  

                           $("#sect_menubox_2").find(".sect_menubox_button").hoverIntent(function(){
						
							$(this).find('img').animate({opacity: 1.0},300);	
					       
                               
						}, function(){
							
							$(this).find('img').animate({opacity: 0.0},300);
					       							
						});  
                        
                           $("#sect_menubox_3").find(".sect_menubox_button").hoverIntent(function(){
						
							$(this).find('img').animate({opacity: 1.0},300);	
                            
                               
						}, function(){
							
							$(this).find('img').animate({opacity: 0.0},300);
					       							
						});      
                        
                   
                 
                   
                        
                        
                                                                  