function roll_over(img_name, img_src)
   {
   document[img_name].src = img_src;
   }


function bgcolor_mainmenu()
  {
				
	if(document.getElementById("contenttd").scrollHeight > 469 )
					{	
						JSFX_FloatTopDiv(1);
					}
				else   {
						JSFX_FloatTopDiv(0);
	    				}
	var sPath = window.location.pathname;
   	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);    
   	
		
	if(sPage == 'download_dasbodh.php' || sPage == 'contribute.php' || sPage == 'feedback.php' || sPage == 'send_feedback.php' || sPage == 'send_contribute.php' || sPage == 'contact.php')
	{
	
		
		if(document.getElementById("contenttd").scrollHeight > 469 )
				{		
					
					JSFX_FloatTopDiv(1);
		
				}
			else {
				JSFX_FloatTopDiv(0);
	   		   }
	}
	else
	    {		var sPath = window.location.pathname;
		   	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);    		   	
	    		var menu = ''
			var mainmenu = new Array();
			mainmenu[0] = 'journey'
			mainmenu[1] = 'download_lit'
			mainmenu[2] = 'download_aud'
			mainmenu[3] = 'event'
			mainmenu[4] = 'abhyas_upkram'	
			var i	    			    			
			for (i=0;mainmenu.length;i++)
			{
				
				var href= document.getElementById(mainmenu[i]).href 
				 var hreff = href.substring(href.lastIndexOf('/') + 1);
				if(hreff==sPage)
				{						
					if(document.getElementById("contenttd").scrollHeight > 469 )
						{		
							JSFX_FloatTopDiv(1);
						}
					else   {
							JSFX_FloatTopDiv(0);
						}
					menu = mainmenu[i]+'1'
					menu_prev = mainmenu[i-1]+'1'
					document.getElementById(menu).style.backgroundColor = '#ffffff'
					/*document.getElementById(menu).style.borderTop = '1px #b83f22 solid'
					document.getElementById(menu).style.borderLeft = '1px #b83f22 solid'
					document.getElementById(menu).style.borderRight = '1px #b83f22 solid'	*/				
				}				

			}
	    }		
   	
   }
   

            
