theDate= new Date();
months = new Array();
days = new Array();
months[1] ="images/date/jan.gif";
months[2] ="images/date/feb.gif";
months[3] ="images/date/mar.gif";
months[4] ="images/date/apr.gif";
months[5] ="images/date/may.gif";
months[6] ="images/date/jun.gif";
months[7] ="images/date/jul.gif";
months[8] ="images/date/aug.gif";
months[9] ="images/date/sep.gif";
months[10] ="images/date/oct.gif";
months[11] ="images/date/nov.gif";
months[12] ="images/date/dec.gif";
days[1] ="images/date/1st.gif";
days[2] ="images/date/2nd.gif";
days[3] ="images/date/3rd.gif";
days[4] ="images/date/4th.gif";
days[5] ="images/date/5th.gif";
days[6] ="images/date/6th.gif";
days[7] ="images/date/7th.gif";
days[8] ="images/date/8th.gif";
days[9] ="images/date/9th.gif";
days[10] ="images/date/10th.gif";
days[11] ="images/date/11th.gif";
days[12] ="images/date/12th.gif";
days[13] ="images/date/13th.gif";
days[14] ="images/date/14th.gif";
days[15] ="images/date/15th.gif";
days[16] ="images/date/16th.gif";
days[17] ="images/date/17th.gif";
days[18] ="images/date/18th.gif";
days[19] ="images/date/18th.gif";
days[20] ="images/date/20th.gif";
days[21] ="images/date/21st.gif";
days[22] ="images/date/22nd.gif";
days[23] ="images/date/23rd.gif";
days[24] ="images/date/24th.gif";
days[25] ="images/date/25th.gif";
days[26] ="images/date/26th.gif";
days[27] ="images/date/27th.gif";
days[28] ="images/date/28th.gif";
days[29] ="images/date/29th.gif";
days[30] ="images/date/30th.gif";
days[31] ="images/date/31st.gif";

function printDate() {
document.write('<img src="' + months[theDate.getMonth()+1] + '">'); // month
document.write('<br>');
document.write('<img src="' + days[theDate.getDate()] + '">'); // day
}

function ClassChange(element1,element2) {
    element1.className = 'DisplayNone';
    element2.className = 'DisplayBlock';
}

function showLayers() {
 showargs = showLayers.arguments;
 for (i=0; i<(showargs.length); i++) {
  document.getElementById(showargs[i]).style.display = "block";
 }
};
function smashLayers() {
 hideargs = smashLayers.arguments;
 for (i=0; i<(hideargs.length); i++) {
  document.getElementById(hideargs[i]).style.display = "none";
 }
};

function setColor() {
args = setColor.arguments;
 for (i=0; i<(args.length); i++) {
  document.getElementById(args[i]).style.color = "#FF6600";
 }
};

function showSide(){
showLayers('side1','side2','side3','side4','side5','side6','side7','side8','side9');
}

function smashSide(){
smashLayers('side1','side2','side3','side4','side5','side6','side7','side8','side9');
}

function showServices(){
showLayers('services');
showSide();
smashLayers('home','links','contact');
smashLayers('text1','text2','text3','text4','text5','text6','text7','text8','text9');
setColor('sidef1','sidef2','sidef3','sidef4','sidef5','sidef6','sidef7','sidef8','sidef9');
}

function showHome(){
showLayers('home');
smashLayers('services','links','contact');
smashLayers('text1','text2','text3','text4','text5','text6','text7','text8','text9');
smashSide();
}

function showLinks(){
showLayers('links');
smashLayers('services','home','contact');
smashLayers('text1','text2','text3','text4','text5','text6','text7','text8','text9');
smashSide();
}

function showContact(){
showLayers('contact');
smashLayers('services','links','home');
smashLayers('text1','text2','text3','text4','text5','text6','text7','text8','text9');
smashSide();
}

function showText(id) {
 showargs = showText.arguments;
 smashLayers('links','services','home','contact');
 smashLayers('text1','text2','text3','text4','text5','text6','text7','text8','text9');
 document.getElementById("text"+id).style.display = "block";
 setColor('sidef1','sidef2','sidef3','sidef4','sidef5','sidef6','sidef7','sidef8','sidef9');
 document.getElementById("sidef"+id).style.color = "blue";
};

var win=null;

function NewWindow(mypage,myname,w,h,scroll,pos,menu)
{
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar='+menu+',toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
}




