<!--
//
//function reportError(msg,url,line) {
//var str = "Err: " + msg + " on line: "
//+ line + "\nURL: " + url  + "\nWeb: "
//+ navigator.appName + " " + navigator.appName
//+ " " + navigator.appVersion;
//document.errform.error.value = str;
//return true;
//}
//
//window.onerror = reportError;

document.writeln('<META http-equiv=\"refresh\" CONTENT=\"15\">');
document.writeln('<meta http-equiv=\"Expires\" content=\"Tue, 01 Jan 1980 1:00:00 GMT\">');
document.writeln('<meta http-equiv=\"Pragma\" content=\"no-cache\">');

	curDate = new Date();
	var year = curDate.getYear();
	if (year < 1000) {year+= 1900;}
	var month = curDate.getMonth() +1;
	var day = curDate.getDate();

	var hours = curDate.getHours();
	var mins = curDate.getMinutes();
	var secs = curDate.getSeconds();

	var mins_today = (hours * 60) + mins;
	var secs_today = (hours * 60 * 60) + (mins * 60) + secs;

	var every_14_secs = parseInt(secs_today / 15);
	
	var step = (every_14_secs % 20);

	var i0 = "/images/webcam/alien/alien_empty.jpg";
	var i2 = "/images/webcam/alien/alien_2.jpg";
	var i4 = "/images/webcam/alien/alien_4.jpg";
	var i6 = "/images/webcam/alien/alien_6.jpg";
	var i7 = "/images/webcam/alien/alien_7.jpg";
	var i8 = "/images/webcam/alien/alien_8.jpg";
	var i81 = "/images/webcam/alien/alien_81.jpg";
	var i10 = "/images/webcam/alien/alien_10.jpg";
	var i11 = "/images/webcam/alien/alien_11.jpg";
	var i12 = "/images/webcam/alien/alien_12.jpg";
	var i12_1 = "/images/webcam/alien/alien_12_1.jpg";
	var i14 = "/images/webcam/alien/alien_14.jpg";

	
	
	var current = "";
	var previous_1 = "";
	var previous_2 = "";
	var previous_3 = "";

	var locale = "";
	if (step == 0) {
		locale = "http://www.hype7.com/webcam/alien0.html";
		current = i2;
		previous_1 = i0;
		previous_2 = i0;
		previous_3 = i0;
	}

	if (step == 1) {
		locale = "http://www.hype7.com/webcam/alien1.html";
		current = i0;
		previous_1 = i2;
		previous_2 = i0;
		previous_3 = i0;
	}

	if (step == 2) {
		locale = "http://www.hype7.com/webcam/alien2.html";
		current = i4;
		previous_1 = i0;
		previous_2 = i2;
		previous_3 = i0;
	}
	
	if (step == 3) {
		locale = "http://www.hype7.com/webcam/alien3.html";
		current = i0;
		previous_1 = i4;
		previous_2 = i0;
		previous_3 = i2;	
	}
	
	if (step == 4) {
		locale = "http://www.hype7.com/webcam/alien4.html";
		current = i6;
		previous_1 = i0;
		previous_2 = i4;
		previous_3 = i0;
	}
	
	if (step == 5) {
		locale = "http://www.hype7.com/webcam/alien5.html";
		current = i7;
		previous_1 = i6;
		previous_2 = i0;
		previous_3 = i4;
	}
	
	if (step == 6) {
		locale = "http://www.hype7.com/webcam/alien6.html";
		current = i8;
		previous_1 = i7;
		previous_2 = i6;
		previous_3 = i0;
	}
	
	if (step == 7) {
		locale = "http://www.hype7.com/webcam/alien7.html";
		current = i81;
		previous_1 = i8;
		previous_2 = i7;
		previous_3 = i6;
	}
	
	if (step == 8) {
		locale = "http://www.hype7.com/webcam/alien8.html";
		current = i0;
		previous_1 = i81;
		previous_2 = i8;
		previous_3 = i7;
	}
	
	if (step == 9) {
		locale = "http://www.hype7.com/webcam/alien9.html";
		current = i10;
		previous_1 = i0;
		previous_2 = i81;
		previous_3 = i8;
	}
	
	if (step == 10) {
		locale = "http://www.hype7.com/webcam/alien10.html";
		current = i11;
		previous_1 = i10;
		previous_2 = i0;
		previous_3 = i81;
	}
	
	if (step == 11) {
		locale = "http://www.hype7.com/webcam/alien11.html";
		current = i12;
		previous_1 = i11;
		previous_2 = i10;
		previous_3 = i0;
	}
	
	
//	//**** GORE 'RATS' CHANGE *****
//	if (step == 12) {
//		locale = "http://www.hype7.com/webcam/alien12_1.html";
//		current = i12_1;
//		previous_1 = i12_1;
//		previous_2 = i12_1;
//		previous_3 = i12_1;
//	}
	
	if (step == 12) {
		locale = "http://www.hype7.com/webcam/alien12.html";
		current = i0;
		previous_1 = i12;
		previous_2 = i11;
		previous_3 = i10;
	}
	
	if (step == 13) {
		locale = "http://www.hype7.com/webcam/alien13.html";
		current = i14;
		previous_1 = i0;
		previous_2 = i12;
		previous_3 = i11;
	}
	
	if (step == 14) {
		locale = "http://www.hype7.com/webcam/alien14.html";
		current = i0;
		previous_1 = i14;
		previous_2 = i0;
		previous_3 = i12;
	}
	
	if (step == 15) {
		locale = "http://www.hype7.com/webcam/alien15.html";
		current = i0;
		previous_1 = i0;
		previous_2 = i14;
		previous_3 = i0;
	}
	
	if (step == 16) {
		locale = "http://www.hype7.com/webcam/alien16.html";
		current = i0;
		previous_1 = i0;
		previous_2 = i0;
		previous_3 = i14;
	}
	
	if (step == 17 || step == 18 || step == 19) {
		locale = "http://www.hype7.com/webcam/alien17.html";
		current = i0;
		previous_1 = i0;
		previous_2 = i0;
		previous_3 = i0;
	}
	





	if (locale == window.location) {}
	else {
		if (locale == "") {}
		else {window.location = locale;}
	}


	function dateAdjust(s_offset) {
		curDate = new Date();
		y = curDate.getYear();
		if (y < 1000) {y+= 1900;}
		mo = curDate.getMonth() +1;
		d = curDate.getDate();

		h = curDate.getHours();
		mi = curDate.getMinutes();
		s = curDate.getSeconds();

		// loop until borrow enough minutes
		while (s - s_offset < 0) {
			// Not going to worry about
			// day/month/year rollovers

			// Need more minutes
			if (mi - 1 < 0) {
				h = h -1;
				mi = mi + 60;
				continue;
			}

			// Now we have enough minutes to borrow
			mi = mi - 1;
			s = s + 60;
		}
		s = s - s_offset;

		if (mo < 10) { mo = "0" + mo;}
		if (d < 10) { d = "0" + d;}
		if (mi < 10) { mi = "0" + mi;}
		if (s < 10) { s = "0" + s;}
		adjusted = mo + "." + d + "." + y + "&nbsp;&nbsp;&nbsp;&nbsp;" + h + ":" + mi + ":" + s;
		return adjusted;
	}






	function stopRefresh () {
		oldlocale = window.location;
		from = 0;
		to = old.length-6
		base = old.substring(from, to)
		newlocale = base + "_OFF.html";
	
		window.location = newlocale;
	}


//-->
