	/*
		LinkSync version -21,000,000,000.001
		ridiculously awesome url changing script
	*/
	var timed_link = {
		seconds: 3.0,
		element: false,
		current_link_index: 1,
		has_been_created: false,
		links_to_cycle_through: Array(),
		
		create: function(el) {
			if (el) {
				this.element = el;
				this.has_been_created = true;
				this.links_to_cycle_through.push({ linkURL: this.element.href });
				this.startTimer(this.seconds * 1000);
			} else {
				document.title += " [?]";
			}
		},
		addLink: function(URL) {
			this.links_to_cycle_through.push({ linkURL: URL });
		},
		startTimer: function(interval) {
			window.setInterval(this.toggle, (interval))
		},
		updateCurrentURL: function() {
			timed_link.current_link_index++;
			if (! timed_link.links_to_cycle_through[timed_link.current_link_index]) timed_link.current_link_index = 0;
		},
		getCurrentURL: function() {
			return timed_link.links_to_cycle_through[timed_link.current_link_index].linkURL
		},
		toggle: function(){
			if(timed_link.has_been_created == true) {
				timed_link.element.href = timed_link.getCurrentURL();
				timed_link.updateCurrentURL();
			} else {
				document.title += " [!]";
			}
		}
	}