if (screen.width>=1000){document.write('<link rel="stylesheet" type="text/css" href="1024.css" />')}
else if (screen.width>=800){document.write('<link rel="stylesheet" type="text/css" href="0800.css" />')}
else {document.write('<link rel="stylesheet" type="text/css" href="0640.css" />')};

nDO=new Date()
var greet=nDO.getHours(); 
if (greet < 5){wh()} 
else if (greet < 7){eb()} 
else if (greet < 12){gm()} 
else if (greet < 18){ga()} 
else if (greet < 21){ge()} 
else if (greet < 23){gn()} 
else {lh()};

function wh(){status="Good Morning! You\'re into the wee hours!"};
function eb(){status="Good Morning Early Bird!"};
function gm(){status="Good Morning!"};
function ga(){status="Good Afternoon!"};
function ge(){status="Good Evening!"};
function gn(){status="Good Night!"};
function lh(){status="Good Night! You're keeping late hours!"};

nDO=new Date()
var yr=nDO.getFullYear()
if (yr < 1000)
yr+=1900
var dy=nDO.getDay()
var mo=nDO.getMonth()
var dt=nDO.getDate()

var dyArray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var moArray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

// document.write(""+dyArray[dy]+",  "+moArray[mo]+" "+dt+", "+yr+"")
var theDate='<span id="TMT" onmouseover="purp(this)" onmouseout="orng(this)" onclick="seeSaw(spiel, TMT)" '
theDate+='title=" View the Page Preface and the Site Spiel ... ">'
theDate+=""+dyArray[dy]+",  "+moArray[mo]+" "+dt+", "+yr+""
theDate+='</span>'
//  src='./dayDate.js'

// var eMailAp='mailto:%65%6d%65%40%71%75%65%73%74%75%64%69%6f%2e%63%6f%6d?Subject=Hi'

var eMe='mai'
eMe+='lto:'
eMe+='%65%6d%65'
eMe+='%40'
eMe+='%71%75%65%73%74'
eMe+='%75%64%69%6f%2e%63%6f%6d'

function flipFlop(idName, newSrc) {
    var theImage = browse4Pix(document, idName, 0);
    if (theImage) {
//        idName.style.zindex=-1;
        theImage.src = newSrc;
    }
}

function browse4Pix(doc, name, j) {
    var theImage = false;
    
    if (doc.images) {
        theImage = doc.images[name];
    }
    
    if (theImage) {
        return theImage;
    }
    
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = browse4Pix(doc.layers[j].document, name, 0);
            
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

function purp(nameId){nameId.style.color='#703180'}
function orng(nameId){nameId.style.color='#d05f0f'}
function ulOn(nameId){nameId.style.textDecoration='underline'}
function ulOff(nameId){nameId.style.textDecoration='none'}
function openIt(nameId){nameId.style.display=''}
function shutIt(nameId){nameId.style.display='none'}

function boxRef(button){
        var expdate = new Date();
        expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000));
        SetCookie('name', button, expdate);
}

function doSomething(e){if (!e) var e = window.event; e.cancelBubble = true; if (e.stopPropagation) e.stopPropagation();}

var flag=1
function seeSaw(divId, spanId){
deltaColor=spanId.style.color
if (!flag==0){
divId.style.display="block";
spanId.style.color="#703180";
spanId.onmouseover="orng(spanId)";
spanId.onmouseout="purp(spanId)";
spanId.title=" Hide the Page Preface and the Site Spiel ... ";
flag=0}
else{
divId.style.display="none";
spanId.style.color="#d05f0f";
spanId.onmouseover="purp(spanId)";
spanId.onmouseout="orng(spanId)";
spanId.title=" View the Page Preface and the Site Spiel ... ";
flag=1}
}

function winLoc(url){window.location=url}

function winOpen(url) {
 var availheight=screen.availHeight;
 var availwidth=screen.availWidth;
  winStats='toolbar=yes,location=yes,directories=yes,menubar=yes,statusbar=no,resizable=yes,';
  winStats+='scrollbars=yes,width="+availwidth+",height="+availheight+"';
  if (navigator.appName.indexOf("Microsoft")>=0) {
     winStats+=',left=0,top=0';
  }else{
     winStats+=',screenX=0,screenY=0';
  }
//  anew=window.open(url,"",winStats)
  window.open(url,"",winStats)     
}

/*
<span onclick="javascript:winOpen('http://www.link.com/');"><!-- link name --></span>
*/

/*
function anew(){
anewWin=window.open('','anewWin',status='1',resizable='1',scrollbars='1',width='full.width', height='full.height');
}
*/

function drg(wm,ng,tg,wg,hg,mg,ag){
 availW = (is.ns)? top.window.innerWidth : document.body.offsetWidth;
 adjW = (availW * wm);
  if (adjW > wg){
   adjW = wg;
   }
 adjH = (adjW * mg);
  if (adjH > hg){
   adjH = hg;
   }
 document.write('<img src="img/'+ng+'.'+tg+'" width="'+adjW+'" height="'+adjH+'" alt="'+ag+'" border="0" />');
}

var udh='url(#default#homepage)';
window.defaultStatus='Surchin the Net';
