			var dom = document.getElementById;

			var numImages = 18;

			function OpenComments (c) {
			    window.open(c,
                    'comments',
                    'width=480,height=480,scrollbars=yes,status=yes');
			}
		
			function embedRandomImage() {
				var img = "covers/" + Math.ceil(Math.random()*numImages) + ".jpg";
				document.write ('<a href="/"><img src="' + img + '" alt="the-inbetween.com" /></a>');
			}
		
			function popControl() {
				window.open('/remote/index.html', 'control', 'width=480,height=480,scrollbars=yes,status=yes');
			}

			function setActiveStyleSheet(title) {
				s = document.getElementsByTagName('style')[0];
				if (s.title != title) {
					s.disabled = true;
				} else {
					s.disabled = false;
				}
				var i, a, main;
				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
				
					if(a.getAttribute("rel").indexOf("style") != -1) {
						if(a.getAttribute("title") == title) 
							a.disabled = false;
						else
							a.disabled = true;
					}
				}
			}