function sniffMe() {

if (document.referrer == "http://www.day4night.tv") {
document.location.href= "/tv/index.html"
	}

if (document.referrer == "http://www.dayfornight.fm") {
document.location.href= "/netradio/index.shtml"
	}

if (document.referrer == "http://www.ericscott.name") {
document.location.href= "/ericscott/index.html"
	}

if (document.referrer == "http://www.salvadordalek.com") {
document.location.href= "/salvadordalek/index.html"
	}

if (document.referrer == "http://www.mrno-logo.com") {
document.location.href= "/mrno-logo/index.html"
	}

if (document.referrer == "http://www.dayfornightlabel.com") {
document.location.href= "/music_catalogue.html"
	}

if (document.referrer == "http://www.dayfornightmultimedia.com") {
document.location.href= "/multimedia.html"
	}

// Get browser and platform info to use throughout the script.
            var browserName = navigator.appName.toLowerCase()
            var browserMaker = browserName.substring(0,1)
            var browserVersion = navigator.appVersion.substring(0,1)
            if (navigator.appVersion.indexOf("Mac")>1) {
               var browserPlatform = "Mac";
                           } else if (navigator.appVersion.indexOf("Win")>1) {
                           var browserPlatform = "Win";
                     } else {
                     var browserPlatform = "other"
         }

// Check for non mac or windows browsers!
            if (browserPlatform == "other") {
    }


// Browser is Mac or Windows so check version!
// If older than 4.0 then warn. Also warn if Mac MSIE 4.5!

            if ((browserVersion < 4) && (browserPlatform == "Win")) 
	{
	self.location.href="tech/ns4_detected.html"
	}
            if ((navigator.appVersion.indexOf("4.5")>1) && (browserPlatform=="Mac") && (browserMaker=="m")) 
	{
	self.location.href="tech/ns4_detected.html"
	}



// Browsers checkout OK, look for plugins!

function MM_checkPlugin(plgIn, theURL, altURL, autoGo) {
 //v3.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1) ok=(plugins && plugins[plgIn]);
  else if (appVersion.indexOf('3.1')==-1) 

//not Netscape or Win3.1
{ 
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}


// Plugins are OK, rename window and set to correct size!
    self.name="Dayfornight"

if (screen.width == 800) {
	window.self.moveTo(0,0)
	window.self.resizeTo(780,580)
	self.location.href="home/index.shtml"
    } 
else if (screen.width == 832) {
	window.self.moveTo(0,0)
	window.self.resizeTo(820,580)
	self.location.href="home/index.shtml"
    } 
else if (screen.width == 1024) {
	window.self.moveTo(0,0)
	window.self.resizeTo(1000,720)
	self.location.href="home/index.shtml"
    } 
else if (screen.width == 1152) {
	window.self.moveTo(0,0)
	window.self.resizeTo(1140,720)
	self.location.href="home/index.shtml"
    } 
else if (screen.width == 1440) {
	window.self.moveTo(0,0)
	window.self.resizeTo(1410,720)
	self.location.href="home/index.shtml"
    } 
else if (screen.width == 1600) {
	window.self.moveTo(0,0)
	window.self.resizeTo(1570,720)
	self.location.href="home/index.shtml"
    } 
else if (screen.width == 1680) {
	window.self.moveTo(0,0)
	window.self.resizeTo(1650,720)
	self.location.href="home/index.shtml"
    } 
else if (screen.width == 1920) {
	window.self.moveTo(0,0)
	window.self.resizeTo(1890,720)
	self.location.href="home/index.shtml"
    } 
else if (screen.width == 2560) {
	window.self.moveTo(0,0)
	window.self.resizeTo(2530,720)
	self.location.href="home/index.shtml"
    } 
else {
	window.self.moveTo(0,0)
	window.self.resizeTo(1500,720)
	self.location.href="home/index.shtml"
    }
}

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-10742720-1");
pageTracker._trackPageview();
} catch(err) {}