function only_num(o, r) {

  var s = o.value;

  var s2 = "";

  var cs = "0123456789" + (r ? ".," : "");

  var err = false;

	for (var i = 0; i < s.length; i++) { 

    if 

      (cs.indexOf(s.charAt(i)) >= 0) 

    { 

        s2 += s.charAt(i); 

    } else {

      err = true; 

    }

  }

	if (err) o.value = s2;

}





	   $(document).ready(
				function(){
					
					$('ul#portfolio').innerfade({
						speed: 1000,
						timeout: 5000,
						type: 'sequence',
						containerheight: 'auto',
						animationtype: 'fade'
					});

			});