function numberOnly(evt) {

	evt = (evt) ? evt : ((window.event) ? event : null);

    if (evt) {

       var elem = (evt.target) ? evt.target :

          ((evt.srcElement) ? evt.srcElement : null);

       if (elem) {

           var charCode = (evt.charCode) ? evt.charCode :

               ((evt.which) ? evt.which : evt.keyCode);

           if ((charCode < 32 ) ||

               (charCode > 44 && charCode < 47) ||

               (charCode > 95 && charCode < 106) ||

               (charCode > 47 && charCode < 58) || charCode == 188 || charCode == 191 || charCode == 190  || charCode == 110) {

               return true;

           } else {

               return false;

           }

       }

    }

}
function getRow(val){
	document.getElementById("row"+val).style.display="block";
}
function checkAll( n,count ){
	for (i=0; i < count; i++) {
		if(document.getElementById(n+'all').checked){
			document.getElementById(n+i).checked=true;
		}else{
			document.getElementById(n+i).checked=false;
		}
	}
}

$(function()
{
    $("#navigation>div>a>div>img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });

    $("#navigation2>div>a>div>img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });

    $("#navigation3>div>a>div>img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });

    $("#navigation4>div>a>div>img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });

    $("#navigation5>div>a>div>img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });

    $("#navigation6>div>a>div>img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });

    $("#navigation7>div>a>div>img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });

    $("#navigation8>div>a>div>img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });

    $("ul.menu li a.x img").bind("mouseenter", function (e) {
        $(this).stop().animate({
            opacity: 1
        }, "middle");
    }).bind("mouseleave", function (e) {
        $(this).stop().animate({
            opacity: 0
        }, "middle");
    });
});
