function onlyNum(event, keyRE) {
	
	var keyc = event.keyCode;
	var charc = event.charCode;
    
    if ( typeof(charc) != 'undefined' && charc > 0 && String.fromCharCode(charc).search(keyRE) != (-1) ) {
        return true;
    }
	
    if ( typeof(keyc) != 'undefined' ) {
	    if ( keyc > 0 && String.fromCharCode(keyc).search(keyRE) != (-1) ) {
	        return true;
	    }
	    
	    if ( charc != keyc && keyc.toString().search(/^(8|9|13|45|46|35|36|37|39)$/) != (-1) ) {
	        return true;
	    }
	    
	    if ( typeof(charc) != 'undefined' && charc == keyc && keyc.toString().search(/^(8|9|13)$/) != (-1) ) {
	        return true;
	    }
    }
    
    return false;
}

var timerId = 0;

$(function() {
	setSwitchInterval();
});

function setSwitchInterval() {
    timerId = setInterval( 'switchimage()', 5000 );
}
function switchimage() {
    $('#img_slides').simplefade();
}
