function urlArb()
{
	var cURL = window.location.href;
	var sLen = cURL.length;
	var s = '/en/';
	var t = '/';
	var sIDX = cURL.lastIndexOf(s);
	var tIDX = cURL.lastIndexOf(t);
	var fileName = "printable_template.html?tgt=lyt_" + cURL.substr(tIDX + 1,(sLen - tIDX )).replace('%20',' ');
    var arabicURL = cURL.substr(0,sIDX) + "/ar/" + cURL.substr(sIDX + 4,sLen);
	window.location.href=arabicURL;

}

function urlEng()
{
	var cURL = window.location.href;
	var sLen = cURL.length;
	var s = '/ar/';
	var t = '/';
	var sIDX = cURL.lastIndexOf(s);
	var tIDX = cURL.lastIndexOf(t);
	var fileName = "printable_template.html?tgt=lyt_" + cURL.substr(tIDX + 1,(sLen - tIDX )).replace('%20',' ');
    var englishURL = cURL.substr(0,sIDX) + "/en/" + cURL.substr(sIDX + 4,sLen);
	window.location.href = englishURL;
}

// Javascript code to show hide abstract
var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4) ? true : false;

function expandIt(){return}

isExpanded = false;

function getIndex(el) {
	ind = null;
	for (i=0; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.id == el) {
			ind = i;
			break;
		}
	}
	return ind;
}

function arrange() {
	nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
	for (i=firstInd+1; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.visibility != "hide") {
			whichEl.pageY = nextY;
			nextY += whichEl.document.height;
		}
	}
}

function initIt(){
	if (IE4) {
		tempColl = document.all.tags("DIV");
		for (i=0; i<tempColl.length; i++) {
			if (tempColl(i).className == "child") tempColl(i).style.display = "none";
		}
	}
}

function expandIt(el) {
	if (!ver4) return;
	if (IE4) {expandIE(el)} 
}

function expandIE(el) { 
	whichEl = eval(el + "Child");
	whichIm = event.srcElement;
	if (whichEl.style.display == "none") {
		whichEl.style.display = "block";
		whichIm.src = "/NR/Shared/Landmark/images/nav/downblkarrow.gif";		
	}
	else {
		whichEl.style.display = "none";
		whichIm.src = "/NR/Shared/Landmark/images/nav/leftblkarrow.gif";
	}
}

onload = initIt;

// SCRIPT TO FIX THE NETSCAPE BUG THAT OCCURS ON WINDOW RESIZE
   NS4 = document.layers;
   if (NS4) {
      origWidth = innerWidth;
      origHeight = innerHeight;
   }

function reDo() {
   if (innerWidth != origWidth || innerHeight != origHeight) 
      location.reload();
}

if (NS4) onresize = reDo;

-->