


 <!--
/****************************************************
     Created With: PopupGenerator
     URL: http://www.popupgenerator.com
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
win=window.open(mypage,myname,settings);
win.focus();}
// -->



<!--
function OpenFull(where2) {
if (document.all) window.open(where2,"Full_Screen_Window","fullscreen=yes");
else alert("Sorry, but you can only open to FullScreen with Internet Explorer.");
}
//-->



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}





function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}






// ######### For Members ############ \\

function ValueN_eamil(){

alert("\n الرجاء إدخال الحقول التالية: " );

}

function Value_member(){
msg_name = '';
msg_office = '';
msg_addresse  = '';
msg_phone = '';

if (form_member.name.value=='') {
msg_name =  ' \n -  ادخل الاسم ';
form_member.name.style.border='#FF0000 solid 1px';
}else{ form_member.name.style.border='none'; }


if (form_member.office.value=='') {
msg_office =  ' \n -  ادخل اسم العميل ';
form_member.office.style.border='#FF0000 solid 1px';
}else{ form_member.office.style.border='#FF0000 solid 0px'; }

if (form_member.addresse.value=='') {
msg_addresse =  ' \n -  ادخل العنوان';
form_member.addresse.style.border='#FF0000 solid 1px';
}else{
form_member.addresse.style.border='#FF0000 solid 0px'; }

if (form_member.phone.value=='') {
msg_phone =  ' \n -  ادخل الهاتف';
form_member.phone.style.border='#FF0000 solid 1px';
}else{ form_member.phone.style.border='#FF0000 solid 0px'; }


if (msg_name||msg_office||msg_addresse||msg_phone){

if(msg_name){
form_member.name.focus();
}else if(msg_office){
form_member.office.focus();
}else if(msg_addresse){
form_member.addresse.focus();
}else if(msg_phone){
form_member.phone.focus();
}


alert("\n الرجاء إدخال الحقول التالية: " + '\n' + msg_name +  msg_office  + msg_addresse + msg_phone);



return false;
}
}



function Value_form_add(){

msg_name = '';
msg_office = '';
msg_addresse  = '';
msg_phone = '';

if (form_add.name.value=='') {
msg_name =  ' \n -  ادخل الاسم ';
form_add.name.style.border='#FF0000 solid 1px';
}else{ form_add.name.style.border='none'; }


if (form_add.office.value=='') {
msg_office =  ' \n -  ادخل اسم المكتب ';
form_add.office.style.border='#FF0000 solid 1px';
}else{ form_add.office.style.border='#FF0000 solid 0px'; }

if (form_add.addresse.value=='') {
msg_addresse =  ' \n -  ادخل العنوان';
form_add.addresse.style.border='#FF0000 solid 1px';
}else{
form_add.addresse.style.border='#FF0000 solid 0px'; }

if (form_add.phone.value=='') {
msg_phone =  ' \n -  ادخل الهاتف';
form_add.phone.style.border='#FF0000 solid 1px';
}else{ form_add.phone.style.border='#FF0000 solid 0px'; }


if (msg_name||msg_office||msg_addresse||msg_phone){

if(msg_name){
form_add.name.focus();
}else if(msg_office){
form_add.office.focus();
}else if(msg_addresse){
form_add.addresse.focus();
}else if(msg_phone){
form_add.phone.focus();
}


alert("\n الرجاء إدخال الحقول التالية: " + '\n' + msg_name +  msg_office  + msg_addresse + msg_phone);



return false;
}
}









///////////////////////////////////////////////
//			Dev Box with Mouse
/////////////////////////////////////////////

var dofade=false;var center=true;var centertext=false;function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
var NS4=(navigator.appName.indexOf("Netscape")>=0&&!document.getElementById)?true:false;var IE4=(document.all&&!document.getElementById)?true:false;var IE5=(document.getElementById&&document.all)?true:false;var NS6=(document.getElementById&&navigator.appName.indexOf("Netscape")>=0)?true:false;var W3C=(document.getElementById)?true:false;var w_y,w_x,navtxt,boxheight,boxwidth;var ishover=false;var isloaded=false;var ieop=0;var op_id=0;function getwindowdims(){w_y=(NS4||NS6||window.opera)?window.innerHeight:(IE5||IE4)?document.body.clientHeight:0;w_x=(NS4||NS6||window.opera)?window.innerWidth:(IE5||IE4)?document.body.clientWidth:0;}
function getboxwidth(){if(NS4)boxwidth=(navtxt.document.width)?navtxt.document.width:navtxt.clip.width;if(IE5||IE4)boxwidth=(navtxt.style.pixelWidth)?navtxt.style.pixelWidth:navtxt.offsetWidth;if(NS6)boxwidth=(navtxt.style.width)?parseInt(navtxt.style.width):parseInt(navtxt.offsetWidth);}
function getboxheight(){if(NS4)boxheight=(navtxt.document.height)?navtxt.document.height:navtxt.clip.height;if(IE4||IE5)boxheight=(navtxt.style.pixelHeight)?navtxt.style.pixelHeight:navtxt.offsetHeight;if(NS6)boxheight=parseInt(navtxt.offsetHeight);}
function movenavtxt(x,y){if(NS4)navtxt.moveTo(x,y);if(W3C||IE4){navtxt.style.left=x+'px';navtxt.style.top=y+'px';}}
function getpagescrolly(){if(NS4||NS6)return window.pageYOffset;if(IE5||IE4)return ietruebody().scrollTop;}
function getpagescrollx(){if(NS4||NS6)return window.pageXOffset;if(IE5||IE4)return ietruebody().scrollLeft;}
function writeindiv(text){if(NS4){navtxt.document.open();navtxt.document.write(text);navtxt.document.close();}
if(W3C||IE4)navtxt.innerHTML=text;}

function box_mouse(text){
	if(isloaded){
		if(text!=0){
		
			ishover=true;
			
			if(NS4) text='<div class="navtext">'+((centertext)?'<center>':'')+text+((centertext)?'</center>':'')+'</div>';
			
			writeindiv(text);
			
			getboxheight();
			
			if((W3C||IE4)&&dofade) { ieop=0;incropacity(); }
			
			}else{
			
			if(NS4) navtxt.visibility="hide";
			
			if(IE4||W3C){
			
			if(dofade)clearTimeout(op_id);navtxt.style.visibility="hidden";}
			
			writeindiv('');ishover=false;}}}


function incropacity(){

	if(ieop<=100){
	
	ieop+=7;
	if(IE4||IE5) navtxt.style.filter="alpha(opacity="+ieop+")";
	
	if(NS6) navtxt.style.MozOpacity=ieop/100;op_id=setTimeout('incropacity()',50);
	
	}}
	
function moveobj(evt){
	if(isloaded&&ishover){
		margin=(IE4||IE5)?1:23;
		if(NS6)if(document.height+27-window.innerHeight<0)margin=15;
		if(NS4)if(document.height-window.innerHeight<0)margin=10;
		if(NS4){mx=evt.pageX ; my=evt.pageY } 
		else if(NS6){ mx=evt.clientX ; my=evt.clientY }
		else if(IE5){ mx=event.clientX ; my=event.clientY}
		else if(IE4){mx=0; my=0}
		
		if(NS4){mx-=getpagescrollx();my-=getpagescrolly();}
		
//xoff=(center)?mx-boxwidth/2:mx+5;
xoff = mx - 33;
yoff=(my+boxheight+30-getpagescrolly()+margin>=w_y)?-15-boxheight:30;
movenavtxt(Math.min(w_x-boxwidth-margin,Math.max(2,xoff))+getpagescrollx(),my+yoff+getpagescrolly());
if(NS4)navtxt.visibility="show";
if(W3C||IE4)navtxt.style.visibility="visible";}}

if(NS4)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=moveobj;
window.onload=function(){
navtxt=(NS4)?document.layers['navtxt']:(IE4)?document.all['navtxt']:(W3C)?document.getElementById('navtxt'):null;getboxwidth();
getboxheight();
getwindowdims();
isloaded=true;
if((W3C||IE4)&&centertext)navtxt.style.textAlign="center";
if(W3C)navtxt.style.padding='4px';
if(IE4||IE5&&dofade)navtxt.style.filter="alpha(opacity=0)";
}

window.onresize=getwindowdims;
















<!-- bY Turki

var nlp_lxteffects=["Pixelate(MaxSquare=30 enabled=false)"]

var tickspeed = 2 * 2000;
var effectduration=700; //Transitional effect duration in miliseconds
var hidecontent_from_legacy=0 //Should content be hidden in legacy browsers- IE4/NS4 (0=no, 1=yes).
var filterid=Math.floor(Math.random()*nlp_lxteffects.length)
document.write('<style type="text/css">')
if (document.getElementById)
document.write('.nlp_lxt_css{display:none;'+'filter:progid:DXImageTransform.Microsoft.'+nlp_lxteffects[filterid]+'}')
else if (hidecontent_from_legacy)
document.write('#nlp_lxt_cw{display:none;}')
document.write('</style>')
var selectedDiv=0
var totalDivs=0
function contractboard(){
var inc=0
while (document.getElementById("nlp_lxt"+inc)){
document.getElementById("nlp_lxt"+inc).style.display="none"
inc++
}
}
function expandboard(){
var selectedDivObj=document.getElementById("nlp_lxt"+selectedDiv)
contractboard()
if (selectedDivObj.filters){
if (nlp_lxteffects.length>1){
filterid=Math.floor(Math.random()*nlp_lxteffects.length)
selectedDivObj.style.filter="progid:DXImageTransform.Microsoft."+nlp_lxteffects[filterid]
}
selectedDivObj.filters[0].duration=effectduration/1000
selectedDivObj.filters[0].Apply()
}
selectedDivObj.style.display="block"
if (selectedDivObj.filters)
selectedDivObj.filters[0].Play()
selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0
setTimeout("expandboard()",tickspeed)
}
function nlp_lxt_start(){
while (document.getElementById("nlp_lxt"+totalDivs)!=null)
totalDivs++
if (document.getElementById("nlp_lxt0").filters)
tickspeed+=effectduration
expandboard()
}
if (window.addEventListener)
window.addEventListener("load", nlp_lxt_start, false)
else if (window.attachEvent)
window.attachEvent("onload", nlp_lxt_start)
else if (document.getElementById)
window.onload=nlp_lxt_start
//-->



function doo(str)
{
  max = 0
  $$(str).each(function (elm) { max =  Math.max(max, elm.getHeight()) } )
  $$(str).each(function (elm) { elm.style.height = max+'px' } )
}








/*#####################################
				Tree
#####################################*/

function show_ul(id){
		if($('ul' + id).style.display=='none'){
			$('ul' + id).style.display='block'
			$('img_tree' + id).src='img/tree2.gif'
		}else{
			$('ul' + id).style.display='none'
			$('img_tree' + id).src='img/tree3.gif'
	}}
