var one=new create_menu("one","test")

var oDiv1=new create_menu("oDiv1","test")
var oDiv2=new create_menu("oDiv2","test")
var oDiv3=new create_menu("oDiv3","test")
var oDiv4=new create_menu("oDiv4","test")
var oDiv5=new create_menu("oDiv5","test")



function create_menu(objectname,transition)
{
this.id=objectname;
this.show=show;
this.hide=hide;
}
function openHelpWindow()
{
window.open("/Arabic/help/acrobat.htm","my_help_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=450,height=400")
}

function show()
{
	var i=0;
	var i =document.body.offsetWidth
	//if (i=1)
	if (document.body.offsetWidth<801)
	{
				try
				{
				var el=document.all.tip;
				eval("document.all('tip').style.visibility='visible'");
				el.style.right='20';
				el.style.top='78';
					}
				catch(e)   
				{
					alert("Contact with The Programer - Tareq");
				}
	}
	else if (document.body.offsetWidth<1025)
	{
				try
				{
			
					var el=document.all.tip;
					eval("document.all('tip').style.visibility='visible'");
					el.style.right='130';
					el.style.top='78';
				
				
				}
					catch(e)   
				{
					alert("Contact with The Programer - Tareq");
				}
	}
}

function hide()
{
				eval("document.all('tip').style.visibility='hidden'");
}

//Code for Popup with Transition Single Level #2
function create_menu_single(objectArray,transition)
{
this.menus=objectarray;
alert(this.menus);
}

function subshow(id)
{
eval("document.all('"+id+"').style.visibility='visible'");
}

function subhide(id)
{
eval("document.all('"+id+"').style.visibility='hidden'");
}
////////////////////////top

var two=new create_menu2("two","test")



function create_menu2(objectname,transition)
{
this.id=objectname;
this.show2=show2;
this.hide2=hide2;
}



function show2()
{
	var i=0;
	var i =document.body.offsetWidth
	//if (i=1)
	if (document.body.offsetWidth<801)
	{
				try
				{
				var el=document.all.tip2;
				eval("document.all('tip2').style.visibility='visible'");
				el.style.right='438';
				el.style.top='140';
				}
				catch(e)   
				{
					alert("Contact with The Programer - Tareq");
				}
	}
	else if (document.body.offsetWidth<1025)
	{
				try
				{
					var el=document.all.tip2;
					eval("document.all('tip2').style.visibility='visible'");
					el.style.right='550';
					el.style.top='140';

				}
					catch(e)   
				{
					alert("Contact with The Programer - Tareq");
				}
	}
}

function hide2()
{
				eval("document.all('tip2').style.visibility='hidden'");
}

