
<!-- Begin

//Coded by habeshaworld.com web development team
// default advertisment

	
var blank = "http://www.habeshaworld.com/images/add.gif";

topedge = 365;  // location of news box from top of page

if ((screen.width>=1280) && (screen.height>=800))
{
leftedge = 240;  //733 location of news box from left edge
strX = 140;
//strY = 185;
}else if ((screen.width>=1152) && (screen.height>=864))
{
leftedge = 200;  //733 location of news box from left edge
strX = 115;			
}else if ((screen.width>=1024) && (screen.height>=768))
{
leftedge = 120;  //733 location of news box from left edge
strX = 60;			
} else{
 strX = 640;
 leftedge = 15;  // 625 location of news box from left edge
}




boxheight = 220;  // height of news box
boxwidth = 220;  // width of news box
scrollheight = 0; // total height of all data to be scrolled

function scrollnews(cliptop) {
if (document.layers) {
newsDiv = document.news;
newsDiv.clip.top = cliptop;
newsDiv.clip.bottom = cliptop + boxheight;
newsDiv.clip.left = 0;
newsDiv.clip.right = boxwidth + leftedge;
newsDiv.left = leftedge;
newsDiv.top = topedge - cliptop;
}
else {
newsDiv = news.style;
newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
newsDiv.pixelLeft = leftedge;
newsDiv.pixelTop = topedge - cliptop;
}
cliptop = (cliptop + 1) % (scrollheight + boxheight);
newsDiv.visibility='visible';
setTimeout("scrollnews(" + cliptop + ")", 100);
}

function nava_FloatTopDiv()
{
	var startX = strX,
	startY = 220;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id)
	{

		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function()
	{
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("divStayTopLeft");
	stayTopLeft();
}

//  End -->





