// JavaScript Document

//currentportnum = 1; //Where are we in the portfolio bar list 1=beginning
portsize = 7; // How many elements in the portfolio bar library
startsrc = "images/workbar/porttestthumb";
endsrc = ".jpg";

var bigportinfoswtch="in";//Should the object be fading in or out

//Initial numbers for the portfolio list
first = 1;
second = 2;
third = 3;
fourth = 4;

//The path to portfolio item pages
portfoliosrc = "portfolio_";
portfoliosrcend = ".php";

descriptions = new Array(portsize);
descriptions[0] = "This is the first description";
descriptions[1] = "This is the second description";
descriptions[2] = "This is the third description";
descriptions[3] = "This is the fourth description";
descriptions[4] = "This is the fifth description";
descriptions[5] = "This is the sixth description";
descriptions[6] = "This is the seventh description";

//Code that makes a script run on pageload

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(indexstartup);
//you can add more onload events right here using the above syntax


function indexstartup(){
	
		
}



function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

