var titlea = new Array();var texta = new Array();var linka = new Array();var trgfrma = new Array();var heightarr = new Array();var cyposarr = new Array();
cyposarr[0]=0;cyposarr[1]=1;cyposarr[2]=2;cyposarr[3]=3;cyposarr[4]=4;cyposarr[5]=5;cyposarr[6]=6;

titlea[0] = "<img src='images/tesco.jpg'/>";texta[0] = "<a href='http://www.infomat.net/current_campaigns/tesco_great_run' target='_blank'><div><b>Tesco Great Run</b><br />The Tesco Great School Run is an innovative programme which links education with physical activity. Coming Soon... </div></a>";linka[0] = "";trgfrma[0] = "_parent";
titlea[1] = "<img src='images/LazyTown.jpg'/>";texta[1] = "<a href='http://www.infomat.net/1/focus/foci/LazyTown' target='_blank'><div><b>LazyTown</b><br />LazyTown are the latest sponsors to join the campaign. To access all the great LazyTown resources click here  </div></a>";linka[0] = "";trgfrma[0] = "_parent";
titlea[2] = "<img src='images/cc1.jpg'/>";texta[2] = "<a href='http://www.infomat.net/current_campaigns/breakfast_club' target='_blank'><div><b>Breakfast Clubs 2009</b><br />Coming Soon - Infomat.net is delighted to announce that we will be supporting breakfast clubs again in 2009. Read more.. </div></a>";linka[0] = "";trgfrma[0] = "_parent";
titlea[3] = "<img src='images/history.jpg'/>";texta[3] = "<a href='http://www.infomat.net/1/focus/foci/History_Henry' target='_blank'><div><b>There is something about Henry!</b><br /> 2009 marks the 500th anniversary of Henry VIII’s accession to the throne and the start of a reign that changed the course of British history.</a>";linka[0] = "";trgfrma[0] = "_parent";
titlea[4] = "<img src='images/sainsburys.jpg'/>";texta[4] = "<a href='http://www.infomat.net/current_campaigns/sainsburys_active_kids' target='_blank'><div><b>Sainsbury's Active Kids 09</b><br />This year Infomat is thrilled to be supporting the Sainsbury’s Get Active 09 Campaign again. Coming Soon.. </div></a>";linka[1] = "";trgfrma[1] = "_parent";
titlea[5] = "<img src='images/Endsleigh.jpg'/>";texta[5] = "<a href='http://www.infomat.net/current_campaigns/Endsleigh' target='_blank'><div><b></b><br />Endsleigh provide insurance service for teachers and education professionals for over 25 years with up to 15% discount on car and home insurance.. </div></a>";linka[2] = "";trgfrma[2] = "_parent";
titlea[6] = "<img src='images/cc5.jpg'/>";texta[6] = "<a href='http://www.infomat.net/current_campaigns/reading_books' target='_blank'><div><b>The Year of Reading 2009</b><br />Coming Soon - Infomat.net will be actively promoting the benefits of reading throughout 2009. Read more.. </div></a>";linka[5] = "";trgfrma[5] = "_parent";


var mc=6;
var inoout=false;
var spage;
var cvar=0,say=0,tpos=0,enson=0,hidsay=0,hidson=0;
var tmpv;
tmpv=180-8-8-(2*1);

var psy = new Array();
divtextb ="<div id=d";
divtev1=" onmouseover=\"mdivmo(";
divtev2=")\" onmouseout =\"restime(";
divtev3=")\" onclick=\"butclick(";
divtev4=")\"";
divtexts = " style=\"visibility:hidden;\">";
ns6span= " style=\"\"";

uzun="<div id=\"enuzun\" style=\"position:absolute;\">";
var uzunobj=null;
var uzuntop=0;
var toplay=0;

function mdivmo(gnum)
{
	inoout=true;
	if((linka[gnum].length)>2)
	{
		objd=document.getElementById('d'+gnum);
		objd2=document.getElementById('hgd'+gnum);
		objd.style.color="#8E0606";
		objd2.style.color="#B90000";
		objd.style.textDecoration='none';objd2.style.textDecoration='none';
		window.status=""+linka[gnum];
	}
}

function restime(gnum2)
{
	inoout=false;
	objd=document.getElementById('d'+gnum2);
	objd2=document.getElementById('hgd'+gnum2);
	objd.style.textDecoration='none';objd2.style.textDecoration='none';
	window.status="";
}

function butclick(gnum3)
{
	if(linka[gnum3].substring(0,11)=="javascript:"){eval(""+linka[gnum3]);}else{if((linka[gnum3].length)>3){
	if((trgfrma[gnum3].indexOf("_parent")>-1)){eval("parent.window.location='"+linka[gnum3]+"'");}else if((trgfrma[gnum3].indexOf("_top")>-1)){eval("top.window.location='"+linka[gnum3]+"'");}else{window.open(''+linka[gnum3],''+trgfrma[gnum3]);}}}
}

function dotrans()
{
	if(inoout==false){

	uzuntop--;
	//alert(uzuntop);
	if(uzuntop<(-1*toplay))
	{
		uzuntop=215;
	}
	uzunobj.style.top=uzuntop+"px";
}
	if(psy[(uzuntop*(-1))+4]==3)
	{
		//for delay
		setTimeout('dotrans()',10+35);
		//alert(setTimeout);
	}
	else
	{
		setTimeout('dotrans()',30);
	}		
}

function initte2()
{
	i=0;
	for(i=0;i<mc;i++)
	{
		
		objd=document.getElementById('d'+i);
		heightarr[i]=0;
	}
	toplay=4;
	for(i=0;i<mc;i++)
	{
		objd=document.getElementById('d'+i);
		objd.style.visibility="visible";
		objd.style.top=""+toplay+"px";
		psy[toplay]=3;
//		for hight
		toplay=toplay+heightarr[1]+100;
	}
	uzunobj=document.getElementById('enuzun');
	uzunobj.style.left=8+"px";
	uzunobj.style.height=toplay+"px";
	uzunobj.style.width=620;
//edited
	uzuntop=215 ;
	dotrans();
}

function initte()
{
	i=0;
	innertxt=""+uzun;
	for(i=0;i<mc;i++)
	{
		innertxt=innertxt+""+divtextb+""+i+""+divtev1+i+divtev2+i+divtev3+i+divtev4+divtexts+"<div style='float:left; width:145px; height:100px;'>"+titlea[i]+"</div>"+"<div style='float:left; height:114px; width:395px; height:100px; font-weight:normal; text-align:justify; overflow:auto; overflow-x:hidden; padding:0px 5px;'>"+texta[i]+"</div>"+"</div>";
	}
	innertxt=innertxt+"</div>";
	spage=document.getElementById('spagens');
	spage.innerHTML=""+innertxt;
	spage.style.left="0px";
	spage.style.top="0px";
	setTimeout('initte2()',500);
}
window.onload=initte;
