
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 3;
countY = 3;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(

   new Array('Books','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
	  new Array('Photo 1','Directory2Cover.jpg',338,400),
	  new Array('Photo 2','ArtDir.jpg',329,400),
      new Array('Photo 3','The Hunt Cover Mechanical.jpg',267,400),
	  new Array('Photo 4','The Chase.jpg',259,400),
	  new Array('Photo 5','TheGameof LiesCoverOnly.jpg',276,400),
	  new Array('Photo 6','VES.jpg',315,400),
      new Array('Photo 7','VES2.jpg',318,400),
	  new Array('Photo 8','Cookbook Horiz.jpg',518,400),
      new Array('Photo 9','Dantes Cure.jpg',267,400),
	  new Array('Photo 10','ArtDirectorsGuild.jpg',506,400),
	  new Array('Photo 11','LA Horse Cover.jpg',184,400),
      new Array('Photo 12','Nest Cover Mechanical2.jpg',273,400),
      new Array('Photo 13','OCHA Cover Mechanical.jpg',280,400),
	  new Array('Photo 14','ECB Book Cover Mechanical.jpg',282,400),
      new Array('Photo 15','Girl Child Final.jpg',283,400),
      new Array('Photo 16','H-Smart Cover.jpg',310,400),
	  new Array('Photo 17','ProvokingnoQ.jpg',269,400),
	  new Array('Photo 18','Stress&Trauma Final.jpg',257,400),
	  new Array('Photo 19','Reconciliation Book Mech.jpg',254,400),
      new Array('Photo 20','Violence Cover Mech.jpg',278,400),
      new Array('Photo 21','And the Children2.jpg',267,400),
	  new Array('Photo 22','HumanDynamica.jpg',571,400),
      new Array('Photo 23','Underground.jpg',310,400),
      new Array('Photo 24',' Butterfly Cover Mech..jpg',267,400),
      new Array('Photo 25','Billibonk1.jpg',282,400),
      new Array('Photo 26','Billibonk2.jpg',281,400),
      new Array('Photo 27','Itch Field Book Cover.jpg',282,400),
      new Array('Photo 28','KidsBooks.jpg',498,400),
      new Array('Photo 29','ThornFieldbook.jpg',281,400),
      new Array('Photo 30','Wolves.jpg',260,400),
      new Array('Photo 31','SunStone.jpg',290,400),
	  new Array('Photo 32','sbar-basics.jpg',312,400)

    )
  ),

  new Array('Brochures & Advertising','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
	  new Array('Photo 1','OLA 1005 0102 Rescue Bro1.jpg',310,400),
      new Array('Photo 2','OLA 1007 0102 401_k1.jpg',310,400),
      new Array('Photo 3','OLA 1008 0102 DefCompHilit.jpg',310,400),
      new Array('Photo 4','OLA 1009 0302 alary Defera.jpg',310,400),
      new Array('Photo 5','OLA 1011 0302  Folder.jpg',311,400),
      new Array('Photo 6','OLA 1012 0102 estricHighli.jpg',310,400),
      new Array('Photo 7','OLA 1022 0102 Exec Bonus1.jpg',310,400),
      new Array('Photo 8','OLA 966 0901 CE Cover.jpg',310,400),
      new Array('Photo 9','OLA 969 0901 Con Cover.jpg',310,400),
	  new Array('Photo 10','AT5.jpg',552,400),
      new Array('Photo 11','CapitalInvite.jpg',478,400),
	  new Array('Photo 12','Leadership.jpg',508,400),
	  new Array('Photo 13','OL 1275 A Postcard1.jpg',286,400),
      new Array('Photo 14','OL 900 0302 UL Brochure1.jpg',172,400),
	  new Array('Photo 15','TA1.jpg',526,400),
      new Array('Photo 16','TA2.jpg',528,400),
      new Array('Photo 17','TA3.jpg',538,400),
      new Array('Photo 18','TA4.jpg',548,400),
	  new Array('Photo 19','TAPlan.jpg',528,400),
      new Array('Photo 20','VES_1.jpg',485,400),
	  new Array('Photo 21','Cinefex Ad from VES.jpg',450,400),
	  new Array('Photo 22','Tudor.jpg',519,400),
      new Array('Photo 23','TudorInside.jpg',700,271),
      new Array('Photo 24','2006 Annual Review New.jpg',700,319),
      new Array('Photo 25','Annual Review Mech 2004.jpg',700,294),
	  new Array('Photo 26','OCHA Annual Cover.jpg',280,400),
	  new Array('Photo 27','OldWVAnnCover.jpg',538,400),
	  new Array('Photo 28',' Servent Leadership Book.jpg',310,400),
      new Array('Photo 29','Abrahms Agencies Insurance.jpg',310,401),
	  new Array('Photo 30','A & M Final Mechanical.jpg',180,400),
	  new Array('Photo 31','Image02.jpg',592,400),
      new Array('Photo 32','Interactive Channel.jpg',305,400),
	  new Array('Photo 33','LACounty.jpg',593,400),
	  new Array('Photo 34','OLA 984 0901 NAILBA Mech1.jpg',605,400),
      new Array('Photo 35','Old Pine Catalog 2003.jpg',310,400),
	  new Array('Photo 36','Polar vision Text1.jpg',310,400),
	  new Array('Photo 37','Tims NEW Bro 9_04_Page_1.jpg',518,400),	  
      new Array('Photo 38','Tims NEW Bro 9_04_Page_2.jpg',518,400),
	  new Array('Photo 39','Ride Your Dreams Flyer.jpg',517,400),
      new Array('Photo 40','Scope of Services-TES1.jpg',174,400),
      new Array('Photo 41','Safety 8.5x171.jpg',160,400),
	  new Array('Photo 42','TES Brochure.jpg',174,400),
	  new Array('Photo 43','Memorial Day Poster-Flyer.jpg',310,400),
      new Array('Photo 44','AHS Silent Auction.jpg',209,400),
      new Array('Photo 45','Donavan Poster_1.jpg',259,400),
      new Array('Photo 46','DonavanAdforAHS.jpg',310,400),
      new Array('Photo 47','Dressage Today Ad.jpg',307,400),
	  new Array('Photo 48','Harvest Sale Flyer.jpg',310,400),
      new Array('Photo 49','GalleryInvite.jpg',700,167),
      new Array('Photo 50','Graciela Ad for Equestrian.jpg',237,400),
	  new Array('Photo 51','Omnibus Cover Comps.jpg',259,400),
      new Array('Photo 52','Marchi Invite.jpg',700,288),
      new Array('Photo 53','Marchi-Galleryguide.jpg',259,400),
      new Array('Photo 54','JulioValdezAd.jpg',324,400),
	  new Array('Photo 55','Tamayo-Galleryguide2.jpg',259,400),
      new Array('Photo 56','Toledo Invite.jpg',700,288),
      new Array('Photo 57','Menu Front.jpg',114,400),
	  new Array('Photo 58','World-Vision-Overview.jpg',284,400),
      new Array('Photo 59','WV-Rack-Bro.jpg',310,400),
      new Array('Photo 60','DaMoorAd.jpg',264,400),
      new Array('Photo 61','GTT-IntroCover.jpg',288,400),
      new Array('Photo 62','GustavoAd.jpg',332,400),
      new Array('Photo 63','TESPostcard.jpg',615,400),
	  new Array('Photo 64','BAI202_RD08.jpg',219,400),
      new Array('Photo 65','Ibarra-Invite.jpg',700,285)

    )
  ),

  new Array('Fine Art','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Frankie.jpg',255,400),
      new Array('Photo 2','GeorgeSmith.jpg',257,400),
      new Array('Photo 3','MargieEvans.jpg',622,400),
      new Array('Photo 4','Robert.jpg',256,400),
      new Array('Photo 5','Tornado.jpg',292,401),
	  new Array('Photo 6','5. Watercolor.jpg',432,314),
	  new Array('Photo 7','Bruce.jpg',632,400),
      new Array('Photo 8','DaneOnSebastian.jpg',536,400),
      new Array('Photo 9','DoraOnPrince.jpg',492,400),
      new Array('Photo 10','DoraOnPrince2.jpg',501,400),
      new Array('Photo 11','GermanJudges.jpg',700,350),
	  new Array('Photo 12','Void_Razors.jpg',600,395),
	  new Array('Photo 13','CheeseBody.jpg',318,400),
      new Array('Photo 14','Lovers.jpg',316,400)

    )
  ),

  new Array('Illustrations','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','6. Otis Rush.jpg',257,400),
      new Array('Photo 2','AlbertKing.jpg',283,400),
      new Array('Photo 3','AlGreen.jpg',554,400),
      new Array('Photo 4','Aretha.jpg',292,400),
      new Array('Photo 5','BluesGuy.jpg',288,400),
      new Array('Photo 6','BluesSinger.jpg',289,400),
      new Array('Photo 7','Da Moors RedRobbon.jpg',414,400),
      new Array('Photo 8','Dennis.jpg',289,400),
     // new Array('Photo 9','Donavan Poster.jpg',259,400),
      new Array('Photo 9','Donovan.jpg',296,400),
      new Array('Photo 10','EricClapton.jpg',551,400),
      new Array('Photo 11','EttaJames.jpg',282,400),
      new Array('Photo 12','Granada.jpg',292,400),
      new Array('Photo 13','Hooker.jpg',289,400),
      new Array('Photo 14','hooves.jpg',632,400),
      new Array('Photo 15','Horse-1.jpg',178,400),
      new Array('Photo 16','Horse-2.jpg',178,400),
      new Array('Photo 17','Horse-3.jpg',178,400),
      new Array('Photo 18','Horse-4.jpg',178,400),
      new Array('Photo 19','Horse-5.jpg',178,400),
      new Array('Photo 20','Horse-6.jpg',178,400),
      new Array('Photo 21','Horse-7.jpg',178,400),
      new Array('Photo 22','Horse-8.jpg',178,400),
      new Array('Photo 23','Horse-9.jpg',178,400),
      new Array('Photo 24','JohnCampbell.jpg',288,400),
      new Array('Photo 25','JohnnyTucker.jpg',284,400),
      new Array('Photo 26','MichaelShocked.jpg',287,400),
     // new Array('Photo 28','Riverland Farms Stallion Ad.jpg',310,400),
      new Array('Photo 27','RobertCray.jpg',292,400),
      new Array('Photo 28','RobertJohnson.jpg',289,400),
      new Array('Photo 29','StevieRay.jpg',291,400),
      new Array('Photo 30','ThisAlGreen.jpg',291,400),
      new Array('Photo 31','Transamerica Ad.jpg',312,400),
      new Array('Photo 32','TwoGirlsflat.jpg',289,400),
      new Array('Photo 33','Woman on Horseback.jpg',292,400),
      new Array('Photo 34','Zelly.jpg',287,400)
    )
  ),

  new Array('Logos','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
	  new Array('Photo 1','AHPlogo.jpg',400,400),
      new Array('Photo 2','KentIslandFinalLogo.jpg',700,348),
      new Array('Photo 3','MexiPassLogo.jpg',421,140),
      new Array('Photo 4','ROSALLfinalLOGO.jpg',208,323),
      new Array('Photo 5','Sullivans.jpg',390,400),
      new Array('Photo 6','Tim Logo.jpg',700,375),
      new Array('Photo 7','USHorseFeedLogoText.jpg',424,129),
      new Array('Photo 8','USHorseLogo.jpg',700,145),
	  new Array('Photo 9','zaragold.jpg',410,400),
	  new Array('Photo 10','BerlandLogo.jpg',640,400),
      new Array('Photo 11','ChannelLogo.jpg',468,252),
      //new Array('Photo 12','CutlerLogo.jpg',372,180),
	  new Array('Photo 12','AgavaGoddess.jpg',632,356),
      new Array('Photo 13','BitKoo.jpg',360,168),
      new Array('Photo 14','FoxWoodLogo.jpg',263,165),
      new Array('Photo 15','TRU.jpg',336,228)


    )
  ),

  new Array('Packaging','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','GiftBox_high.jpg',311,400),
      new Array('Photo 2','Image11.jpg',585,400),
      new Array('Photo 3','MS_Group.jpg',355,400),
      new Array('Photo 4','MS_POS_Rack_Retail.jpg',144,400),
      new Array('Photo 5','TopangaGallery.jpg',569,400),
	  new Array('Photo 6','PhantomRivers-Label.jpg',253,225),
      new Array('Photo 7','PhantomRivers-Label2.jpg',403,270),
      new Array('Photo 8','TRU_Organic_Vodkas.jpg',345,400),
	  new Array('Photo 9','Kid-Gia-France1.jpg',238,400),
      new Array('Photo 10','Kid-Gia-France2.jpg',252,400),
      new Array('Photo 11','Kid-Ling-Japan1.jpg',242,400),
      new Array('Photo 12','Kid-Ling-Japan2.jpg',248,401),
      new Array('Photo 13','Kid-Lulu-Mad1.jpg',250,400),
      new Array('Photo 14','Kid-Lulu-Mad2.jpg',247,400),
      new Array('Photo 15','Kid-Pita-Brazi1.jpg',248,400),
      new Array('Photo 16','Kid-Pita-Brazi2.jpg',244,400),
      new Array('Photo 17','Kid-Zoe-Canada1.jpg',248,400),
      new Array('Photo 18','Kid-Zoe-Canada2.jpg',243,400)


    )
  ),

  new Array('Publications','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','TEN-Jan-Feb2004.jpg',265,400),
      new Array('Photo 2',' TEN Jan-Feb 2004_1.jpg',512,400),
      new Array('Photo 3','Cover-EQ-July-Aug-2005.jpg',265,400),
      new Array('Photo 4','Equestrian-2.jpg',265,400),
      new Array('Photo 5','Image06.jpg',467,368),
      new Array('Photo 6','RG Canning Fall 2006.jpg',321,400),
      new Array('Photo 7','RG-Canning-Fall-2007.jpg',293,400),
      new Array('Photo 8','winter06final.jpg',297,400)
	)
  ),

  new Array('Web Design','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('www.truvodka.com','TRU Home Page.jpg',522,400),
      new Array('www.truvodka.com','TRUpg2.jpg',550,400),
      new Array('www.truvodka.com','TRUpg3.jpg',487,400),
      new Array('www.truvodka.com','TRUpg4.jpg',360,400),
      new Array('www.truvodka.com','TRUpg5.jpg',432,400),
	  new Array('Photo 1','TES-NEW-SITE2.jpg',463,401),
      new Array('Photo 2','USHFeed.jpg',218,400)

    )
  )
)


section = getParameter(self.document.location.href, 'section');
if (isNaN(section) || (section=='') || (section<0) || (section>arImages.length))
  section = 0; 

ind = getParameter(self.document.location.href, 'ind');
if (isNaN(ind) || (ind=='') || (ind<0) || (ind>arImages[section][4].length))
  ind = 0; 

var arPreloadImages = new Array();
function preload() {
  if (arImages[section][2]!='') {
    for (i=ind;(i<(Number(ind)+Number(countX*countY))) && (i<arImages[section][4].length);i++) {
      arPreloadImages[i] = new Image(mediumSizes[0],mediumSizes[1]);
      arPreloadImages[i].src = arImages[section][2]+arImages[section][4][i][1];
    }
  }
}
  
function showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  showMessage('imagemediumname',arImages[section][4][number][0]);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
