jQuery.noConflict();
jQuery(function(){

jQuery("#topNavigation li a").mouseenter(function(){
	jQuery(this).addClass("hasFocus");
	var id=jQuery(this).attr("id");
    setTimeout(function(){ 
		
		jQuery("#topNavigation li ul li a").css('background-image', 'none');
        if (jQuery("#"+id).hasClass("hasFocus")){
			jQuery("#"+id).css('background-image', 'url(http://www.learningrx.com/images/down-arrow.png)');
            jQuery("#a"+id).slideDown();
      }}, 500 );
	
});

jQuery("#topNavigation li").mouseleave(function(){
	jQuery("a:first", this).removeClass("hasFocus");
	jQuery("a:first", this).css('background-image', 'url(http://www.learningrx.com/images/down-arrow.png)');
	jQuery("#topNavigation li ul li a").css('background-image', 'none');
	jQuery("ul", this).slideUp();
}); 

jQuery("#rightMenu li").click(function(){
	jQuery("#rightMenu li a:first").css('background-image', 'url(http://www.learningrx.com/images/up-arrow.gif)');
	var len = jQuery("#rightMenu li").length;
	for(b=1;b<=len;b++)
		jQuery("#sub"+b).css('background-image', 'url(images/http://www.learningrx.com/arrow-down.gif)');
	jQuery("#rightMenu li ul").slideUp();
	if(jQuery("ul", this).css("display") == "none")
	{
		jQuery("ul", this).slideDown();
		jQuery("a:first", this).css('background-image', 'url(http://www.learningrx.com/images/arrow-up.gif)');
	}
});

});


function frm_onload(frmname)
{
frmname.frameElement.height = frmname.document.body.scrollHeight+20;
}
