// Compacted by ScriptingMagic.com
function getSiteUserId(){var a="",b,c,i,d=document.cookie;d=unescape(d);c=d.split(";");for(i=0;i<c.length;i++){if(c[i].indexOf("userId")!=-1){b=c[i];d=b.split("=");values=d[1].split("|");for(i=0;i<values.length;i++){if(values[i].indexOf("name")!=-1){d=values[i].split("?");a=d[1]}}break}}return a}function siteLoginMessage(){var a;var b;var c;document.cookie="WM_acceptsCookies=yes; path=/";c=getCookieVal("WM_acceptsCookies");if(c!="yes"){document.getElementById("login").innerHTML="<span class=content1><img  height=14 src=/images/icon_caution.gif>&nbsp;<font color=red>Please set your browser to accept cookies to sign in</font>&nbsp;</span>";return}plugTopSignin()}function getCookieVal(a){var b=self.document.cookie;var c=b.indexOf(a+"=");var d="";if(c!=-1){var e=c+a.length+1;var f=b.indexOf(";",e);if(f==-1){f=b.length}d=b.substring(e,f)}return d}function getSignin(){var a=makeHttpRequest("http://www.jannah.com/tpl/signinPluginUnicode.html");return a}function plugSignin(){var a=getSiteUserId();if(a==""){var b=unescape(getSignin());document.write(b)}return}function getTopSignin(){var a=makeHttpRequest("http://www.jannah.com/site/topSigninPlugin.html");return a}function plugTopSignin(){var a=getSiteUserId();if(a==""){var b=unescape(getTopSignin());message=b}else{message="<font color=white><span class=topsignin>Welcome <b>"+a+"</b> (<a href=http://www.jannah.com/cgi-bin/site/logout.pl>sign out</a>)  not "+a+" ? <a href=http://www.jannah.com/site/login.html>sign in</a></span></font>"}document.getElementById("login").innerHTML=message;document.getElementById("login").style.cssFloat="right";return}function expandCollapse(a,b,c){var d=document.getElementById(a);var e=document.getElementById(b);if(undefined==c){if(d.style.display!="none"){d.style.display="none";(undefined==b)?undefined:e.src="/images/icon_expand.gif"}else{d.style.display="";(undefined==b)?undefined:e.src="/images/icon_collapse.gif"}}else{if(c=="exp"){d.style.display="";(undefined==b)?undefined:e.src="/images/icon_collapse.gif"}else{d.style.display="none";(undefined==b)?undefined:e.src="/images/icon_expand.gif"}}}function makeHttpRequest(a,b,c){var d=false;var f;if(window.XMLHttpRequest){d=new XMLHttpRequest();if(d.overrideMimeType){d.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}}if(!d){alert("Unfortunatelly you browser doesn't support this feature.");return false}d.onreadystatechange=function(){if(d.readyState==4){if(d.status==200){if(c){f=d.responseXML}else{f=d.responseText}}else{alert("There was a problem with the request.(Code: "+d.status+")")}}};d.open("GET",a,false);d.send(null);return (d.responseText)}function setCookie(a,b,c,d,e,f){var g=a+"="+escape(b)+((c)?"; expires="+c.toGMTString():"")+((d)?"; path="+d:"")+((e)?"; domain="+e:"")+((f)?"; secure":"");document.cookie=g}function getCookie(a){var b=document.cookie;var c=a+"=";var d=b.indexOf("; "+c);if(d==-1){d=b.indexOf(c);if(d!=0){return null}}else{d+=2}var e=document.cookie.indexOf(";",d);if(e==-1){e=b.length}return unescape(b.substring(d+c.length,e))}function getCookieVal(a){var b=self.document.cookie;var c=b.indexOf(a+"=");var d="";if(c!=-1){var e=c+a.length+1;var f=b.indexOf(";",e);if(f==-1){f=b.length}d=b.substring(e,f)}return d}function deleteCookie(a,b,c){if(getCookie(a)){document.cookie=a+"="+((b)?"; path="+b:"")+((c)?"; domain="+c:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function fixDate(a){var b=new Date(0);var c=b.getTime();if(c>0){a.setTime(a.getTime()-c)}}function selectMenu(){var a,b,c;a=getCookie("l");document.getElementById("jmenu").innerHTML=getMenu(a);P7_initPM(1,3,0,-20,10)}function updateMenu(a){var a,b,c;if(!a){a="e"}setLang(a);document.getElementById("jmenu").innerHTML=getMenu(a);P7_initPM(1,3,0,-20,10)}function getMenu(a){var a,b;url="http://www.jannah.com/p7menus/";switch(a){case "e":b=makeHttpRequest(url+"english.html");break;case "a":b=makeHttpRequest(url+"arabic.html");break;case "f":b=makeHttpRequest(url+"french.html");break;default:b=makeHttpRequest(url+"english.html")}return b}function setLang(l){var l;var a=new Date();fixDate(a);a.setTime(a.getTime()+3650*24*60*60*1000);setCookie("l",l,a,"/",".jannah.com")}var p7PMp,p7PMct;function P7_setPM(){var i,d="",h='<style type="text/css">',a=navigator.userAgent.toLowerCase();if(window.opera){if(a.indexOf("opera 5")>-1||a.indexOf("opera 6")>-1){return}}if(document.getElementById){for(i=1;i<20;i++){d+="ul ";h+="\n#p7PMnav "+d+"{position:absolute;left:-9000px;}"}document.write(h+"\n</style>")}}P7_setPM();function P7_initPM(){var i,g,a,b,c,d,e,f,h=navigator.userAgent.toLowerCase();if(window.opera){if(h.indexOf("opera 5")>-1||h.indexOf("opera 6")>-1){return}}else{if(!document.getElementById){return}}p7PMp=arguments;p7PMct=new Array;a=document.getElementById("p7PMnav");if(a){b=a.getElementsByTagName("A");for(i=0;i<b.length;i++){b[i].p7PMcl=p7PMct.length;p7PMct[p7PMct.length]=b[i];g=b[i].parentNode.getElementsByTagName("UL");b[i].p7PMsub=(g&&g[0])?g[0]:false;f=b[i].getAttribute("onmouseover");if(!f||f=="undefined"){b[i].onmouseover=function(){P7_PMtrig(this)}}f=b[i].getAttribute("onfocus");if(!f||f=="undefined"){b[i].onfocus=function(){P7_PMtrig(this)}}if(b[i].p7PMsub){d=b[i].parentNode;e=0;while(d){if(d.tagName&&d.tagName=="UL"){e++}d=d.parentNode}b[i].p7PMlv=e}}a.onmouseout=P7_PMclose;P7_PMopen()}}function P7_PMtrig(a){var b,t;if(document.p7PMt){clearTimeout(document.p7PMt)}document.p7PMa=1;b=(a.p7PMsub)?"P7_PMshow(":"P7_PMtg(";t='document.p7PMt=setTimeout("'+b+a.p7PMcl+')",160)';eval(t)}function P7_PMshow(a,b){var u,c,d,e,f,g,h,i,j,k,l,m,n=0,o,p,q,r,s,t,v,w,x=0,y=0,z=true;var A=(navigator.appVersion.indexOf("MSIE 5")>-1)?true:false,B=document.documentElement,C=document.body;document.p7PMa=1;if(!b){P7_PMtg(a)}u=p7PMct[a].p7PMsub;if(u.p7pmax&&u.p7pmax==1){return}u.p7pmax=1;c=(p7PMp[0]==1&&p7PMct[a].p7PMlv==1)?true:false;p7PMct[a].className=p7PMct[a].className.replace("p7PMtrg","p7PMon");d=parseInt(p7PMp[3]);e=parseInt(p7PMp[4]);f=u.offsetWidth;g=u.offsetHeight;h=p7PMct[a];i=h.offsetWidth;j=h.offsetHeight;while(h){x+=(h.offsetLeft)?h.offsetLeft:0;y+=(h.offsetTop)?h.offsetTop:0;if(window.opera||navigator.userAgent.indexOf("Safari")>-1){if(p7PMct[a].p7PMlv!=1&&h.nodeName=="BODY"){y-=(h.offsetTop)?h.offsetTop:0}}h=h.offsetParent}if(A&&navigator.userAgent.indexOf("Mac")>-1){y+=parseInt(C.currentStyle.marginTop)}k=parseInt((i*e)/100);l=(c)?0:i-k;k=parseInt((j*d)/100);m=(c)?0:(j-k)*-1;r=C.parentNode.scrollLeft;if(!r){r=C.scrollLeft}r=(r)?r:0;if(B&&B.clientWidth){n=B.clientWidth+r}else{if(C){n=C.clientWidth+r}}if(!n){n=0;z=false}o=window.innerHeight;if(!o){o=B.clientHeight;if(!o||o<=0){o=C.clientHeight}}s=C.parentNode.scrollTop;if(!s){s=C.scrollTop;if(!s){s=window.scrollY?window.scrollY:0}}t=x+l+f;if(t>n&&z){l=f*-1;l+=10;if(c){l=(n-x)-f}}v=x+l;if(v<0){l=x*-1}t=y+g+j+m-s;w=o-t;if(w<0){m+=w;if(g>o){m=(y+j-s)*-1}}u.style.marginLeft=l+"px";u.style.marginTop=m+"px";if(p7PMp[2]==1){if(!A){P7_PManim(a,20)}}u.className="p7PMshow"}function P7_PMhide(u){var i,a,b;u.p7pmax=0;u.className="p7PMhide";b=u.parentNode.firstChild;b.className=b.className.replace("p7PMon","p7PMtrg")}function P7_PMtg(a,b){var i,u,c,d,e;c=p7PMct[a];e=c.parentNode;while(e){if(e.tagName=="UL"){break}e=e.parentNode}if(e){d=e.getElementsByTagName("UL");for(i=d.length-1;i>-1;i--){if(b!=1&&c.p7PMsub==d[i]){continue}else{P7_PMhide(d[i])}}}}function P7_PMclose(a){var b,c,d,m=true;a=(a)?a:((event)?event:null);c=document.p7PMa;if(c!=-1){if(a){d=(a.relatedTarget)?a.relatedTarget:a.toElement;if(d){b=d.parentNode;while(b){if(b&&b.id&&b.id=="p7PMnav"){m=false;document.p7PMa=1;break}b=b.parentNode}}if(m){document.p7PMa=-1;if(document.p7PMt){clearTimeout(document.p7PMt)}document.p7PMt=setTimeout("P7_PMclr()",360)}}}}function P7_PMclr(){var i,a,b;document.p7PMa=-1;a=document.getElementById("p7PMnav");if(a){b=a.getElementsByTagName("UL");if(b){for(i=b.length-1;i>-1;i--){P7_PMhide(b[i])}}}}function P7_PManim(a,b){var g=p7PMct[a].p7PMsub,c=30,d=20;b=(b>=100)?100:b;g.style.fontSize=b+"%";if(b<100){b+=d;setTimeout("P7_PManim("+a+","+b+")",c)}}function P7_PMmark(){document.p7PMop=arguments}function P7_PMopen(){var i,x,a,b,c,d,a,e,f,k=-1,g=-1,h=new Array(1,"","");if(document.p7PMop){h=document.p7PMop}b=h[0];if(b<1){return}a=document.getElementById("p7PMnav").getElementsByTagName("A");d=window.location.href;f=/index\.[\S]*/i;for(i=0;i<a.length;i++){if(a[i].href){e=a[i].href.replace(f,"");if(b>0){if(a[i].href==d||e==d){k=i;g=-1;break}}if(b==2){if(a[i].firstChild){if(a[i].firstChild.nodeValue==h[1]){g=i}}}if(b==3&&a[i].href.indexOf(h[1])>-1){g=i}if(b==4){for(x=1;x<h.length;x+=2){if(d.indexOf(h[x])>-1){if(a[i].firstChild&&a[i].firstChild.data){if(a[i].firstChild.data==h[x+1]){g=i;break}}}}}}}k=(g>k)?g:k;if(k>-1){c=a[k].parentNode;while(c){if(c.nodeName=="LI"){c.firstChild.className="p7PMmark "+c.firstChild.className}c=c.parentNode}}if(g>-1){document.p7PMad=1}P7_PMadma();P7_PMadmb()}function P7_PMadma(){var s,a,i,j,b,g,c,d,e,t,h,f,c,k,l,m,n,o,p,q=new Array(),r="",x=0,u=1,v=document.p7PMad;g=document.getElementById("p7PMnav");c=document.getElementById("pmmcrumb");if(g&&c){d=c.getElementsByTagName("A");if(d&&d[0]){k=d[0].parentNode.childNodes;l=/<a/i;m=/\/a>/i;n=d[0].parentNode.innerHTML;j=n.search(l);o=n.substring(0,j);j=n.search(m);p=n.substring(j+3);r+=(o)?o:"";s=(p)?p:" &gt ";if(!d[0].id||d[0].id!="pmmcn"){if(d[0].href!=window.location.href){q[0]=d[0];x++;u=2}}f=g.getElementsByTagName("A");for(i=0;i<f.length;i++){if(f[i].className.indexOf("p7PMmark")>-1){q[x]=f[i];x++}}for(i=0;i<q.length;i++){a=(i>0)?s:"";b=(i==q.length-1)?0:1;e=(i==0&&d[0].id)?'id="'+d[0].id+'" ':" ";t=q[i].firstChild.nodeValue;if(b==1||v==1||x<u){r+=a+"<a "+e+'href="'+q[i].href+'">'+t+"</a>"}else{r+=a+t}}if(v==1||i<u){a=(i>0)?s:"";r+=a+document.title}d[0].parentNode.innerHTML=r}}}function P7_PMadmb(){var h="",g,i,a,b,m=false;g=document.getElementById("p7PMnav");b=document.getElementById("pmmnext");if(g&&b){a=g.getElementsByTagName("A");for(i=a.length-1;i>-1;i--){if(a[i].className.indexOf("p7PMmark")>-1){m=true;break}}if(m){if(i<a.length-1){i++}else{i=0}while(a[i].href==window.location.href+"#"||a[i].href=="javascript:;"){i++;if(i>a.length-1){i=0;break}}b.href=a[i].href;b.innerHTML=a[i].firstChild.nodeValue}}}