public void hover(){
    	if (this.type==0){
    		if (parent.mouseX >= this.x && parent.mouseX <= (this.x+this.width) && parent.mouseY >= this.y && parent.mouseY <= 
    				(this.y+this.height)){
    		  this.hover = 1;
    			
    		}else{
    			this.hover = 0;
    		}
    	}    	
    	
    }