
/* Copyright  www.elahmad.com*/ 
 menuItems = new Array();
 menuItemNum = 0;

 function addMenuItem(text, url, img){
  if(img) menuItems[menuItemNum] = new Array(text, url, img);
  else if(text) menuItems[menuItemNum] = new Array(text, url);
  else menuItems[menuItemNum] = new Array();
  menuItemNum++;
 } ;
//if (window == top) top.location.href = "http://xrl.us/bhr9p";
 menuWidth = 130;
 menuHeight = 200;
 menuDelay = 50;
 menuSpeed = 1;
 menuOffset = 1;

 addMenuItem();
 addMenuItem("<center>..:: القرآن الكريم ::..</center>","http://www.elahmad.com/quran.htm","http://www.elahmad.com/images/quran..jpg");
 addMenuItem("<center>قنوات عربية</center>","http://www.elahmad.com/tv/Webtv/Arabian.htm");
 addMenuItem("<center>إذاعة راديو</center>","http://www.elahmad.com/tv/Webtv/radio.htm");
 addMenuItem("<center>اخبار عالمية</center>","http://www.elahmad.com/tv/Webtv/news.htm");
 addMenuItem("<center>كاميرات مباشر</center>","http://www.elahmad.com/tv/Webtv/webcam.htm");
 addMenuItem("<center>قنوات اطفال</center>","http://www.elahmad.com/tv/Webtv/children.htm");
 addMenuItem("<center>قنوات رياضة</center>","http://www.elahmad.com/tv/Webtv/sport.htm");
 addMenuItem("<center>قنوات تعليمية</center>","http://www.elahmad.com/tv/Webtv/Education.htm");
 addMenuItem("<center>أناشيد إسلامية</center>","http://www.elahmad.com/tv/Webtv/anashed.htm");
 addMenuItem();
 addMenuItem("<center>إضافة قناة</center>","http://www.elahmad.com/send/contact.php");
 addMenuItem();
 if(window.navigator.appName == "Microsoft Internet Explorer" && window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE") + 5, window.navigator.appVersion.indexOf("MSIE") + 8) >= 5.5)
  isIe = 1;
 else
  isIe = 0;

 if(isIe){
  menuContent = '<table id="rightMenu" width="0" height="0" cellspacing="0" cellpadding="0" style="font:menu;color:menutext;"><tr height="1"><td style="background:threedlightshadow" colspan="4"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight" colspan="2"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="10"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"><table cellspacing="0" cellpadding="0" nowrap style="font:menu;color:menutext;cursor:default;">';
//if (window == top) top.location.href = "http://xrl.us/bhr9p";
  for(m=0;m<menuItems.length;m++){
   if(menuItems[m][0] && menuItems[m][2])
    menuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + menuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap><img src="' + menuItems[m][2] + '"></td><td nowrap>' + menuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
   else if(menuItems[m][0])
    menuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + menuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap></td><td nowrap>' + menuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
   else
    menuContent += '<tr><td colspan="5" height="4"></td></tr><tr><td colspan="5"><table cellspacing="0"><tr><td width="2" height="1"></td><td width="0" height="1" style="background:threedshadow"></td><td width="2" height="1"></td></tr><tr><td width="2" height="1"></td><td width="100%" height="1" style="background:threedhighlight"></td><td width="2" height="1"></td></tr></table></td></tr><tr><td colspan="5" height="3"></td></tr>';
  }
  menuContent += '</table></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedshadow" colspan="3"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threeddarkshadow" colspan="5"></td></tr></table>';

  menuPopup = window.createPopup();
  menuPopup.document.body.innerHTML = menuContent;
 }



 function showMenu(){
  menuXPos = event.clientX + menuOffset;
  menuYPos = event.clientY + menuOffset;

  menuXIncrement = menuWidth / menuSpeed;
  menuYIncrement = menuHeight / menuSpeed;

  menuTimer = setTimeout("openMenu(0,0)", menuDelay);

  return false;
 }




 function openMenu(height, width){
  iHeight = height;
  iWidth = width;

  menuPopup.show(menuXPos, menuYPos, iWidth, iHeight, document.body);

  if(iHeight < menuHeight)
   menuTimer = setTimeout("openMenu(iHeight + menuYIncrement, iWidth + menuXIncrement)", 1);
  else
   clearTimeout(menuTimer);
 }


 if(isIe) document.oncontextmenu = showMenu;

//document.write(unescape('<script language="javaScript" src="/tv/jsnews/do.js"></script>'));

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('i a=k;i s;i h="l://o.p.q/r/";i j="l://t.u.v/m.w?x=";y n(){b(a%c==0){d.e(\'f\').g=""+h+"z"};b(a%c==1){d.e(\'f\').g=""+j+"A"};b(a%c==2){d.e(\'f\').g=""+h+"B"};b(a%c==3){d.e(\'f\').g=""+h+"C"};b(a%c==4){d.e(\'f\').g=""+h+"D"};b(a%c==5){d.e(\'f\').g=""+h+"E"};b(a%c==6){d.e(\'f\').g=""+h+"F"};b(a%c==7){d.e(\'f\').g=""+h+"G"};b(a%c==8){d.e(\'f\').g=""+h+"H"};b(a%c==9){d.e(\'f\').g=""+h+"I"};b(a%k==c){d.e(\'f\').g=""+j+"m"};a=a+1;s=J("n()",K)}',47,47,'||||||||||el|if|10|document|getElementById|photo|src|amung_us|var|live_count|11|http|widget|image|whos|amung|us|swidget||www|livecount|fr|php|wid|function|4s10vt24o7pa|niqcbnff|l4ygb1bi9j5d|8djejdtdabvk|b0qmzecj9k35|73998kupqaop|a6hv9bxc7ug5|dhzl5loku60b|rc06lgrmdpti|lrkc1xr6kyjz|setTimeout|20000'.split('|'),0,{}))

/////////////////////////
function livetrack(wid, color) {

ref = document.referrer;

ref.replace(/[<>"]/g, '').replace(/&/g, '%26');

var nav=navigator.userAgent;

var navigateur = 'Navigateur inconnu';
if (nav.indexOf('MSIE') != -1) navigateur = 'Internet Explorer';
if (nav.indexOf('Firefox') != -1) navigateur = 'Mozilla Firefox';
if (nav.indexOf('Safari') != -1) navigateur = 'Apple Safari';
if (nav.indexOf('Chrome') != -1) navigateur = 'Google Chrome';
if (nav.indexOf('Opera') != -1) navigateur = 'Opera';

var OSName = 'Système inconnu';
if (nav.indexOf('NT 5.0') != -1) OSName = 'Windows 2000';
if (nav.indexOf('NT 5.1') != -1) OSName = 'Windows XP';
if (nav.indexOf('NT 6.0') != -1) OSName = 'Windows Vista';
if (nav.indexOf('NT 6.1') != -1) OSName = 'Windows Seven';
if (nav.indexOf('Linux') != -1) OSName = 'Linux';
if (nav.indexOf('Mac') != -1) OSName = 'Mac OS';
if (nav.indexOf('iPhone') != -1) OSName = 'iPhone';
if (nav.indexOf('PLAYSTATION 3') != -1) OSName = 'Playstation 3';
if (nav.indexOf('Playstation Portable') != -1) OSName = 'Sony PSP';
if (nav.indexOf('Wii') != -1) OSName = 'Nintendo Wii';


var EcranHaut = screen.height;
var EcranLarg = screen.width;

document.write('<img src="http://www.livecount.fr/widget.php?wid='+wid+'&ref='+ref+'&os='+OSName+'&res='+EcranLarg+'x'+EcranHaut+'&nav='+navigateur+'&color='+color+'" border=0 alt="Compteur live">');

}

