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

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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></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. We can design your pages so 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 viewApp(url, name) {
	var win = window.open(url,name,'width=815,height=600,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 ;