<!--
/*
  -------------------------------------------------------------------------------
 |  The contents of this file constitutes Licensed Code.                         |
 |  Copyright (C) 2006 Azalea Technology, LLC. All rights reserved.              |
 |-------------------------------------------------------------------------------|
 |  Unauthorized removal of this notice is considered a violation of the         |
 |  license agreement under which this Code may be used. This work is protected  |
 |  under United States copyright law and the similar law(s) of other countries  |
 |  under which such as work is afforded legal protection, and upon conviction   |
 |  of such a violation in a court of applicable jurisdiction, such person(s)    |
 |  may be subject to the maximum allowable penalty as permitted under such law. |
 |-------------------------------------------------------------------------------|
 |  You acknowledge and agree that information presented to you through this     |
 |  site (the "Web Site") is protected by all applicable copyrights, trademarks, |
 |  service marks, patents or other proprietary rights and laws, and by virtue   |
 |  of accessing the Web Site, except as expressly authorized by the Azalea      |
 |  Technology, LLC., you agree not to modify, rent, lease, loan, sell,          |
 |  distribute, store, or create derivative works based on the Web Site, in      |
 |  whole or in part.                                                            |
  -------------------------------------------------------------------------------|
 |  Decrypting or otherwise decoding the following programming language code is  |
 |  strictly prohibited except as expressly authorized by Azalea Technology,     |
 |  LLC. Upon conviction of such a violation in a court of applicable            |
 |  jurisdiction, such person(s) may be subject to the maximum allowable penalty |
 |  as permitted under such law.                                                 |
  -------------------------------------------------------------------------------
      Purpose: Function library for portfolio
   Programmer: B. Roberts
               Azalea Technology, LLC.
               P.O. Box 131150
               Tyler, TX 75713-1150
               903-581-4448
  -------------------------------------------------------------------------------
*/

var index=0, timer_id;

function next_pic(next){
	var dir = "images/portfolio/";
	var portfoliolist = new Array(); //Declare new array
	var index1 = 0;

	portfoliolist = ["63.jpg","64.jpg","61.jpg","62.jpg","59.jpg","60.jpg","57.jpg","58.jpg","53.jpg","54.jpg","55.jpg","56.jpg","51.jpg","52.jpg","47.jpg","48.jpg","35.jpg","36.jpg","37.jpg","38.jpg","39.jpg","40.jpg","41.jpg","42.jpg","43.jpg","44.jpg","45.jpg","46.jpg","25.jpg","26.jpg","27.jpg","28.jpg","30.jpg","11.jpg","12.jpg","17.jpg","18.jpg","19.jpg","20.jpg","21.jpg","34.jpg","22.jpg","23.jpg","24.jpg","15.jpg","16.jpg","5.jpg",
					 "6.jpg","29.jpg"];

	index=index+next;

	if(index<0) index = (portfoliolist.length-1);
	else if(index>(portfoliolist.length-1)) index=0;

	index1 = index+1;

	if(index1<0) index1 = (portfoliolist.length-1);
	else if(index1>(portfoliolist.length-1)) index1=0;

	swap_img("portfolio1","",dir+portfoliolist[index],1);
	swap_img("portfolio2","",dir+portfoliolist[index1],1);
}

function start_show(){
	next_pic(1);
	timer_id = window.setTimeout("start_show()",2000);
}

function pause_show(){
	window.clearTimeout(timer_id);
}

function stop_show(){
	window.clearTimeout(timer_id);
	index=0;
	next_pic(0);
}

//-->