//Floating Logo
/********************************************************************************
Copyright (C) 1999 Thomas Brattli
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts.
This may be used freely as long as this msg is intact!
********************************************************************************/

var gright=100
var gbottom=75

//Browsercheck
var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;


function makeObj(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'
   	this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')							
	this.moveIt=b_moveIt;
}
function b_moveIt(x,y){
	this.x=x; this.y=y
   	this.css.left=this.x
	this.css.top=this.y
}
var pageWidth,pageHeight
function geoInit(){
	oTest=new makeObj('divBottom')
	pageWidth=(ie)?document.body.offsetWidth-4:innerWidth;
	pageHeight=(ie)?document.body.offsetHeight-2:innerHeight;
	checkIt()
	//sets the resize handler.
	onresize=resized
	if(ie) window.onscroll=checkIt;
}
function checkIt(){
	if(ie) oTest.moveIt(document.body.scrollLeft +pageWidth-gright,document.body.scrollTop+pageHeight-gbottom)
	else if(n){
		oTest.moveIt(window.pageXOffset+pageWidth-gright, window.pageYOffset+pageHeight-gbottom)
		setTimeout('checkIt()',20)
	}
}

//Adds a onresize event handler to handle the resizing of the window.
function resized(){
	pageWidth=(ie)?document.body.offsetWidth-4:innerWidth;
	pageHeight=(ie)?document.body.offsetHeight-2:innerHeight;
	if(ie) checkIt()
}


onload=geoInit;

if(n || ie) document.write('<div id="divBottom"><IMG src="logos.gif" height="40" width="40" alt="The Tripoli Internet Database/tripoli-city.org" style="border : none"></div>')
//End
//Copyright
var IE;
var NN;

if(navigator.appName=="Microsoft Internet Explorer")
{
IE=true;
}

if(navigator.appName=="Netscape")
{
NN=true;
} 

function right(click)
{
if(IE && (event.button==2 || event.button==3))
{
alert("The content of the Tripoli Internet Database/tripoli-city.org is copyrighted");
return false;
}

if(NN && (click.which==2 || click.which==3))
{
alert("The content of the Tripoli Internet Database/tripoli-city.org is copyrighted");
return false;
}

return false;
}

if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
document.onmousedown=right;
document.onmouseup=right;
window.document.layers=right;
//End
//Function to show the summary of a link
function showLinkSummary(itemNo,on)
{
	var itemObj;
	itemObj = "abstract" + itemNo;
	if(on)
	{
		document.all.item(itemObj).style.display = "";
		/*if (intervalTime != 0)
			window.clearInterval(intervalTime);*/
	}
	else
	{
		document.all.item(itemObj).style.display = "none";
		if (intervalTime != 0)
			window.clearInterval(intervalTime);
	}	

}
//End
//Function to call showLinkSummary() after 250 milliseconds on mouse over.
function setIntervalDelay(itemNo,on)
{
	if (on)
		intervalTime = window.setInterval("showLinkSummary(" + itemNo + "," + on +")",250);
	else
		showLinkSummary(itemNo,on);
}
//End
//Maps Script

if (document.images) {
var hc01_original = new Image()
hc01_original.src = "maps/hc01original.jpg"
var hc01_mansouri = new Image()
hc01_mansouri.src = "maps/hc01mansouri.jpg"
var hc01_hindi = new Image()
hc01_hindi.src = "maps/hc01hindi.jpg"
var hc01_shamsiyah = new Image()
hc01_shamsiyah.src = "maps/hc01shamsiyah.jpg"
var hc01_karatay = new Image()
hc01_karatay.src = "maps/hc01karatay.jpg"
var hc01_prince = new Image()
hc01_prince.src = "maps/hc01prince.jpg"
var hc02_original = new Image()
hc02_original.src = "maps/hc02original.jpg"
var hc02_red = new Image()
hc02_red.src = "maps/hc02red.jpg"
var hc02_secrets = new Image()
hc02_secrets.src = "maps/hc02secrets.jpg"
var hc03_original = new Image()
hc03_original.src = "maps/hc03original.jpg"
var hc03_citadel = new Image()
hc03_citadel.src = "maps/hc03citadel.jpg"
var hc03_center = new Image()
hc03_center.src = "maps/hc03center.jpg"
var hc04_original = new Image()
hc04_original.src = "maps/hc04original.jpg"
var hc04_ouwaysiyyah = new Image()
hc04_ouwaysiyyah.src = "maps/hc04ouwaysiyyah.jpg"
var hc04_wahed = new Image()
hc04_wahed.src = "maps/hc04wahed.jpg"
var hc04_bahaa = new Image()
hc04_bahaa.src = "maps/hc04bahaa.jpg"
var hc05_original = new Image()
hc05_original.src = "maps/hc05original.jpg"
var hc05_izzedeen = new Image()
hc05_izzedeen.src = "maps/hc05izzedeen.jpg"
var hc05_khayyateen = new Image()
hc05_khayyateen.src = "maps/hc05khayyateen.jpg"
var hc05_misriyyin = new Image()
hc05_misriyyin.src = "maps/hc05misriyyin.jpg"
var hc06_original = new Image()
hc06_original.src = "maps/hc06original.jpg"
var hc06_jaweesh = new Image()
hc06_jaweesh.src = "maps/hc06jaweesh.jpg"
var hc06_sanjar = new Image()
hc06_sanjar.src = "maps/hc06sanjar.jpg"
var hc07_original = new Image()
hc07_original.src = "maps/hc07original.jpg"
var hc07_nicolas = new Image()
hc07_nicolas.src = "maps/hc07nicolas.jpg"
var hc07_georgious = new Image()
hc07_georgious.src = "maps/hc07georgious.jpg"
var hc08_original = new Image()
hc08_original.src = "maps/hc08original.jpg"
var hc08_aaskar = new Image()
hc08_aaskar.src = "maps/hc08aaskar.jpg"
var hc08_tawbah = new Image()
hc08_tawbah.src = "maps/hc08tawbah.jpg"
var hc08_haraj = new Image()
hc08_haraj.src = "maps/hc08haraj.jpg"
var hc09_original = new Image()
hc09_original.src = "maps/hc09original.jpg"
var hc09_bortasi = new Image()
hc09_bortasi.src = "maps/hc09bortasi.jpg"
var hc09_shouhada = new Image()
hc09_shouhada.src = "maps/hc09shouhada.jpg"
var hc10_original = new Image()
hc10_original.src = "maps/hc10original.jpg"
var hc10_bortasialley = new Image()
hc10_bortasialley.src = "maps/hc10bortasialley.jpg"
var hc10_kadiriyah = new Image()
hc10_kadiriyah.src = "maps/hc10kadiriyah.jpg"
var hc10_nahhaseen = new Image()
hc10_nahhaseen.src = "maps/hc10nahhaseen.jpg"
var hc11_original = new Image()
hc11_original.src = "maps/hc11original.jpg"
var hc11_abed = new Image()
hc11_abed.src = "maps/hc11abed.jpg"
var hc11_saboun = new Image()
hc11_saboun.src = "maps/hc11saboun.jpg"
var hc11_sayyagheen = new Image()
hc11_sayyagheen.src = "maps/hc11sayyagheen.jpg"
var hc11_tuwashiyah = new Image()
hc11_tuwashiyah.src = "maps/hc11tuwashiyah.jpg"
var hc12_original = new Image()
hc12_original.src = "maps/hc12original.jpg"
var hc12_arghoun = new Image()
hc12_arghoun.src = "maps/hc12arghoun.jpg"
var hc12_khatouniyah = new Image()
hc12_khatouniyah.src = "maps/hc12khatouniyah.jpg"
var hc12_khayriyah = new Image()
hc12_khayriyah.src = "maps/hc12khayriyah.jpg"
var hc12_saqraqiyah = new Image()
hc12_saqraqiyah.src = "maps/hc12saqraqiyah.jpg"
var hc12_tahham = new Image()
hc12_tahham.src = "maps/hc12tahham.jpg"
var hc13_original = new Image()
hc13_original.src = "maps/hc13original.jpg"
var hc13_jadeed = new Image()
hc13_jadeed.src = "maps/hc13jadeed.jpg"
var hc13_khankah = new Image()
hc13_khankah.src = "maps/hc13khankah.jpg"
var hc13_muallaq = new Image()
hc13_muallaq.src = "maps/hc13muallaq.jpg"
var maplebanonsatellite_0 = new Image()
maplebanonsatellite_0.src = "maps/maplebanonsatellite0.jpg"
var maplebanonsatellite_1 = new Image()
maplebanonsatellite_1.src = "maps/maplebanonsatellite1.jpg"
var mapbeiruttripolisatellite_0 = new Image()
mapbeiruttripolisatellite_0.src = "maps/mapbeiruttripolisatellite0.jpg"
var mapbeiruttripolisatellite_1 = new Image()
mapbeiruttripolisatellite_1.src = "maps/mapbeiruttripolisatellite1.jpg"
var mapnorthlebanonsatellite_0 = new Image()
mapnorthlebanonsatellite_0.src = "maps/mapnorthlebanonsatellite0.jpg"
var mapnorthlebanonsatellite_1 = new Image()
mapnorthlebanonsatellite_1.src = "maps/mapnorthlebanonsatellite1.jpg"
var maptripolisatellite2000_0 = new Image()
maptripolisatellite2000_0.src = "maps/maptripolisatellite20000.jpg"
var maptripolisatellite2000_1 = new Image()
maptripolisatellite2000_1.src = "maps/maptripolisatellite20001.jpg"
var maptripolisatellite1000_0 = new Image()
maptripolisatellite1000_0.src = "maps/maptripolisatellite10000.jpg"
var maptripolisatellite1000_1 = new Image()
maptripolisatellite1000_1.src = "maps/maptripolisatellite10001.jpg"
var maptripolisatellite0500_0 = new Image()
maptripolisatellite0500_0.src = "maps/maptripolisatellite05000.jpg"
var maptripolisatellite0500_1 = new Image()
maptripolisatellite0500_1.src = "maps/maptripolisatellite05001.jpg"
var mapoldtripoligps_0 = new Image()
mapoldtripoligps_0.src = "maps/mapoldtripoligps0.jpg"
var mapoldtripoligps_1 = new Image()
mapoldtripoligps_1.src = "maps/mapoldtripoligps1.jpg"
var maptripoligps_0 = new Image()
maptripoligps_0.src = "maps/maptripoligps0.jpg"
var maptripoligps_1 = new Image()
maptripoligps_1.src = "maps/maptripoligps1.jpg"
var maptripoligpsfrench_0 = new Image()
maptripoligpsfrench_0.src = "maps/maptripoligpsfrench0.jpg"
var maptripoligpsfrench_1 = new Image()
maptripoligpsfrench_1.src = "maps/maptripoligpsfrench1.jpg"
}

//End
