var bnr;
function init() {
  if (first_call('flying_banner')) {
    bnr = getElement("bnr");
    bnr.style.top = "-200px";
    window.setTimeout("slide()", 3000);
	handle=window.setTimeout("backslide()", 13000);
  }
}
function slide() {
  if(parseInt(bnr.style.top)<=400) {
    bnr.style.top = (parseInt(bnr.style.top)+2)+"px";
    window.setTimeout("slide()", 10);
  }
}
function backslide() {
  if(parseInt(bnr.style.top)>=-200) {
    bnr.style.top = (parseInt(bnr.style.top)-1)+"px";
    handle=window.setTimeout("backslide()", 10);
  }
}
function slide_return() {
  clearTimeout(handle);
  slide();
}

function first_call(cookiename) {
	if (readCookie(cookiename) == 'done') {
		return false;
  	} else {
		createCookie(cookiename,'done',360);
		return true;
  	}
}

document.writeln("  <div style='cursor:pointer;'  id=\"bnr\" onMouseOver=\"slide_return()\" onMouseOut=\"backslide()\">");
document.writeln("    <h4>Welcome to Cheap Shop Price UK!</h4>");
document.writeln("    <p>The new shopping search engine.</p>");
document.write("    <p>");
if(navigator.appName == "Microsoft Internet Explorer") document.write("<a href=\"#\" onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.cheapshopprice.co.uk/');return false;\">");
document.write("Make us your homepage and save money every day!");
if(navigator.appName == "Microsoft Internet Explorer") document.write("</a>");
document.writeln("</p>");
document.writeln("  </div>");

init();
