
// popup message and redirect to www.ibdev.net
function window_onload(){
	setTimeout("switchPage()", 500);
}
function switchPage(){
	//aWindow = window.open("","thewindow","menubar=yes,toolbar=yes,location=yes,directories=yes,status=yes,width=850,height=750,scrollbars=yes");
	window.location.href = "http://www.ibdev.com/ibdev";
}

//the following function loads an image map as a Table of Contents
function writeTOC() {
document.write("<IMG SRC=images/toc2.gif WIDTH=167 HEIGHT=500 BORDER=0 USEMAP=#toc ALT=Table&nbsp;of&nbsp;Contents>");
document.write("<MAP NAME=toc>");
document.write("<AREA SHAPE=rect COORDS=23,11,78,36 HREF=index.html ALT=Home>");
document.write("<AREA SHAPE=rect COORDS=23,45,85,67 HREF=design.html ALT=Design>");
document.write("<AREA SHAPE=rect COORDS=37,68,98,87 HREF=design.html#process ALT=Process>");
document.write("<AREA SHAPE=rect COORDS=37,88,105,107 HREF=design.html#redesign ALT=Redesign>");
document.write("<AREA SHAPE=rect COORDS=37,108,99,127 HREF=portfolio.html ALT=Portfolio>");
document.write("<AREA SHAPE=rect COORDS=19,132,124,154 HREF=hosting.html ALT=Hosting>");
document.write("<AREA SHAPE=rect COORDS=37,155,124,174 HREF=hosting.html#ecommerce ALT=E-Commerce>");
document.write("<AREA SHAPE=rect COORDS=18,182,128,203 HREF=webservices.html ALT=Web&nbsp;Services>");
document.write("<AREA SHAPE=rect COORDS=39,208,142,227 HREF=webservices.html#domain ALT=Domain&nbsp;Name&nbsp;Registration>");
document.write("<AREA SHAPE=rect COORDS=40,228,112,246 HREF=webservices.html#promotion ALT=Promotion>");
document.write("<AREA SHAPE=rect COORDS=40,246,97,267 HREF=webservices.html#training ALT=Training>");
document.write("<AREA SHAPE=rect COORDS=40,269,116,288 HREF=webservices.html#consulting ALT=Consulting>");
document.write("<AREA SHAPE=rect COORDS=20,294,55,316 HREF=faq.html ALT=Frequently&nbsp;Asked&nbsp;Questions&nbsp;(with&nbsp;Answers)>");
document.write("<AREA SHAPE=rect COORDS=38,347,86,366 HREF=books.html ALT=Books>");
document.write("<AREA SHAPE=rect COORDS=38,367,94,386 HREF=tutorial.html ALT=Tutorial>");
document.write("<AREA SHAPE=rect COORDS=19,388,66,411 HREF=links.html ALT=Links>");
document.write("<AREA SHAPE=rect COORDS=41,413,125,433 HREF=morelinks.html ALT=More&nbsp;Links>");
document.write("<AREA SHAPE=rect COORDS=18,438,109,460 HREF=contact.html ALT=Contact&nbsp;Us>");
document.write("</MAP>");

//the following code loads an image of Netscape 6.0 used as a link to upload Netscape version 6.0
document.write("<BR><A HREF=http://home.netscape.com/download/index.html?cp=djuc1 TARGET=_blank><IMG SRC=images/net6rtm_141x60.gif WIDTH=141 HEIGHT=60 BORDER=0 ALT=Netscape&nbsp;6.0></A><BR>");
document.write("<BR><A CLASS=top HREF=http://home.netscape.com/browsers/6/datasheet/index.html?cp=cpi TARGET=_blank>Netscape 6.0 Data Sheet</A><BR>");
document.write("<BR><A CLASS=top HREF=ftp.html>FTP Site</A><BR><BR>");
}
/******************************************************************************
* date.js                                                                    *
*                                                                             *
* Copyright 1999 by Nick Henle.                                               *
*                                                                             *
* Last update: October 9, 2000.                                               *
*                                                                             *
* Calculates today's date.                                                    *
*                                                                             *
******************************************************************************/

function StartDate() {
TDay = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
'Saturday');
TMonth = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July',
'August', 'September', 'October', 'November', 'December');
TDate = new Date();
CurYear = TDate.getYear();
if(CurYear < 1900){
         CurYear += 1900;
}
CurMonth = TDate.getMonth();
CurDayOw = TDate.getDay();
CurDay= TDate.getDate();
TheDate = TDay[CurDayOw] + ', ';
TheDate += TMonth[CurMonth] + ' ';
TheDate += CurDay + ', ';
TheDate += CurYear;
return  TheDate;
}
function WriteDate() {
	//document.write ("Today is " +StartDate() + ". ");
	//document.write ("<FONT FACE=Arial SIZE=2 COLOR=White>" +StartDate() + "</FONT>");
	document.write ("<FONT CLASS=date>" +StartDate() + "</FONT>");
}
function WriteY2K() {
	var now = new Date();
	var then = new Date("January 1, 2000");
	var gap = then.getTime() - now.getTime();
	gap = Math.floor(gap / (1000 * 60 * 60 * 24));
	if (gap < 0) {
	gap = gap*(-1)
	document.write ("It is day " + gap + " of Y2K.");
	}
	else {
	document.write ("Only " + gap + " days remaining until the Year 2000.");
	}
}
// check browser type and version
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer >= 3) ||
	(bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3";
else br = "n2";

if (br == "n3") {
// preload images on Portfolio page
img1ad = new Image();
img1ad.src = "images/fpcpd.gif";
img2ad = new Image();
img2ad.src = "images/fpeaton.gif";
img3ad = new Image();
img3ad.src = "images/fpkovacs.gif";
img4ad = new Image();
img4ad.src = "images/fpscram.gif";
img5ad = new Image();
img5ad.src = "images/fpsys.gif";
img6ad = new Image();
img6ad.src = "images/fpacv.gif";
img7ad = new Image();
img7ad.src = "images/fptm.gif";
img8ad = new Image();
img8ad.src = "images/fpims.gif";
}

function imgAct(imgName) {
if (br == "n3") { 
	document["holder"].src = eval(imgName + "ad.src");
	}
}
function imgInact(imgName) {
if (br == "n3") {
	document["holder"].src = "images/portfolio.gif";
//	document["holder"].src = eval(imgName + "ad.src");
	}
}
function popUp(url) {
	aWindow = window.open(url,"thewindow","menubar=no,toolbar=no,width=700,height=100,scrollbars=0");
	}
function popUpOld() {
	Window = window.open("","thewindow","width=450,height=370,scrollbars=0");
	Window.location.href= "popup.html";
	}
//writes footer containing copyright and author at bottom of each page and updates year
function WriteFooter() {
var now = new Date();
var thisYear = now.getYear();
// var thisYear = 01; // for debug only
	if(thisYear < 1900){
	thisYear += 1900;
	}
// First year of copyright notice
var startYear = 1999;
	if (startYear == thisYear){
	startYear = "";
	}
	else {
	startYear = startYear + "-";
	}
	document.write ("<DIV CLASS=small>Copyright &copy; " + startYear + thisYear + " Internet Business Developers. All Rights Reserved.</DIV>");
	//document.write ("<FONT CLASS=small>Site Design by</FONT> <A CLASS=small HREF=http://www.ibdev.com TARGET=_blank>Internet Business Developers</A>");
}


