‘;
}
$(div+’ div.hotstories’).html(“https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”+txt+”https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”);
});
}
},300);
}// if div exist
}// if hass current
});
tab.mouseleave(function(){
clearTimeout(timer);
timer = null;
$(‘ul.main-nav-firstlevel li’).removeClass(‘current’); $(‘.main-nav-firstlevel li div.megamenuitem’).slideUp(‘fast’);
/*var div = ‘div#’+$(tab).children(‘a.anchor’).attr(‘name’);
$(div).bind(“mouseleave”,function(){
clearTimeout(timer);
timer = null;
$(‘ul.main-nav-firstlevel li’).removeClass(‘current’); $(‘.main-nav-firstlevel li div.megamenuitem’).slideUp(‘fast’);
});*/
});
});
}
*/
function megaMenu(){
var timer;
$(‘div.mlev1 table tr td’).each(function(){
var tab = $(this);
var a = tab.children(‘a’);
var div = ‘div#’+$(tab).children(‘a’).attr(‘name’);
tab.mouseenter(function(){
if(!$(tab).hasClass(‘current’)){
var sp = $(tab).children(‘a’).attr(‘rel’);
if(timer){
clearTimeout(timer);
timer = null;
$(‘div.mlev1 table tr td’).removeClass(‘current’); $(‘div.mlev1 table tr td div.megamenuitem’).slideUp(‘fast’);
}
if($(div).size()==1){
timer = setTimeout(function(){
$(tab).addClass(‘current’);
$(div).slideDown(‘fast’);
var storyCount = $(div).find(‘div.hotstories’).children(‘div’).size();
if((sp!=”https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”) && (storyCount==0)){
$.get(‘/template/custom/ajax/?service=menuStories&sp=’+sp, function(data){
var txt = “https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”;
var obj = jQuery.parseJSON(data); for(var i=0;i‘;
//txt = txt + ‘
ADVERTISEMENT
}
$(div+’ div.hotstories’).html(“https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”+txt+”https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”);
});
}
},300);
}// if div exist
}// if hass current
});
tab.mouseleave(function(){
clearTimeout(timer);
timer = null;
$(‘ul.main-nav-firstlevel li’).removeClass(‘current’); $(‘.main-nav-firstlevel li div.megamenuitem’).slideUp(‘fast’);
/*var div = ‘div#’+$(tab).children(‘a.anchor’).attr(‘name’);
$(div).bind(“mouseleave”,function(){
clearTimeout(timer);
timer = null;
$(‘ul.main-nav-firstlevel li’).removeClass(‘current’); $(‘.main-nav-firstlevel li div.megamenuitem’).slideUp(‘fast’);
});*/
});
});
}
*/
function megaMenu(){
var timer;
$(‘div.mlev1 table tr td’).each(function(){
var tab = $(this);
var a = tab.children(‘a’);
var div = ‘div#’+$(tab).children(‘a’).attr(‘name’);
tab.mouseenter(function(){
if(!$(tab).hasClass(‘current’)){
var sp = $(tab).children(‘a’).attr(‘rel’);
if(timer){
clearTimeout(timer);
timer = null;
$(‘div.mlev1 table tr td’).removeClass(‘current’); $(‘div.mlev1 table tr td div.megamenuitem’).slideUp(‘fast’);
}
if($(div).size()==1){
timer = setTimeout(function(){
$(tab).addClass(‘current’);
$(div).slideDown(‘fast’);
var storyCount = $(div).find(‘div.hotstories’).children(‘div’).size();
if((sp!=”https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”) && (storyCount==0)){
$.get(‘/template/custom/ajax/?service=menuStories&sp=’+sp, function(data){
var txt = “https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”;
var obj = jQuery.parseJSON(data); for(var i=0;i
//txt = txt + ‘
‘+row[‘title’]+’
‘+row[‘introText’];
txt = txt + ‘
‘+row[‘title’]+’
‘;
txt = txt + ‘
The page you have requested does not exist or is no longer available.
If you have typed the URL in by hand, please make sure that you have entered it correctly, with no capital letters or spaces.
Alternatively, if you have clicked on a link on arabianbusiness.com and found this page, please report the problem to our technical team and we will correct it as soon as possible.
‘,
buttonPrevHTML: “https://thearabianpost.com/wp-content/uploads/2017/02/1488307718_635_www.arabianbusiness.com”,
scroll: 1
});
});
})();