var CurrID = 0;

function mOvr(src,clrOver){ 
	if (!src.contains(event.fromElement)){ 
		src.style.cursor = 'hand'; 
		src.bgColor = clrOver; 
	} 
} 


function mOut(src,clrIn){ 
	if (!src.contains(event.toElement)){ 
		src.style.cursor = 'default'; 
		src.bgColor = clrIn; 
	} 
}


//----------------------------------------

function NewWinShow(URL,W,H)
	{
		//alert(URL)
		oNewWindow = window.open(URL,null,"height=" + H + ",width=" + W + ",left=0,top=0,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,titlebar=no");
	}

//----------------------------------------
function OpenModule(Module){
	
	switch (Module){
		case "poet"	:
			window.navigate("poet.asp?ID=4154")
			break;
		case "wath"	:
			window.navigate("wath.asp?ID=4544")
			break;
		case "Persons"	:
			window.navigate("Persons.asp?ID=2001")
			break;
		case "Aksa"	:
			window.navigate("Aksa.asp?ID=1")
			break;
		case "Hist"	:
			window.navigate("Quds.asp?ID=101")
			break;
		case "Ra7ala"	:
			window.navigate("Ra7ala.asp?ID=1")
			break;
		case "Library"	:
			window.navigate("Library.asp?ID=5&Tabs=Libr2")
			break;	
		case "Geog"	:
			window.navigate("Geography.asp?ID=651")
			break;
		case "MMedia"	:
			window.navigate("MMedia.asp?ID=1")
			break;
		case "Releg"	:
			window.navigate("Releg.asp?ID=551")
			break;		
		case "Athar"	:
			window.navigate("Athar.asp?ID=1301")
			break;
		case "Entifada"	:
			window.navigate("Entifada.asp?ID=5000")
			break;
		case "Atlas"	:
			window.navigate("Atlas.asp")
			break;
		case "TimeLine"	:
			window.navigate("TimeLine.asp")
			break;			
	}		
}
//----------------------------------------
function nextPage(ModulName,Dir){
	var CurrID;
	strCurrID = document.forms("HoldIDForm").HoldIDInput.value;
	CurrID = parseInt(strCurrID);
	//alert(CurrID);
	//alert(ModulName);
	switch (ModulName)
		{
			case "poet":
				var DocSec = new Array(3500,3506,3512,3518,3524,3530,4187,3542,4163,3554,3566,3590,3602,3608,3614,3620,3626,3638,3644,3668,3674,3680,3686,3692,3698,3704,3716,3722,3728,3734,3740,3746,3758,3764,3770,3800,3806,3812,3818,4160,3824,3830,3831,4175,4181,3842,4166,3848,4172,3854,3860,3866,3872,3878,3884,4184,3908,3914,3920,3926,3932,3944,3950,3956,3952,3968,3974,3986,3992,4178,4004,4010,4016,4022,4028,4034,4040,4046,4058,4064,4070,4076,4082,4088,4094,4100,4106,4112,4115,4118,4121,4124,4127,4130,4133,4136,4139,4142,4145,4154,4157);
				break;
			case "wath":
				var DocSec = new Array(4544,4542,4540,4722,4556,4546,4548,4550,4552,4554,4522,4532,4534,4558,4524,4526,4528,4530,4536,4538,4786,4788,4790,4516,4518,4512,4506,4508,4510,4502,4520,4514,4500,4798,4800,4802,4804,4806,4598,4596,4594,4592,4574,4576,4580,4582,4584,4586,4588,4590,4578,4571,4572,4562,4564,4560,4604,4784,4606,4694,4608,4610,4612,4614,4620,4616,4618,4692,4634,4636,4638,4640,4642,4783,4644,4646,4648,4650,4622,4630,4652,4654,4628,4624,4656,4658,4660,4662,4664,4632,4666,4668,4670,4672,4674,4676,4678,4680,4682,4684,4686,4688,4690,4626,4698,4700,4702,4704,4706,4708,4710,4712,4714,4716,4718,4792,4762,4766,4760,4768,4742,4738,4740,4744,4746,4756,4754,4774,4776,4748,4750,4752,4772,4778,4780,4770,4758,4730,4734,4782,4736,4732,4808,4810,4812,4814,4566,4504,4570,4568,4728);
				break;
			case "Persons":
				var DocSec = new Array(2001,2033,2093,2109,2131,2229,2261,2299,2331,2339,2011,2013,2015,2017,2019,2031,2059,2067,2075,2083,2087,2095,2113,2121,2123,2141,2143,2153,2169,2177,2185,2187,2189,2193,2197,2209,2219,2221,2223,2227,2237,2247,2289,2291,2333,2005,2051,2099,2101,2103,2105,2271,2115,2119,2127,2263,2157,2211,2171,2201,2225,2231,2233,2243,2255,2257,2335,2009,2027,2057,2073,2111,2117,2063,2349,2287,2325,2329,2167,2179,2213,2217,2234,2265,2012,2025,2037,2039,2041,2043,2044,2045,2061,2069,2079,2081,2086,2089,2107,2125,2129,2133,2135,2137,2139,2145,2147,2149,2155,2159,2160,2161,2163,2165,2173,2175,2195,2198,2199,2205,2207,2215,2220,2222,2226,2235,2239,2241,2245,2249,2251,2253,2259,2267,2269,2275,2277,2279,2281,2283,2347,2292,2293,2295,2297,2307,2309,2311,2313,2319,2323,2337,2003,2007,2021,2022,2023,2047,2049,2053,2363,2055,2097,2064,2361,2066,2077,2084,2085,2106,2212,2359,2035,2156,2174,2180,2181,2183,2191,2236,2244,2203,2138,2029,2305,2365,2102,2154,2273,2321,2056,2098,2065,2062,2351,2353,2080,2108,2355,2140,2151,2246,2301,2303,2306,2071,2317,2322,2030,2326,2327);
				break;
			case "Aksa":
				var DocSec = new Array(1,3,5,7,9,13,15,17,19,21,23,10,11,27,25,29,31,39,41,33,35,37,43,45,47,48,50,49,51,53);
				break;
			case "Hist":
				var DocSec = new Array(101,103,105,107,109,111,112,113,115,117,119,121,123,125,127,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,159,161,163,165,167,169,171,173,175,177,179,181,183,185,187,189,191,193,195,197,199,201,203,205,207,209,211,213,217,215,219,221,223,225,227,229,231,232,233,234,235,236,237,239,241,243,245,247,249,251,252,253,254,255,256,257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,298,299,301,303,300,302,304,306,308,305,325,327,309,311,313,314,315,317,319,321,323,343,345,347,328,332,334,329,330,331,307,333,335,337,339,341,349,351,353,355,357,359,361,365,367,369,371,373,375,377,379,363,364,381,383,385,387,389,391,393,395,397,399,401,403,405,409,411,413,415,417,419,421,423,425,429,431,433,435,437,439,441,445,443,447,449,451,453,455,457,459,461,463,465,467,469,471,473,475,477,479,481,482,483,484);
				break;
			case "Geog":
				var DocSec = new Array(651,653,655,657,659,661,663,665,667,669);
				break;
			case "Releg1":
				var DocSec = new Array(551,559,565,573,575);
				break;
			case "Releg2":
				var DocSec = new Array(556,557,561,563,578,595,593,571,577);
				break;
			case "Releg3":
				var DocSec = new Array(552,553,555,567,569,579,580,581,583,585,587,589,591);
				break;				
			case "Athar":
				var DocSec = new Array(1465,1301,1303,1425,1305,1307,1309,1409,1311,1421,1313,1315,1417,1317,1429,1319,1321,1413,1433,1471,1463,1439,1449,1323,1467,1451,1325,1327,1329,1330,1332,1337,1331,1333,1335,1339,1341,1343,1345,1347,1349,1459,1461,1445,1435,1447,1443,1427,1351,1353,1355,1357,1361,1455,1359,1415,1362,1431,1408,1407,1469,1419,1365,1363,1367,1369,1371,1373,1375,1377,1379,1381,1387,1385,1389,1391,1393,1395,1397,1383,1399,1401,1403,1405,1453,1437,1438,1441,1457);
				break;
			case "Entifada":
				var DocSec = new Array(5000,5001,5002,5003,5004,5016,5005,5017,5006,5018,5007,5008,5009,5010,5019,5011,5012,5013,5014,5015);
				break;
			case "Atlas":
				var DocSec = new Array(801,803,807,809,811,813,815,817,819,821,822,823,825,827,829,831,833,835,837,839,841,843,845,847,848,849,851,853,855,857,859,861,863,865,867,869,871,873,875,877,879,881,883,885,887,889,891,893,895,897,901,903,904,905,907,909,911,913,915,917,919,920,926,921,923,925,927,929,931,933,935,937,939,940,941,943,945,947,949,951,953,955,956,957,959,961,962,963,965,967,969,971,973,975,977,979,981,983,985,987,989,991,993,995,997,999,1001,1003,1005,1007,1009,1011,1013,1015,1017,1019,1021,1023,1025,1027,1029,1031,1033,1035,1037,1039,1041,1043,1045,1047,1048,1049,1051,1053,1055,1057,1059,1060,1061,1063,1065,1067,1068,1069,1071,1073,1075,1077,1079,1081,1083,1085,1087,1089,1091,1093,1095,1097,1099,1101,1103,1105,1107,1109,1111,1113,1115,1117,1119,1121,1123,1125,1127,1129,1131,1133,805,1171,1135,1137,1139,1141,1143,1145,1147,1148,1149,1150,1151,1153,1155,1157,1159,1161,1163,1165,1167,1168,1169);
				break					
			case "Ra7ala":
				var DocSec = new Array();
				if (Dir == 1)
					{
						if (CurrID < 12)
						{
							CurrID++;
							//alert(CurrID);
							window.document.location= "Ra7ala.asp?ID=" + CurrID ;
						}
					}
				else if(Dir == -1)
					{
						if (CurrID > 1)
						{
							CurrID--;
							//alert(CurrID);
							window.document.location= "Ra7ala.asp?ID=" + CurrID ;
						}
					}
				break;
			case "MMPics":
				var DocSec = new Array();
				if (Dir == 1)
					{
						if (CurrID < 297)
						{
							CurrID++;
							//alert(CurrID);
							window.document.location= "MMedia.asp?ID=" + CurrID ;
						}
					}
				else if(Dir == -1)
					{
						if (CurrID > 1)
						{
							CurrID--;
							//alert(CurrID);
							window.document.location= "MMedia.asp?ID=" + CurrID ;
						}
					}
				break;
			case "EntfPics":
				var DocSec = new Array();
				if (Dir == 1)
					{
						if (CurrID < 187)
						{
							CurrID++;
							//alert(CurrID);
							window.document.location= "EntifadaMedia.asp?ID=" + CurrID ;
						}
					}
				else if(Dir == -1)
					{
						if (CurrID > 1)
						{
							CurrID--;
							//alert(CurrID);
							window.document.location= "EntifadaMedia.asp?ID=" + CurrID ;
						}
					}
				break;				
			default:
				var DocSec = new Array();
				break;
		}
	
	
	
	for(i=0; i < DocSec.length; i++)
		if (DocSec[i] == CurrID)
			 break;
	//alert(i)
	if (Dir == 1)
		{
			if (i < DocSec.length-1){
				i++;
				CurrID = DocSec[i];
				//alert(CurrID);
				window.document.frames("Subcontent").navigate("HLM.asp?ID="+CurrID);
			}
		}
	else if(Dir == -1)
		{
			if (i > 0)
			{
				i--;
				CurrID = DocSec[i];
				//alert(CurrID);
				window.document.frames("Subcontent").navigate("HLM.asp?ID="+CurrID);
			}
		}
}
//----------------------------------------
function SubItemShow(SubFile)
	{
	//alert(SubFile)
	window.frames("Subcontent").navigate(SubFile)
	}
	
//function PicShow(URL, Title)
//	{
//		alert(URL + Title)
//		W=485;
//		H=350;
//		
//		window.open(URL,null,"height=" + H + ",width=" + W + ",top=" + ((window.screen.availHeight / 2) - (H/2)) + ",left=" + ((window.screen.availWidth / 2) - (W/2)) + ",status=no,toolbar=no,menubar=no,location=no");
//	}
//----------------------------------------
function PicShow(ImageFile, Title) {
		winW= 485 + 6;
		winH= 402 + 45;
		window.showModalDialog(("ViewImage.asp?Pic=" + ImageFile + "&Title=" + Title),"", "dialogWidth:" + winW +"px; dialogHeight:"+ winH +"px" )
	}
//----------------------------------------<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3116583-1");
pageTracker._trackPageview();
} catch(err) {}</script>