/* author: Unregistered user */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 2003.02.01. */

function InfoScroller(messages){

function GetX(e) { return(window.screen.width); }
var ScrWidth = GetX();

var Resize = ScrWidth/1024;

var bg=new Image();
        bg.src='pic/sheetbg.gif';
        bg.width=eval(bg.width);
        bg.height=eval(bg.height);
var scrollerwidth=Math.floor(bg.width*Resize);
var scrollerheight=Math.floor(bg.height*Resize);
var FontSize = Math.floor(14*Resize);

function message(Title,Location,Page){
	this.Title=Title;
	this.Location=Location;
	this.Page=Page;
}

var messages=new Array();
messages[0]=new message("Bókay Árpád<br>Országos<br>Biológiaverseny","director","page2");
messages[1]=new message("<br>100 éves a Bókay","director","page1");

i=0;

function scrolling(whichdiv){
if (parseInt(document.getElementById(whichdiv).style.top)<-scrollerheight) {
        if (i==messages.length-1) i=0;
        else i++;
        document.getElementById(whichdiv).style.top=scrollerheight
        document.getElementById(whichdiv).innerHTML=messages[i].Title;
        document.getElementById('link').href="javascript:loadPage('"+messages[i].Location+"','"+messages[i].Page+"')";
        }
if (parseInt(document.getElementById(whichdiv).style.top)>0)
{ 
	document.getElementById(whichdiv).style.top=0;
	setTimeout("scrolling('text')",3000);
	return;
}
else{
	setTimeout("scrolling('text')",30);
	document.getElementById(whichdiv).style.top=parseInt(document.getElementById(whichdiv).style.top)-1
}
}

function loadPage(Location,Page){
document.writeln('<HTML><HEAD>');
document.writeln('<META NAME="generator" CONTENT="ConTEXT">');
document.writeln('<META NAME="author" CONTENT="Suszter">');
document.writeln('<META NAME="description" CONTENT="A Bókay Árpád Általános Iskola honlapja">');
document.writeln('<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">'); 
document.writeln('<TITLE>Bókay Árpád Általános Iskola</TITLE>');
document.writeln('<FRAMESET COLS="200, *"	 frameborder=no framespacing=0>');
document.writeln('<FRAME NAME="left" SCROLLING=NO SRC="'+Location+'/left.html" framespacing=0 noresize>');
document.writeln('<FRAME NAME="body" SCROLLING=YES SRC="'+Location+'/'+Page+'.html">');
document.writeln('</FRAMESET>');
document.writeln('</HEAD><BODY></BODY></HTML>');
}

function startscroll(){
        setTimeout("scrolling('text')",3000);
}

window.onload=startscroll;

document.writeln('<style type="text/css"><!--');
document.writeln('.LinkFont {text-decoration:none;font-family:Comic Sans MS;color:#000000;font-size:'+FontSize+'}');
document.writeln('--></style>');

document.writeln('<div id="main" style="top:200;position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';">');
document.writeln('<div id="picture" style="position:absolute;width:'+scrollerwidth+';"><img id="bg" src='+bg.src+' width="'+scrollerwidth+'" ></div>');
document.writeln('<div style="position:absolute;clip:rect(0 '+scrollerwidth+' '+(scrollerheight-Math.floor(30*Resize))+' 0);width:'+(scrollerwidth-Math.floor(10*Resize))+';height:'+(scrollerheight-Math.floor(15*Resize))+';left:0;top:'+Math.floor(15*Resize)+'">');
document.writeln('<a id="link" class="LinkFont" href="javascript:loadPage(\''+messages[0].Location+'\',\''+messages[0].Page+'\')"');
document.writeln('onmouseover="javascript:document.getElementById(\'link\').style.color=\'#faf5d5\'"');
document.writeln('onmouseout="javascript:document.getElementById(\'link\').style.color=\'#000000\'">');
document.writeln('<div id="text" align=center style="cursor:hand;position:absolute;width:'+(scrollerwidth-Math.floor(30*Resize))+';left:'+Math.floor(15*Resize)+';top:0;">');
document.writeln(messages[0].Title);
document.writeln('</div>');
document.writeln('</a>');
document.writeln('</div>');
document.writeln('</div>');

}