//Copyright
var message="The content of the Tripoli Internet Database/tripoli-city.org is copyrighted"; 
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
//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"
}

//End
/********************************************************************************
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="T" style="border : none"></div>')
//End
