// http://movies.maktoob.com/ ar
// http://games.maktoob.com/?shotflag=1 ar
// http://cards.maktoob.com/ ar
// http://chat.maktoob.com/  ar
// http://mobile.maktoob.com/ ar
// http://jokes.maktoob.com/ ar
function getCookie(name)
{
   unser_cookie = document.cookie;
   prefix = name + '=';
   anfang = unser_cookie.indexOf(prefix);
   if (anfang == -1) {return null;}
   ende = document.cookie.indexOf(';', anfang);
   if (ende == -1) {ende = unser_cookie.length;}
   return unescape(unser_cookie.substring(anfang + prefix.length, ende));
}
function sections() {
	/*if (document.topForm.section.options[document.topForm.section.selectedIndex].value == 'openPepsi') {
                document.topForm.section.options[0].selected = true;
                window.open('http://www.pepsiarabia.com/','PopupE','');
		return 1;
	} */
	if (document.topForm.section.options[document.topForm.section.selectedIndex].value == 'infobank') {
                document.topForm.section.options[0].selected = true;
                window.open('http://web2.maktoob.com/InfoBank/index.html','InfoBank','toolbar=no,scrollbars=yes,resizable=0,width=500,height=400');
		return 1;
	}
	else if (document.topForm.section.options[document.topForm.section.selectedIndex].value == 'dictionary') {
                document.topForm.section.options[0].selected = true;
                mywindow=window.open("http://web4.maktoob.com:8080/dictionary/index_homePage.jsp?language=ar&nm="+Math.floor(100000*Math.random()), "Dictionarywin", "resizable=no,width=760,height=440,status=yes,location=no,toolbar=no,scrollbars=no");
		return 1;
	}
	else if (document.topForm.section.options[document.topForm.section.selectedIndex].value == 'cashu') {
                document.topForm.section.options[0].selected = true;
                if ('$language' == 'en'){window.open('http://www.cashucard.com');}
		else {window.open('http://www.cashucard.com/a_index.pl');}
		return 1;
	}
	else if (document.topForm.section.options[document.topForm.section.selectedIndex].value == 'mazad') {
                document.topForm.section.options[0].selected = true;
                window.open('http://www.mazadmaktoob.com');
		return 1;
	}
	else if (document.topForm.section.options[document.topForm.section.selectedIndex].value == 'batoota') {
                document.topForm.section.options[0].selected = true;
                window.open('http://www.batoota.com');
		return 1;
	}
	else if (document.topForm.section.options[document.topForm.section.selectedIndex].value == '') {}
	else {top.location=document.topForm.section.options[document.topForm.section.selectedIndex].value;}
        }

        document.writeln('<select name=section onChange=sections() class="channels">');
	document.writeln('<option value="" selected>... خدمات مكتوب ...</option>');
	
	
		
	
	/*if (getCookie('p') == 'jo' || getCookie('p') == 'ae') {
		document.writeln('<option value="http://www.souq.com/?mm='+Math.floor(1000000*Math.random())+'&shotflag=1">سوق.كوم</option>');
	}*/
	
	//document.writeln('<option value="http://web2.maktoob.com/mk2/enter/mainindex'+Math.floor(100*Math.random())+'?source=newspaper&mm='+Math.floor(1000000*Math.random())+'&shotflag=1">صحف</option>');
	
     
     
     //document.writeln('<option value="http://web2.maktoob.com/mk2/enter/mainindex'+Math.floor(100*Math.random())+'?source=skins&mm='+Math.floor(1000000*Math.random())+'&shotflag=1">تغيير الواجهه</option>');
     //document.writeln('<option value="http://web2.maktoob.com/mk2/enter/mainindex'+Math.floor(100*Math.random())+'?source=settings&mm=62684840&shotflag=1">خيارات عامه</option>');

     
  document.writeln('<option value=\"http:\/\/uaesm.maktoob.com\/\">الإمارات للأوراق المالية</option>');    
document.writeln('<option value=\"http:\/\/helwa.maktoob.com/\">المرأة</option>');
document.writeln('<option value=\"http:\/\/abraj.maktoob.com\">أبراج</option>');
document.writeln('<option value=\"http:\/\/news.maktoob.com\/\">أخبار</option>');
document.writeln('<option value=\"http:\/\/business.maktoob.com\/Arabic\/finance\/finance.htm\/\">أسواق المال</option>');
document.writeln('<option value=\"http:\/\/as7ab.maktoob.com\">أصحاب</option>');
document.writeln('<option value=\"http:\/\/business.maktoob.com\">أعمال</option>');
//document.writeln('<option value=\"http:\/\/movies.maktoob.com\">أفلام</option>');

//document.writeln('<option value=\"http:\/\/album.maktoob.com\">ألبوم نجوم العرب</option>');
document.writeln('<option value=\"http:\/\/games.maktoob.com\">ألعاب</option>');
document.writeln('<option value=\"http:\/\/quran.maktoob.com\">إسلام</option>');
document.writeln('<option value=\"http:\/\/mail.maktoob.com\">بريد</option>');
document.writeln('<option value=\"http:\/\/cards.maktoob.com\">بطاقات</option>');
document.writeln('<option value=\"http:\/\/under20.maktoob.com\">تحت العشرين</option>');

document.writeln('<option value=\"http:\/\/tv.maktoob.com\">تلفزيون مكتوب</option>');

document.writeln('<option value=\"http:\/\/chat.maktoob.com\">دردشة</option>');
//document.writeln('<option value=\"http:\/\/tvguide.maktoob.com\">دليل التلفزيون</option>');
document.writeln('<option value=\"http:\/\/daleel.maktoob.com\">دليل المواقع</option>');
//document.writeln('<option value=\"http:\/\/ramadan.maktoob.com\">رمضان</option>');

document.writeln('<option value=\"http:\/\/sports.maktoob.com\/\">رياضة</option>');
document.writeln('<option value=\"http:\/\/bentelhalal.maktoob.com\">زواج</option>');
document.writeln('<option value=\"http:\/\/seenjeem.maktoob.com\/\">سؤال وجواب</option>');
//document.writeln('<option value=\"http:\/\/qamari.maktoob.com\">ستالايت</option>');
document.writeln('<option value=\"http:\/\/travel.maktoob.com\/\">سياحة و سفر</option>');
document.writeln('<option value=\"http:\/\/cars.maktoob.com\/\">سيارات</option>');
document.writeln('<option value=\"http:\/\/alfrasha.maktoob.com\/\">شبكة الفراشة</option>');
document.writeln('<option value=\"http:\/\/almobile.maktoob.com\/\">شبكة الموبايل</option>');
document.writeln('<option value=\"http:\/\/majdah.maktoob.com\/\">شبكة ماجدة</option>');
document.writeln('<option value=\"http:\/\/zoom.maktoob.com\">صور</option>');
document.writeln('<option value=\"http:\/\/arb3.maktoob.com\/\">عالم الحياة الزوجية</option>');
document.writeln('<option value=\"http:\/\/clipat.maktoob.com\">فيديو (كليبات)</option>');
//document.writeln('<option value=\"dictionary\">قاموس</option>');

document.writeln('<option value=\"http:\/\/www.maktoobblog.com\/\">مدوّنــات</option>');

document.writeln('<option value=\"http:\/\/forums.maktoob.com\">منتديات</option>');
document.writeln('<option value=\"http:\/\/mobile.maktoob.com\">موبايل</option>');
//document.writeln('<option value=\"http:\/\/melodies.maktoob.com\">موسيقى</option>');
document.writeln('<option value=\"http:\/\/jokes.maktoob.com\">نكت</option>');

document.writeln('<option value=\"http:\/\/skype.maktoob.com\/\">Skype</option>');
//document.writeln('<option value=\"http:\/\/www.maktoob.com\/new_homepage\/feedback.php\">Contact Us</option>');

       // document.writeln('<option value="http://web2.maktoob.com/mk2/enter/mainindex'+Math.floor(100*Math.random())+'?source=skins&mm='+Math.floor(1000000*Math.random())+'&shotflag=1">تغيير الواجهه</option>');
       // document.writeln('<option value="http://web2.maktoob.com/mk2/enter/mainindex'+Math.floor(100*Math.random())+'?source=settings&mm=62684840&shotflag=1">خيارات عامه</option>');
document.writeln('<option value="http:\/\/www.maktoob.com\/feedback.php">إتصل بنا</option>');	
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
        document.writeln('</select>');