function goHome()
{
	//if (screen.width<1024 || screen.height<768) document.location="default.lr.asp"
	//else document.location="default.asp"
	document.location="default.asp"
}

function noop()
{
}

function winpop(url,wn,w,h)
{
	window.open(url,wn,'width='+w+',height='+h+',resizable=no,scrollbars=yes,menubar=no')
}

function search4()
{
}

var thetitle=document.title

if (document.all||document.getElementById)
{
	document.title='Loading... Παρακαλώ περιμένετε...'
}

function titleInit()
{
	if (bw.bw) t_init()
	if (document.all||document.getElementById) document.title=thetitle
}

function browserDetect()
{
	this.ver = navigator.appVersion
	this.agent = navigator.userAgent
	this.dom = document.getElementById?1:0
	this.opera5 = this.agent.indexOf("Opera 5")>-1
	this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4 = (document.all && !this.dom && !this.opera5)?1:0;
	this.ie = this.ie4||this.ie5||this.ie6
	this.mac = this.agent.indexOf("Mac")>-1
	this.ns6 = (this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4 = (document.layers && !this.dom)?1:0;
	this.bw = (this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}

function makeTicker(obj,nest,narray,carray)
{
	nest=(!nest) ? "":'document.'+nest+'.'
   	this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0
   	this.writeref=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj+".document"):0
	this.color=new Array(); this.color=eval(carray)
	this.news=new Array(); this.news=eval(narray)
	this.speed=speed; this.delay=delay; this.newsheight=20
	this.fadeIn=b_fadeIn
	this.fadeOut=b_fadeOut
	this.newsWrite=b_newsWrite
	this.y=1
	if (bw.dom || bw.ie4) this.css.color=this.color[0]
	this.obj = obj + "Object"
	eval(this.obj + "=this")
	return this
}

function b_newsWrite(num,i)
{
	html = "<table cellpadding=0 cellspacing=0 border=0><tr><td class=info height=30>"
	html = html + "<table cellpadding=0 cellspacing=0 border=0><tr><td class=info valign=top><font color="+this.color[i]+">» </font><br></td><td class=info valign=top>"
	html = html + "<a class=news href="../alimos.files/%2Bthis.news%5Bnum%5D%5B%27link%27%5D%2B"><font color="+this.color[i]+">"+this.news[num]['title']+"</font></a><br>"
	html = html + "</td></tr></table>"
	html = html + "</td></tr></table>"
	if (bw.ns4)
	{
		this.writeref.write(html)
		this.writeref.close()
	}
	else this.writeref.innerHTML = html
}

function b_fadeIn(num,i)
{
	if (i<this.color.length)
	{
		this.newsWrite(num,i)
		i ++
		setTimeout(this.obj+".fadeIn("+num+","+i+")",this.speed)
	}
	else setTimeout(this.obj+".fadeOut("+num+","+(this.color.length-1)+")",this.delay)
}

function b_fadeOut(num,i)
{
	if (i>=0)
	{
		this.newsWrite(num,i)	
		i --
		setTimeout(this.obj+".fadeOut("+num+","+i+")",this.speed)
	} else {
		num ++
		if(num==this.news.length) num=0
		setTimeout(this.obj+".fadeIn("+num+",0)",500)
	}
}


function t_init()
{
	if (news.length==0) return
	oNews = makeTicker('divNews','divNewsCont',news,color)
	oNewsCont = new makeTicker('divNewsCont','',news,color)
	oNews.fadeIn(0,0)
	oNewsCont.css.visibility = "visible"
}

var bw = new browserDetect()
var news = new Array()

delay = 2500
speed = 75
color = new Array('#eeeeee', '#bbbbbb','#888888','#666666','#444444','#222222','#000000')

window.onload=titleInit
