<!--
// CHECK FOR VERSION 4
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
// PRELOAD IMAGES
if (ver4)
{
path1 = "http://www.pcicomdial.com/images/main/";
aboon = new Image; aboon.src = path1 + "about2.gif";
abooff = new Image; abooff.src = path1 + "about.gif";
supon = new Image; supon.src = path1 + "support2.gif";
supoff = new Image; supoff.src = path1 + "support.gif";
proon = new Image; proon.src = path1 + "products2.gif";
prooff = new Image; prooff.src = path1 + "products.gif";
speon = new Image; speon.src = path1 + "specials2.gif";
speoff = new Image; speoff.src = path1 + "specials.gif";
teson = new Image; teson.src = path1 + "testimonials2.gif";
tesoff = new Image; tesoff.src = path1 + "testimonials.gif";
conon = new Image; conon.src = path1 + "contact2.gif";
conoff = new Image; conoff.src = path1 + "contact.gif";
comon = new Image; comon.src = path1 + "comdial2.gif";
comoff = new Image; comoff.src = path1 + "comdial.gif";
}
// ROLLOVER FUNCTIONS
function rollOn(item)
{
if (ver4)
{
document[item].src = eval(item + "on.src");
}
}
function rollOff(item)
{
if (ver4)
{
document[item].src = eval(item + "off.src");
}
}
function callDate() {
function checkYear(year)
{
if (navigator.appName == 'Netscape')
{
year += 1900;
document.write(year);
}
else
{
document.write(year);
}
}
now = new Date();
today = now.getDate();
m = now.getMonth();
d = now.getDay();
year = now.getYear();
var Hours;
var Mins;
var Time;
Hours = now.getHours();
if (Hours >= 12) {
Time = " p.m.";
}
else {
Time = " a.m.";
}
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = now.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}
document.write('<B>' + Hours + ":" + Mins + Time + ' </B>');
my = new Array(12);
my[0] = "January";
my[1] = "February";
my[2] = "March";
my[3] = "April";
my[4] = "May";
my[5] = "June";
my[6] = "July";
my[7] = "August";
my[8] = "September";
my[9] = "October";
my[10] = "November";
my[11] = "December";
dw = new Array(7);
dw[0] = "Sunday";
dw[1] = "Monday";
dw[2] = "Tuesday";
dw[3] = "Wednesday";
dw[4] = "Thursday";
dw[5] = "Friday";
dw[6] = "Saturday";
month = my[m];
weekday = dw[d];
document.write("<b>");
document.write(weekday + ", " + month + " " + today + ", ");
checkYear(year);
document.write("</b>");
}
function new_window(url) {
link = window.open(url,"sixmonth","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=150,width=425,left=0,top=0");
}
function placePic()
{
i = 1; // NUMBER OF PICS IN THE ARRAY -1
n = 0+Math.round(Math.random()*i); // CALCULATE RANDOM NUMBER
n++
n = 'images/main/photos/' + n + '.jpg';
document.write("<img height='289' width='291' src='" + n + "' alt='Precision Communication Inc.'>");
}
//-->
