function tab() 
{ 
$("#f_bank").addClass('current');
$('#f_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#f_det").load("en_h_fatwa.php?type=1");
///////////
$("#m_des").addClass('current');
$('#m_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#m_det").load("en_h_conf.php?type=1");
///////////
$("#articals").addClass('current');
$('#d_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#d_det").load("en_h_data.php?type=1");
}
function f_bank() 
{
$('#f_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#f_det").load("en_h_fatwa.php?type=1");
if (!$("#f_bank").hasClass('current')) {      
 //remove the current class from all LI      
$('#fatwa_s').removeClass('current');  
$('#f_send').removeClass('current');
$('#f_hot').removeClass('current');
//After cleared all the LI, reassign the class to the selected tab  
$("#f_bank").addClass('current');    
} 
}

function fatwa_s() 
{
$('#f_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#f_det").load("en_h_fatwa.php?type=2");
if (!$("#fatwa_s").hasClass('current')) {      
 //remove the current class from all LI      
$('#f_bank').removeClass('current');  
$('#f_send').removeClass('current');
$('#f_hot').removeClass('current');
//After cleared all the LI, reassign the class to the current tab  
$("#fatwa_s").addClass('current');    
} 
}

function f_send() 
{
$('#f_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#f_det").load("en_h_fatwa.php?type=3");
if (!$("#f_send").hasClass('current')) {      
 //remove the current class from all LI      
$('#f_bank').removeClass('current');  
$('#fatwa_s').removeClass('current');
$('#f_hot').removeClass('current');
//After cleared all the LI, reassign the class to the current tab  
$("#f_send").addClass('current');    
} 
}
function f_hot() 
{
$('#f_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#f_det").load("en_h_fatwa.php?type=4");
if (!$("#f_hot").hasClass('current')) {      
 //remove the current class from all LI      
$('#f_bank').removeClass('current');  
$('#fatwa_s').removeClass('current');
$('#f_send').removeClass('current');
//After cleared all the LI, reassign the class to the current tab  
$("#f_hot").addClass('current');    
} 
}
//////////////////////
function m_des() 
{
$('#m_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#m_det").load("en_h_conf.php?type=1");
if (!$("#m_des").hasClass('current')) {      
 //remove the current class from all LI      
$('#m_conf').removeClass('current');  
$('#imam_w').removeClass('current');
//After cleared all the LI, reassign the class to the current tab  
$("#m_des").addClass('current');    
} 
}

function m_conf() 
{
$('#m_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#m_det").load("en_h_conf.php?type=2");
if (!$("#m_conf").hasClass('current')) {      
 //remove the current class from all LI      
$('#m_des').removeClass('current');  
$('#imam_w').removeClass('current');

//After cleared all the LI, reassign the class to the current tab  
$("#m_conf").addClass('current');    
} 
}
function imam_w() 
{
$('#m_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#m_det").load("en_h_conf.php?type=3");
if (!$("#imam_w").hasClass('current')) {      
 //remove the current class from all LI      
$('#m_des').removeClass('current');  
$('#m_conf').removeClass('current');
//After cleared all the LI, reassign the class to the current tab  
$("#imam_w").addClass('current');    
} 
}

/////////////////////////


function articals() 
{
$('#d_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#d_det").load("en_h_data.php?type=1");
if (!$("#articals").hasClass('current')) {      
 //remove the current class from all LI      
$('#papers').removeClass('current');  
$('#books').removeClass('current');
$('#media').removeClass('current');
//After cleared all the LI, reassign the class to the selected tab  
$("#articals").addClass('current');    
} 
}

function papers() 
{
$('#d_det').html('<p><div align="center"><img src="map_loading.gif"/></div></p>'); 
$("#d_det").load("en_h_data.php?type=2");
if (!$("#papers").hasClass('current')) {      
 //remove the current class from all LI      
$('#articals').removeClass('current');  
$('#books').removeClass('current');
$('#media').removeClass('current');
//After cleared all the LI, reassign the class to the current tab  
$("#papers").addClass('current');    
} 
}

function books() 
{
$('#d_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#d_det").load("en_h_data.php?type=3");
if (!$("#books").hasClass('current')) {      
 //remove the current class from all LI      
$('#articals').removeClass('current');  
$('#papers').removeClass('current');
$('#media').removeClass('current');
//After cleared all the LI, reassign the class to the current tab  
$("#books").addClass('current');    
} 
}
function med() 
{
$('#d_det').html('<p><div align="center"><img src="map_loading.gif"  /></div></p>'); 
$("#d_det").load("en_h_data.php?type=4");
if (!$("#media").hasClass('current')) {      
 //remove the current class from all LI      
$('#articals').removeClass('current');  
$('#papers').removeClass('current');
$('#books').removeClass('current');
//After cleared all the LI, reassign the class to the current tab  
$("#media").addClass('current');    
} 
}