<?php
ob_start("ob_gzhandler");
header('Cache-Control: public');
header('Expires: '.date('D, d M Y H:i:s T', strtotime('+1 WEEK')));
header('Content-Type: text/js');
?>
// JavaScript Document
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
		if (oldonload) {
			oldonload();
		}
			func();
		}
	}
}

addLoadEvent(animate);
charSpeed = 40;
line = new Object();
line[1] = "It's easy to contact me.......";
line[2] = "Email: iphone@lee-johnson.com";
line[3] = "Phone on: 0754 99 47477";
line[4] = "Or use the contact form below.";
lines = 4 //--Number of lines
//--Don't edit below this line
document.write('<form name="bannerform">');
document.write('<div style="text-align:center;"><p><input type="text" name="banner" size="90"');
document.write('style="background-color: #F5F5F5; color: #03748c; text-align: left; padding:0 0 0 170px; font-size: 15px; font-family: Verdana;font weight:bold; border: medium none" onfocus="blur()"></p>');
document.write('</div>');
document.write('</form>');
temp = "";
nextchar = -1;
nextline = 1;
cursor="\\"
function animate(){
	if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
		nextline++;
		nextchar=-1;
		document.bannerform.banner.value=temp;
		temp = "";
		setTimeout("nextstep()",2000)
	} else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
		nextline=1;
		nextchar=-1;
		document.bannerform.banner.value=temp;
		temp="";
		setTimeout("nextstep()",1000)
	} else {
		nextstep()
	}
}
function nextstep(){
	if (cursor=="\\"){
		cursor="|";
	} else if (cursor=="|"){
		cursor="/";
	} else if (cursor=="/"){
	cursor="-";
	} else if (cursor=="-"){
		cursor="\\";
	}
	nextchar++;
	temp += line[nextline].charAt(nextchar);
	document.bannerform.banner.value = temp + cursor
	setTimeout("animate()",charSpeed)
}