////////
//
// Gallery script for Hoad - wilman range.
// larrymite.com.au - jo fleming
// last modified 05.11.08
// 
////////

var tipsrc=new Array();
tipsrc[0]="Arlington-Park-Garnet-2.jpg";
tipsrc[1]="Arlington-Park-Granite-1.jpg";
tipsrc[2]="Arlington-Park-Sapphire-1.jpg";
tipsrc[3]="Arlington-Park-Sapphire-2.jpg";
tipsrc[4]="Arlington-Park-Sapphire.jpg";
tipsrc[5]="Cachet-Lipstick.jpg";
tipsrc[6]="Cachet-Mustard.jpg";
tipsrc[7]="Cachet-Petrol.jpg";
tipsrc[8]="Cachet-Spice.jpg";
tipsrc[9]="Eve-Teal.jpg";
tipsrc[10]="Linara-Vermilion.jpg";
tipsrc[11]="Marsal-Graphite.jpg";
tipsrc[12]="Ophelia-Amethyst.jpg";
tipsrc[13]="Ophelia-Graphite.jpg";
tipsrc[14]="Serena-Berry-1.jpg";
tipsrc[15]="Serena-Berry-2.jpg";
tipsrc[16]="Serena-Berry-3.jpg";
tipsrc[17]="Serena-Berry-4.jpg";
tipsrc[18]="Serena-Chocolate-1.jpg";
tipsrc[19]="Serena-Chocolate-2.jpg";
tipsrc[20]="Serena-Ebony-3.jpg";
tipsrc[21]="Serena-Teal-1.jpg";
tipsrc[22]="Serena-Teal-2.jpg";
tipsrc[23]="Serena-Teal-3.jpg";
tipsrc[24]="Serena-Teal-4.jpg";
tipsrc[25]="Serena-Teal.jpg";
	
var tipalt=new Array();
tipalt[0]="Arlington Park Garnet 2";
tipalt[1]="Arlington Park Granite 1";
tipalt[2]="Arlington Park Sapphire 1";
tipalt[3]="Arlington Park Sapphire 2";
tipalt[4]="Arlington Park Sapphire";
tipalt[5]="Cachet Lipstick";
tipalt[6]="Cachet Mustard";
tipalt[7]="Cachet Petrol";
tipalt[8]="Cachet Spice";
tipalt[9]="Eve Teal";
tipalt[10]="Linara Vermilion";
tipalt[11]="Marsal Graphite";
tipalt[12]="Ophelia Amethyst";
tipalt[13]="Ophelia Graphite";
tipalt[14]="Serena Berry 1";
tipalt[15]="Serena Berry 2";
tipalt[16]="Serena Berry 3";
tipalt[17]="Serena Berry 4";
tipalt[18]="Serena Chocolate 1";
tipalt[19]="Serena Chocolate 2";
tipalt[20]="Serena Ebony 3";
tipalt[21]="Serena Teal 1";
tipalt[22]="Serena Teal 2";
tipalt[23]="Serena Teal 3";
tipalt[24]="Serena Teal 4";
tipalt[25]="Serena Teal";

var tpath ='thumb/'
var path ='img/'

function selectPic(shiftn)
{

	var thisone = 2+shiftn

	var pic=document.getElementById('pic2');

	var picname=document.getElementById('picName');
	
	
	
			pic.setAttribute('src',path+tipsrc[thisone]);
			pic.setAttribute('alt',tipalt[thisone]);
			pic.setAttribute('title',tipalt[thisone]);
			picname.innerHTML=tipalt[thisone];
}
		
/*
function movePrev(times) {

	var tip=new Array();
	tip[0]=document.getElementById('pic0');
	tip[1]=document.getElementById('pic1');
	tip[2]=document.getElementById('pic2');
	tip[3]=document.getElementById('pic3');
	tip[4]=document.getElementById('pic4');
	var picname=document.getElementById('picName');
	
	for (i=1;i<=times;i++) {

    		dib=tipsrc.pop();
		tipsrc.unshift(dib);

		dibt=tipsrct.pop();
		tipsrct.unshift(dibt);
		
		dibalt=tipalt.pop();
		tipalt.unshift(dibalt);

	}

	for (n=0;n<=4;n++) {
		if(n==2) {
			tip[n].setAttribute('src',tipsrc[n]);
			tip[n].setAttribute('alt',tipalt[n]);
			tip[n].setAttribute('title',tipalt[n]);
			picname.innerHTML=tipalt[n];
		}else {
			tip[n].setAttribute('src',tipsrct[n]);
			tip[n].setAttribute('alt',tipalt[n]);
		}
	}

}
*/

function morePrev(times) {

	var tip=new Array();
	tip[0]=document.getElementById('pic0');
	tip[1]=document.getElementById('pic1');
	tip[2]=document.getElementById('pic5');
	tip[3]=document.getElementById('pic3');
	tip[4]=document.getElementById('pic4');

	for (i=1;i<=times;i++) {

    		dib=tipsrc.pop();
		tipsrc.unshift(dib);

/*		dibt=tipsrct.pop();
		tipsrct.unshift(dibt);*/
		
		dibalt=tipalt.pop();
		tipalt.unshift(dibalt);

	}

	for (n=0;n<=4;n++)
	{
			tip[n].setAttribute('src',tpath+tipsrc[n]);
			tip[n].setAttribute('alt',tipalt[n]);
	}

}

/*
function moveNext(times) {

	var tip=new Array();
	tip[0]=document.getElementById('pic0');
	tip[1]=document.getElementById('pic1');
	tip[2]=document.getElementById('pic2');
	tip[3]=document.getElementById('pic3');
	tip[4]=document.getElementById('pic4');
	var picname=document.getElementById('picName');

	for (i=1;i<=times;i++) {

    		dib=tipsrc.shift();
		tipsrc.push(dib);

		dibt=tipsrct.shift();
		tipsrct.push(dibt);
		
		dibalt=tipalt.shift();
		tipalt.push(dibalt);

	}

	for (n=0;n<=4;n++) {
		if(n==2) {
			tip[n].setAttribute('src',tipsrc[n]);
			tip[n].setAttribute('alt',tipalt[n]);
			tip[n].setAttribute('title',tipalt[n]);
			picname.innerHTML=tipalt[n];
		}else {
			tip[n].setAttribute('src',tipsrct[n]);
			tip[n].setAttribute('alt',tipalt[n]);
		}
	}
}
*/

function moreNext(times) {

	var tip=new Array();
	tip[0]=document.getElementById('pic0');
	tip[1]=document.getElementById('pic1');
	tip[2]=document.getElementById('pic5');
	tip[3]=document.getElementById('pic3');
	tip[4]=document.getElementById('pic4');

	for (i=1;i<=times;i++) {

    		dib=tipsrc.shift();
		tipsrc.push(dib);

/*		dibt=tipsrct.shift();
		tipsrct.push(dibt);*/
		
		dibalt=tipalt.shift();
		tipalt.push(dibalt);

	}

	for (n=0;n<=4;n++)
	{
			tip[n].setAttribute('src',tpath+tipsrc[n]);
			tip[n].setAttribute('alt',tipalt[n]);
	}
}