var imgLoc = "images/"
var imgExt = ".jpg";
var fileExt = ".htm";

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}
    
function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

//IFrame Height Calculator

function calcHeight1()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe1').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe1').height=
      the_height;
}

function calcHeight2()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe2').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe2').height=
      the_height;
}

function calcHeight3()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe3').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe3').height=
      the_height;
}

function calcHeight4()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe4').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe4').height=
      the_height;
}

function newWin(url) {
  // url of this function should have the format: "target,URL".
  if (url == "")
    return;
  window.open(url.substring(url.indexOf(",") + 1, url.length), 
	url.substring(0, url.indexOf(",")));
}

function setupDescriptions() {
  var x = navigator.appVersion;
  y = x.substring(0,4);
  if (y>=4) setVariables();
}

var x,y,myValue,n;

function setVariables(){
  if (navigator.appName == "Netscape") {
    h=".left=";
    v=".top=";
    dS="document.";
    sD="";
    }
  else 
    {
    h=".pixelLeft=";
    v=".pixelTop=";
    dS="";
    sD=".style";
    }
}

var isNav = (navigator.appName.indexOf("Netscape") !=-1);

function popLayer(myValue){
  desc = '<TABLE CELLPADDING=5 WIDTH="100%" ';

  if (myValue==1) desc += 'BORDER=0 BGCOLOR="#FFFFFF"><TR><TD class="news4" WIDTH="100%" vAlign="top"><img src="images/development.jpg" WIDTH=179 HEIGHT=35><p class="news">DigiArc provides its clients with a secure area to view their site as it is being created. Clients have the ability to login and assess the site at their liesure. This enables our clients to have immediate insight in the development of their web site.</p><p class="news">Although tastes vary, you will see that all our web site designs present a crisp clean look that is both functional, as well as aesthetically pleasing to the eye.</p><p class="news">To view various examples of our work, please click on the web development tab to the left.</p></TD></TR>';
  if (myValue==2) desc += 'BORDER=0 BGCOLOR="#FFFFFF"><TR><TD class="news4" WIDTH="100%" vAlign="top"><img src="images/shopping.jpg" WIDTH=179 HEIGHT=35><p class="news">Shop here for exclusive premium Rivalry Wear. Digi-Arc&#39;s Total Rival Wear offers some of the most awesome designs for your High School, College, or even Pro sports.</p><p class="news">Let Total Rival Wear be your complete online source for all your sports pride wear and gear.</p><p class="news">At Total Rival Wear, you bleed your allegiance.</p></TD></TR>';
  if (myValue==3) desc += 'BORDER=0 BGCOLOR="#FFFFFF"><TR><TD class="news4" WIDTH="100%" vAlign="top"><img src="images/artwork.jpg" WIDTH=179 HEIGHT=35><p class="news">Our designers are Artists first. Having many years in the design field, there is no limit to the look we can create for your site.</p><p class="news">In addition to web site design, our Artists illustrate and freelance for other industries. You may need illustrations in your book, a book jacket design, or logo creation.</p><p class="news">You may even need that traditional studio drawing or painting of a loved one to hang in your home. In any case, we have included some samples in the table of contents to the left.</p></TD></TR>';
  if (myValue==4) desc += 'BORDER=0 BGCOLOR="#FFFFFF"><TR><TD class="news4" WIDTH="100%" vAlign="top"><img src="images/life.jpg" WIDTH=179 HEIGHT=35><p class="news">Enjoy Life!</p><p class="news">Wear that dress that emphasizes your physique. Take part in a workout that guarantees results. Eat the foods that make you feel good.</p><p class="news">Digi-Arc&#39;s Digital Diet offers a body-shaping program that covers nutrition, supplements, exercise technique, exercise programs, and step-by-step instructions.</p></TD></TR>';
  if (myValue==999) desc += 'BORDER=0 BGCOLOR="#FFFFFF"><TR><TD class="news" WIDTH="100%" vAlign="top"><img src="images/rgb_box_sketchy.jpg" WIDTH=179 HEIGHT=35><p class="news">Digi-Arc, Inc. specializes in customized web development accompanied with extremely easy maintenance and editing capabilities. Users can update content without be burdened with learning HTML.</p><p class="news">We deliver the complete package with no hidden costs. You will not receive the common cookie-cutter web development and blas&#233; design. Our focus is on cutting-edge web development and excellent customer service, which has become our signature. We are not happy unless you are happy.</p><p class="news">We welcome your questions and comments, and look forward to meeting your needs.</p></TD></TR>';

  desc += "</TABLE>";

  if(isNav) {
    document.object1.document.write(desc);
    document.object1.document.close();
    }
  else 
    {
    object1.innerHTML=desc;
    }
}

function viewPhotos(url, name) {
	var win = window.open(url,name,'width=350,height=575,resizable=no,scrollbars=no');
	win.focus();
}

function viewEvents(url, name) {
	var win = window.open(url,name,'width=640,height=550,resizable=no,scrollbars=no');
	win.focus();
     }
     
//Glow Links

function getonme() {
el = event.srcElement ;
if (el.getAttribute("litUp1") != null) {
el.className = "onme1" ;
}
}

function getoffme() {
el = event.srcElement ;
if (el.getAttribute("litUp1") != null) {
el.className = "offme";
}
}

document.onmouseover = getonme ;
document.onmouseout = getoffme ;

// Fade Out Images

var maximages = 7; // how many fade images do you have?
var fadespeed = 125; // fade frame time in milliseconds;  125 = 125 ms

///////////// Fade Button 1 //////////////
var fadeintimer;
var fadeouttimer;
var fadeincount = 0;
var fadeoutcount = maximages-1;
var fade1array = new Array(maximages);  // enter all the fade images here
// the first item should be 0, then numbered through 1 less than your maximages

fade1array[0] = "images/Digi-Arc_18_00.jpg";
fade1array[1] = "images/Digi-Arc_18_01.jpg";
fade1array[2] = "images/Digi-Arc_18_02.jpg";
fade1array[3] = "images/Digi-Arc_18_03.jpg";
fade1array[4] = "images/Digi-Arc_18_04.jpg";
fade1array[5] = "images/Digi-Arc_18_05.jpg";
fade1array[6] = "images/Digi-Arc_18_06.jpg";

for (var i = 0; i < maximages; i++) {
eval('pic' + i + ' = new Image();');
eval('pic' + i + '.src = fade1array[i];'); // preloads fade images
}
function fade_in1() {
clearTimeout(fadeouttimer);
document.images['fade-pic1'].src = fade1array[fadeincount];
if (fadeincount != maximages-1) {
fadeincount++;
fadeintimer = setTimeout('fade_in1()', fadespeed);
}
else {
clearTimeout(fadeintimer);
fadeincount = 0;
   }
}
function fade_out1() {
clearTimeout(fadeintimer);
document.images['fade-pic1'].src = fade1array[fadeoutcount];
if (fadeoutcount != 0) {
fadeoutcount--;
fadeouttimer = setTimeout('fade_out1()', fadespeed);
}
else {
clearTimeout(fadeouttimer);
fadeoutcount = maximages-1;
   }
}

///////////// Fade Button 2 //////////////
var fadeintimer2;
var fadeouttimer2;
var fadeincount2 = 0;
var fadeoutcount2 = maximages-1;
var fade2array = new Array(maximages);  // enter all the fade images here
// the first item should be 0, then numbered through 1 less than your maximages

fade2array[0] = "images/Digi-Arc_20_00.jpg";
fade2array[1] = "images/Digi-Arc_20_01.jpg";
fade2array[2] = "images/Digi-Arc_20_02.jpg";
fade2array[3] = "images/Digi-Arc_20_03.jpg";
fade2array[4] = "images/Digi-Arc_20_04.jpg";
fade2array[5] = "images/Digi-Arc_20_05.jpg";
fade2array[6] = "images/Digi-Arc_20_06.jpg";

for (var j = 0; j < maximages; j++) {
eval('pic' + j + ' = new Image();');
eval('pic' + j + '.src = fade2array[j];'); // preloads fade images
}
function fade_in2() {
clearTimeout(fadeouttimer2);
document.images['fade-pic2'].src = fade2array[fadeincount2];
if (fadeincount2 != maximages-1) {
fadeincount2++;
fadeintimer2 = setTimeout('fade_in2()', fadespeed);
}
else {
clearTimeout(fadeintimer2);
fadeincount2 = 0;
   }
}
function fade_out2() {
clearTimeout(fadeintimer2);
document.images['fade-pic2'].src = fade2array[fadeoutcount2];
if (fadeoutcount2 != 0) {
fadeoutcount2--;
fadeouttimer2 = setTimeout('fade_out2()', fadespeed);
}
else {
clearTimeout(fadeouttimer2);
fadeoutcount2 = maximages-1;
   }
}

///////////// Fade Button 3 //////////////
var fadeintimer3;
var fadeouttimer3;
var fadeincount3 = 0;
var fadeoutcount3 = maximages-1;
var fade3array = new Array(maximages);  // enter all the fade images here
// the first item should be 0, then numbered through 1 less than your maximages

fade3array[0] = "images/Digi-Arc_24_00.jpg";
fade3array[1] = "images/Digi-Arc_24_01.jpg";
fade3array[2] = "images/Digi-Arc_24_02.jpg";
fade3array[3] = "images/Digi-Arc_24_03.jpg";
fade3array[4] = "images/Digi-Arc_24_04.jpg";
fade3array[5] = "images/Digi-Arc_24_05.jpg";
fade3array[6] = "images/Digi-Arc_24_06.jpg";

for (var k = 0; k < maximages; k++) {
eval('pic' + k + ' = new Image();');
eval('pic' + k + '.src = fade3array[k];'); // preloads fade images
}
function fade_in3() {
clearTimeout(fadeouttimer3);
document.images['fade-pic3'].src = fade3array[fadeincount3];
if (fadeincount3 != maximages-1) {
fadeincount3++;
fadeintimer3 = setTimeout('fade_in3()', fadespeed);
}
else {
clearTimeout(fadeintimer3);
fadeincount3 = 0;
   }
}
function fade_out3() {
clearTimeout(fadeintimer3);
document.images['fade-pic3'].src = fade3array[fadeoutcount3];
if (fadeoutcount3 != 0) {
fadeoutcount3--;
fadeouttimer3 = setTimeout('fade_out3()', fadespeed);
}
else {
clearTimeout(fadeouttimer3);
fadeoutcount3 = maximages-1;
   }
}

///////////// Fade Button 4 //////////////
var fadeintimer4;
var fadeouttimer4;
var fadeincount4 = 0;
var fadeoutcount4 = maximages-1;
var fade4array = new Array(maximages);  // enter all the fade images here
// the first item should be 0, then numbered through 1 less than your maximages

fade4array[0] = "images/Digi-Arc_25_00.jpg";
fade4array[1] = "images/Digi-Arc_25_01.jpg";
fade4array[2] = "images/Digi-Arc_25_02.jpg";
fade4array[3] = "images/Digi-Arc_25_03.jpg";
fade4array[4] = "images/Digi-Arc_25_04.jpg";
fade4array[5] = "images/Digi-Arc_25_05.jpg";
fade4array[6] = "images/Digi-Arc_25_06.jpg";

for (var l = 0; l < maximages; l++) {
eval('pic' + l + ' = new Image();');
eval('pic' + l + '.src = fade4array[l];'); // preloads fade images
}
function fade_in4() {
clearTimeout(fadeouttimer4);
document.images['fade-pic4'].src = fade4array[fadeincount4];
if (fadeincount4 != maximages-1) {
fadeincount4++;
fadeintimer4 = setTimeout('fade_in4()', fadespeed);
}
else {
clearTimeout(fadeintimer4);
fadeincount4 = 0;
   }
}
function fade_out4() {
clearTimeout(fadeintimer4);
document.images['fade-pic4'].src = fade4array[fadeoutcount4];
if (fadeoutcount4 != 0) {
fadeoutcount4--;
fadeouttimer4 = setTimeout('fade_out4()', fadespeed);
}
else {
clearTimeout(fadeouttimer4);
fadeoutcount4 = maximages-1;
   }
}