                                                           
//---------------------------------------------------------------
//	Drayton Manor Net's Scripts
//      http://www.freewebs.com/draytonmanornet
//      http://www.draytonmanornet.webs.com/
//	All Scripts were written by Daniel Helen.
//	If you wish to use any of these scripts then email:
//	danielhelen@hotmail.co.uk
//---------------------------------------------------------------

function apoc() {
window.open('http://www.freewebs.com/draytonmanornet/Apocalypse.html','','width=325,height=500,status=yes')
}
function check1() {
var browser=navigator.appName
if (browser=="Microsoft Internet Explorer")
{
}
else {
alert('Sorry,\r\nThis website is currently not compatible with your browser.\r\nBut dont worry, because we are now working on it, come back soon.');
}
}

function poll1() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/poll.html','','width=90,height=250, resizable=yes, scrollbars=yes');
}

document.write('<LINK href="http://www.freewebs.com/draytonmanornet/favicon.ico" rel="shortcut icon">');



function apBrowser1() {
var browser=navigator.appName
if (browser=="Microsoft Internet Explorer")
{
void(0)
}
else {
alert('Sorry,\r\nThis game is not compatible with your browser.\r\nThis is only currently compatible with Internet Explorer.\r\nThis will now close.');window.close()
}
}

function toggle(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}


function email1(form){
if(form.email.selectedIndex==0){
var message="";
}
if(form.email.selectedIndex==1){
var message="17963677";
}
if(form.email.selectedIndex==2){
var message="11328642";
}
form.userid.value=message;
}
function validate() {
if (form.email.options[0].selected) {
alert('Please choose who you would like to send the message to.');
event.returnValue=false;
}
}


function menu() {
  document.getElementById('extra1').style.visibility="visible";
  document.getElementById('extra1').style.position="relative";
  document.getElementById('extra1').style.width="110px";
   document.getElementById('extra2').style.visibility="visible";
   document.getElementById('extra2').style.position="relative";
   document.getElementById('extra2').style.width="110px";
    document.getElementById('extra4').style.visibility="hidden";
}
function menuout() {
  document.getElementById('extra1').style.visibility="hidden";
  document.getElementById('extra1').style.position="absolute";
  document.getElementById('extra1').style.width="0px";
   document.getElementById('extra2').style.visibility="hidden";
   document.getElementById('extra2').style.position="absolute";
   document.getElementById('extra2').style.width="0px";
    document.getElementById('extra4').style.visibility="visible";



}



function banner() {

document.write('')


}

function change(field) {

field.style.backgroundColour="#000000"
}


function mouseOver1(field)
{
  field.style.backgroundColor = "#EFEFEE";
  field.style.border = "1px solid #3399FF";
  }
function mouseOut1(field)
{
  field.style.backgroundColor = "#99CCFF";
  field.style.border = "1px solid #FFFFFF";
}
var lgth=0;
//list news items here (use as many as you need. Use quotes around each one and end each line with a semicolon)
var a1="Welcome to Drayton Manor Net. The parks most informative website.";
var a2=":: The Bounty ::  Pirate Ship Returns to Drayton Manor Easter 2007!!!";
var a3="Drayton Manor is currently :: CLOSED ::     Park Reopens:Saturday 24 March 2007";
var a4="Drunken Barrels review is now available. Click Here!";
var a5="Coming Soon: More Reviews, More News, & More Updates!";

//Follow the format below, e.g. the next message would be a4, a5 etc.
items1=new items(a1,a2,a3,a4,a5);

// ****  Do not alter below this line *****************************************
var ini=0; var st=0; var x=items1[0].length;
function items() {
lgth=items.arguments.length;
for (i=0; i<lgth; i++)
this[i]=items.arguments[i];}
function newsclicker(){
var temp=items1[ini].substring(0,st)+"_";
window.form1.box.value=temp;
if(st++==x) { 
//Adjust timer for delay between messages
st=0; setTimeout("newsclicker()",1000); ini++;
if(ini==lgth) ini=0; x=items1[ini].length; 
} else
//adjust timer for "clicking speed" eg letter,letter,letter....
setTimeout("newsclicker()",35);}
//-->


function newsBrowser1() {
var browser=navigator.appName
if (browser=="Microsoft Internet Explorer")
{
newsclicker();
}
else {

noIEnews1();
}}
function noIEnews1() {
alert('Not IE');
document.getElementByName('box') = "dfhgbdfrgbfdvdfg no ire"
}


	function email1()
{
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/email.center.html', '','width=430,height=500, resizable=no, scrollbars=yes');
}
function action1() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/action_park/revolver.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function action2() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/action_park/chair_lift.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function action3() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/action_park/gforce.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function action4() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/action_park/maelstrom.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function action5() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/action_park/shockwave.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function action6() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/action_park/canyon.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial1() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/Apocalypse.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial2() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/wheel.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial3() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/buffalo.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial4() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/boat.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial5() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/drunken.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial6() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/dutchman.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial7() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/Pandemonium.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial8() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/sombrero.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial9() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/haunting.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function aerial10() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/aerial_park/shoot.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function wharf1() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/fishermans_wharf/carousel.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function wharf2() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/fishermans_wharf/railway.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function wharf3() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/fishermans_wharf/stormforce.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function wharf4() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/fishermans_wharf/bounty.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function cove1() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/pirate_cove/dodgems.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function cove2() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/pirate_cove/excalibur.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function cove3() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/pirate_cove/buccaneer.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function cove4() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/pirate_cove/rodger.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function cove5() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/pirate_cove/adventure.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function cove6() {
NewWindow=window.open('http://www.freewebs.com/draytonmanornet/rides/pirate_cove/raft.html','','width=675,height=375, resizable=yes, scrollbars=yes');
}
function map1()
{
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/images/Aerial_photo.jpg');
}
function map2()
{
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/images/2006Map.pdf', '','resizable=yes, scrollbars=yes');
}
function history1() {
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/history2.html','','width=675,height=525, resizable=yes, scrollbars=yes');
}
function openmap()
{
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/Maps.html', '','width=250,height=175,resizable=yes, scrollbars=yes');
}
function opencont()
{
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/contact.us.html', '','width=425,height=385, resizable=yes, scrollbars=yes');
}
function openLinks()
{
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/links.html', '','width=400,height=200, resizable=yes, scrollbars=yes');
}
function openss()
{
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/Show.html', '','width=625,height=508, resizable=yes, scrollbars=yes');
}
function openGames()
{
  NewWindow=window.open('http://www.freewebs.com/draytonmanornet/games.html', '','width=300,height=200, resizable=yes, scrollbars=yes, status=yes');
}
function ticker1(){
TICKER_CONTENT = document.getElementById("TICKER").innerHTML;
 
TICKER_RIGHTTOLEFT = false;
TICKER_SPEED = 2;
TICKER_STYLE = "font-family:Arial; font-size:12px; color:#444444";
TICKER_PAUSED = false;

ticker_start();
}
function ticker_start() {
	var tickerSupported = false;
	TICKER_WIDTH = document.getElementById("TICKER").style.width;
	var img = "<img src=ticker_space.gif width="+TICKER_WIDTH+" height=0>";

	// Firefox
	if (navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Safari")!=-1) {
		document.getElementById("TICKER").innerHTML = "<TABLE  cellspacing='0' cellpadding='0' width='100%'><TR><TD nowrap='nowrap'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'>&nbsp;</SPAN>"+img+"</TD></TR></TABLE>";
		tickerSupported = true;
	}
	// IE
	if (navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1) {
		document.getElementById("TICKER").innerHTML = "<DIV nowrap='nowrap' style='width:100%;'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'></SPAN>"+img+"</DIV>";
		tickerSupported = true;
	}
	if(!tickerSupported) document.getElementById("TICKER").outerHTML = ""; else {
		document.getElementById("TICKER").scrollLeft = TICKER_RIGHTTOLEFT ? document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth : 0;
		document.getElementById("TICKER_BODY").innerHTML = TICKER_CONTENT;
		document.getElementById("TICKER").style.display="block";
		TICKER_tick();
	}
}

function TICKER_tick() {
	if(!TICKER_PAUSED) document.getElementById("TICKER").scrollLeft += TICKER_SPEED * (TICKER_RIGHTTOLEFT ? -1 : 1);
	if(TICKER_RIGHTTOLEFT && document.getElementById("TICKER").scrollLeft <= 0) document.getElementById("TICKER").scrollLeft = document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth;
	if(!TICKER_RIGHTTOLEFT && document.getElementById("TICKER").scrollLeft >= document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth) document.getElementById("TICKER").scrollLeft = 0;
	window.setTimeout("TICKER_tick()", 30);
}





