$(function() {
            $('#rightmenu #menu > li').hover(
                function () {
                    var $this = $(this);
                    $('a.innactive',$this).stop(true,true).animate({
                            'right':'90px'
                        }, 300);
                    
                },
                function () {
                    var $this = $(this);
                    $('a.innactive',$this).stop(true,true).animate({
                            'right':'-59px'
                        }, 300);
                    
                }
            );
        });

/*$(function() {
					
					$(".customizedCAL").datepicker({showOn: 'both', buttonImage:'/FEO.Display/CENTRAL-STAGING/images/calender.png', buttonImageOnly: false});
					$(".customizedCAL").datepicker({ dateFormat: 'dd-mm-yy'});
$(".customizedCAL").datepicker({
							changeMonth: true,
							changeYear: true,
							yearRange: '1900:2100'

						});
						
						
					});*/
			

	
		
		$(document).ready(function()
{

/*$("div.eventsLeft a").click(function()
{
	var patt = new RegExp($(this).attr('href').replace("?","\\?") + "$");
	if(String(window.location).match(patt))
	{
		$(this).removeClass("active");
		$(this).addClass("active");
	}

return false;
});*/

    $("#customizedCB").click(function(srcc)
    {
        if ($(this).hasClass("checkBox"))
        {
            $(this).removeClass("checkBox");
            $(this).addClass("checkBoxClear");
						document.getElementById('customizedCB').getElementsByTagName('input')[0].checked = true;
        }
        else
        {
            $(this).removeClass("checkBoxClear");
            $(this).addClass("checkBox");
						document.getElementById('customizedCB').getElementsByTagName('input')[0].checked = false;
        }
    });        
});


function TieButton(e,id)
{
	
	try{
		if (!e) var e = window.event;
		var btn = document.getElementById(id);

		if(btn == null){
			btn = document.getElementsByName(id)[0];
		}
			
		if(e.which || e.keyCode)
		{
			if ((e.which == 13) || (e.keyCode == 13)) {
				btn.click();
				return false;
			}
		} 
		else {
			alert('y');return true;
		} 
	}catch(err){ 
		
	}
}
