	var switchbox={
	
		switchTime:5000,
		init:function(){
			jQuery('.switchbox').each(function(){
				this.timerLock=false;
				jQuery(this).find('.switchitem:first').addClass('switchactive');
				jQuery(this).find('.switchblock:first').addClass('activeblock');
				jQuery(this).find('.switchitem').each(function(index){
					jQuery(this).hover(function(){
						switchbox.hover(this,index);
					},function(){
						switchbox.hoverOut(this);
					});
				});
				jQuery(this).everyTime(switchbox.switchTime,1,function(){
					switchbox.rotate(this);
				});
			});
		},
		rotate:function(rotateObject){
			if(!rotateObject.timerLock){
				nextItem=jQuery(rotateObject).find('.switchitem.switchactive').next('.switchitem');
				nextBlock=jQuery(rotateObject).find('.switchblock.activeblock').next('.switchblock');
				jQuery(rotateObject).find('.switchitem.switchactive').removeClass('switchactive');
				jQuery(rotateObject).find('.switchblock.activeblock').removeClass('activeblock');
				if(nextItem.length===1){
					nextItem.addClass('switchactive');
					nextBlock.addClass('activeblock');
				}else{
					jQuery(rotateObject).find('.switchitem:first').addClass('switchactive');
					jQuery(rotateObject).find('.switchblock:first').addClass('activeblock');
				}
			}
		},
		hover:function(hoverObject,index){
			hoverObject.parentNode.timerLock=true;
			jQuery(hoverObject.parentNode).find('.switchitem.switchactive').removeClass('switchactive');
			jQuery(hoverObject.parentNode).find('.switchblock.activeblock').removeClass('activeblock');
			jQuery(hoverObject).addClass('switchactive');
			jQuery(hoverObject.parentNode).find('.switchblock').eq(index).addClass('activeblock');
		},
		hoverOut:function(hoverObject){
			hoverObject.parentNode.timerLock=false;
		}
	}

