var annc_array = [];

var img = new Image();
img.src = "images/holiday/redxmasdots.jpg";
img.name = "red christmas dots";
img.num = "H07-01";
img.description = "Photo should be 3.5 x 5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/greenxmasdots.jpg";
img.name = "green christmas dots";
img.num = "H07-02";
img.description = "Photo should be 3.5 x 5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/navyholidaydots.jpg";
img.name = "navy holiday dots";
img.num = "H07-03";
img.description = "Photo should be 3.5 x 5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/warmwishes.jpg";
img.name = "warm wishes";
img.num = "H07-04";
img.description = "Photo should be 3.5 x 5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/peacejoy.jpg";
img.name = "peace & joy";
img.num = "H07-05";
img.description = "Photo should be 3.5 x 5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/happy-hanukkah.jpg";
img.name = "happy hanukkah";
img.num = "H07-06";
img.description = "Photo should be 3.5 x 5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/livelovelaugh.jpg";
img.name = "live, love laugh";
img.num = "H07-07";
img.description = "Digital photo should be approximately 3.125 x 3.75 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/peacelovehappiness.jpg";
img.name = "peace, love & happiness";
img.num = "H07-08";
img.description = "Digital photo should be approximately 3.125 x 3.75 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/chalkboard-ornaments.jpg";
img.name = "chalkboard ornaments";
img.num = "H08-15";
img.description = "Digital photo should be approximately 3.125 x 3.75 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/chalkboard-sled.jpg";
img.name = "chalkboard sled";
img.num = "H08-16";
img.description = "Photo should be 3.75 x 5.5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/chalkboard-tree.jpg";
img.name = "chalkboard trees";
img.num = "H08-17";
img.description = "Digital photo should be approximately 3.125 x 3.75 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/panoramic-holiday.jpg";
img.name = "panoramic holiday";
img.num = "H08-41";
img.description = "Digital photo should be approximately 3.125 x 3.75 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/modern-holiday-brown.jpg";
img.name = "modern holiday-brown";
img.num = "H08-18";
img.description = "Digital photo should be approximately 3.625 x 4 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/modern-holiday-red.jpg";
img.name = "modern holiday-red";
img.num = "H08-44";
img.description = "Digital photo should be approximately 3.625 x 4 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/modern-holiday-blue.jpg";
img.name = "modern holiday-blue";
img.num = "H08-45";
img.description = "Digital photo should be approximately 3.625 x 4 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/modern-holiday-white.jpg";
img.name = "modern holiday-white";
img.num = "H08-19";
img.description = "Photo should be 3 x 4 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/bubble-wreath.jpg";
img.name = "merry wreath";
img.num = "H08-20";
img.description = "Digital photo should be approximately 4.5 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/organic-wreath.jpg";
img.name = "organic wreath";
img.num = "H08-21";
img.description = "Digital photo should be approximately 4 x 4 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/christmas-stripes.jpg";
img.name = "christmas stripes";
img.num = "H08-22";
img.description = "Digital photo should be approximately 3.5 x 5.5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/3-Trees.jpg";
img.name = "3 trees";
img.num = "H08-23";
img.description = "Digital photo should be approximately 4.375 x 4.675 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/holiday-snowflakes.jpg";
img.name = "holiday snowflakes";
img.num = "H07-09";
img.description = "Digital photo should be approximately 4 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/christmas-snowflakes.jpg";
img.name = "christmas snowflakes";
img.num = "H07-10";
img.description = "Digital photo should be approximately 4 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/christmas-dot-border.jpg";
img.name = "christmas dot border";
img.num = "H07-11";
img.description = "Photo should be 3.5 x 4 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/holiday-dot-border.jpg";
img.name = "holiday dot border";
img.num = "H07-12";
img.description = "Photo should be 3.5 x 4 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/evergreen-vine.jpg";
img.name = "evergreen vine";
img.num = "H07-14";
img.description = "Digital photo should be approximately 4 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/red-vine.jpg";
img.name = "red vine";
img.num = "H07-13";
img.description = "Digital photo should be approximately 4 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/chocolate-vine.jpg";
img.name = "chocolate vine";
img.num = "H08-24";
img.description = "Photo should be 4 x 5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/tiny-dots.jpg";
img.name = "tiny dots";
img.num = "H08-25";
img.description = "Digital photo should be approximately 4 x 4.5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/tiny-dots-blue.jpg";
img.name = "tiny dots-blue";
img.num = "H08-26";
img.description = "Digital photo should be approximately 4 x 4.5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/tall-christmas-dots.jpg";
img.name = "tall christmas dots";
img.num = "H08-27";
img.description = "Photo should be 3.5 x 4 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/tall-holiday-dots.jpg";
img.name = "tall holiday dots";
img.num = "H08-28";
img.description = "Photo should be 3.5 x 4 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/09.jpg";
img.name = "'09 photo - limited edition";
img.num = "H09-01";
img.description = "Digital photo should be 3.5 x 3.5 inches. Limited edition design, only available through 2009 holiday season.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/2010.jpg";
img.name = "2010 photo - limited edition";
img.num = "H09-02";
img.description = "Digital photos should be 2.5 x 2.5 inches. Limited edition design, only available through 2010 holiday season.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/colorblock_P&L_red.jpg";
img.name = "colorblock p&l - red";
img.num = "H09-03";
img.description = "Digital photo should be 4 x 6 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/colorblock_P&L_blue.jpg";
img.name = "colorblock p&l - blue";
img.num = "H09-04";
img.description = "Digital photo should be 4 x 6 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/photo_grid.jpg";
img.name = "photo grid";
img.num = "H09-14";
img.description = "Six digital photos should be 1.5 x 1.5 inches, or one photo should be 4 x 6 inches. If using one photo, it can be applied at home or printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/overlapping_letters.jpg";
img.name = "overlapping letters - red";
img.num = "H09-10";
img.description = "Digital photo should be approximately 4 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/overlapping_purple.jpg";
img.name = "overlapping letters - purple";
img.num = "H09-11";
img.description = "Digital photo should be 4 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/overlapping_blue.jpg";
img.name = "overlapping letters - blue";
img.num = "H09-12";
img.description = "Digital photo should be 4 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/big_happy.jpg";
img.name = "big happy";
img.num = "H09-13";
img.description = "Digital photo should be 3 x 3 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/new_year_speech_bubbles.jpg";
img.name = "new year speech bubbles";
img.num = "H09-15";
img.description = "Photos should be 1.75 x 1.75 inches and can be applied at home or printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/holiday_rays.jpg";
img.name = "holiday rays";
img.num = "H09-05";
img.description = "Digital photo should be 3.5 x 5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/holiday_handwriting.jpg";
img.name = "holiday handwriting";
img.num = "H09-08";
img.description = "Digital photo should be 5 x 7 inches with enough room at the bottom for the headline and type. Headline is available in red, navy or white.";
annc_array.push(img);

/******* END OF PHOTO CARDS **********/

var img = new Image();
img.src = "images/holiday/christmas-baby-stripes.jpg";
img.name = "christmas baby-stripes";
img.num = "H08-29";
img.description = "Digital photo should be approximately 2.5 x 2.5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/christmas-baby-dots.jpg";
img.name = "christmas baby-dots";
img.num = "H08-30";
img.description = "Digital photo should be approximately 2.5 x 2.5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/holiday-baby-dots.jpg";
img.name = "holiday baby-dots";
img.num = "H08-31";
img.description = "Digital photo should be approximately 2.5 x 2.5 inches.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/circles_baby.jpg";
img.name = "circles baby";
img.num = "H09-74";
img.description = "Color scheme may be substituted for Circles Party H09-73.";
annc_array.push(img);

/******************/

var img = new Image();
img.src = "images/holiday/valentines-spiral-dots.jpg";
img.name = "valentine's spiral dots";
img.num = "H08-32";
img.description = "Photo should be 3 x 3.5 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/valentines-vine.jpg";
img.name = "valentine's vine";
img.num = "H08-33";
img.description = "Digital photo should be approximately 4 x 5 inches.";
annc_array.push(img);

/**********/

var img = new Image();
img.src = "images/holiday/ornament-party.jpg";
img.name = "ornament party";
img.num = "H08-34";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/3-trees-party.jpg";
img.name = "3 trees party";
img.num = "H08-35";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/hanukkah party.jpg";
img.name = "hanukkah party";
img.num = "H08-44";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/party-lanterns.jpg";
img.name = "lantern party";
img.num = "H08-36";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/cheers.jpg";
img.name = "cheers";
img.num = "H09-71";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/word_tree.jpg";
img.name = "word tree";
img.num = "H09-72";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/party_xmas_circles.jpg";
img.name = "circles party";
img.num = "H09-73";
img.description = "Color scheme may be substituted for Circles Baby H09-74.";
annc_array.push(img);

/*****************/

var img = new Image();
img.src = "images/holiday/apple-tree.jpg";
img.name = "apple tree";
img.num = "H08-37";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/tree-of-life.jpg";
img.name = "tree of life";
img.num = "H08-38";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/big_apple.jpg";
img.name = "big apple";
img.num = "H09-40";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/apple_pattern.jpg";
img.name = "apple pattern";
img.num = "H09-41";
img.description = "";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/fruitful_new_year.jpg";
img.name = "fruitful new year";
img.num = "H09-42";
img.description = "";
annc_array.push(img);

/***********************/

var img = new Image();
img.src = "images/holiday/year-of-the-ox.jpg";
img.name = "year of the ox";
img.num = "H08-39";
img.description = "Photo should be 3 x 3 inches. Photo can be added at home with glue dots provided, or can be printed digitally.";
annc_array.push(img);

var img = new Image();
img.src = "images/holiday/chinese-new-year-baby.jpg";
img.name = "chinese new year baby";
img.num = "H08-40";
img.description = "Digital photo should be approximately 2.5 x 3.5 inches.";
annc_array.push(img);



var curIndex= 0;
var defaultResize= 0.85;
var resizeBy= defaultResize;

function setActiveLink(c, i) {
	document.getElementById('design' + c).style.color= "#5f5f5f";
	document.getElementById('design' + i).style.color= "#bbbd14";
}
function goToImg(index){
	setActiveLink(curIndex, index);
	UpdateDivs(index);

}
function prevImg(){
	var prevIndex = (curIndex == 0)?annc_array.length - 1:curIndex - 1;
	goToImg(prevIndex);
}
function nextImg(){
	var nextIndex = (curIndex == annc_array.length - 1)?0:curIndex + 1;
	goToImg(nextIndex);
}
function UpdateDivs(index){
	var announce= document.getElementById('announce');
	var description= document.getElementById('description');
	var thickbox_announce= document.getElementById('thickbox_announce');
	announce.src = annc_array[index].src;
	description.innerHTML = annc_array[index].description;
	thickbox_announce.href = announce.src;
	thickbox_announce.title = annc_array[index].num + ' ' + annc_array[index].name;
	announce.alt = thickbox_announce.title;
	document.getElementById("divTitle").innerHTML = thickbox_announce.title;
	curIndex= index;
}
function resize(img){
	var orig= new Image();
	orig.src= img.src;
	img.width= orig.width * resizeBy;
	img.height= orig.height * resizeBy;
}
$(document).ready(
	function(){
		
		for(var i = 0; i < annc_array.length; i++){
			document.getElementById('design' + i).innerHTML = annc_array[i].name;
		}
		goToImg(0);
	}
);


