

/***********************************************
* DHTML slideshow script-  © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var photos=new Array()
var photoslink=new Array()
var which1=0
var which2=1
var which3=2

//define images. You can have as many as you want:
photos[0]="/images/images/eternabond.gif"
photos[1]="/images/images/nb_toronto.gif"
photos[2]="/images/images/jnbo.gif"
photos[3]="/images/images/cl_smith.gif"
photos[4]="/images/images/webexpress_logo2.gif"
photos[5]="/images/images/hm_capt.gif"
photos[6]="/images/images/hm_logo.gif"
photos[7]="/images/images/fbkids_logo.gif"
photos[8]="/images/images/rawlings_logo.gif"
photos[9]="/images/images/cls_ceramics.gif"
photos[10]="/images/images/cls_hasplus.gif"
photos[11]="/images/images/cls_lyonsgif.gif"
photos[12]="/images/images/furniturebuzz.gif"
photos[13]="/images/images/nbwe_hkgif.gif"
photos[14]="/images/images/dd_logo.gif"
photos[15]="/images/images/tech_logo.gif"
photos[16]="/images/images/care_logo.gif"

//Specify whether images should be linked or not (1=linked)
var linkornot=1

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]="http://www.eternabond.com"
photoslink[1]="http://www.newbalancetoronto.ca"
photoslink[2]="http://www.joesnewbalanceoutlet.com/"
photoslink[3]="http://www.clsmith.com/"
photoslink[4]="http://www.nbwebexpress.com/"
photoslink[5]="http://www.hmcapitalmanagement.com/"
photoslink[6]="http://www.hmrisk.com/"
photoslink[7]="http://www.furniturebuzzkids.com/"
photoslink[8]="http://www.rawlings.com/"
photoslink[9]="http://www.clsmith.com/cls-industrial/main.htm"
photoslink[10]="http://www.clsmith.com/un/default.htm"
photoslink[11]="http://www.clsmith.com/lbm/default.htm"
photoslink[12]="http://www.furniturebuzz.com"
photoslink[13]="http://www.nbwebexpress.com.hk/"
photoslink[14]="http://www.donnadeck.com/"
photoslink[15]="http://www.techsourcingsolutions.com/"
photoslink[16]="http://www.careandcounseling.org/"



//do NOT edit pass this line

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}




function applyeffect(){
//if (document.all && photoslider.filters){
//photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
//photoslider.filters.revealTrans.stop()
//photoslider.filters.revealTrans.apply()
//}
}



function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
//window.status="Image "+(which+1)+" of "+photos.length
}


function backward(){
	if (which1 == 0){
		which1 = photos.length;
	}
	
	if (which2 == 0){
		which2 = photos.length;
	}
	
	if (which3 == 0){
		which3 = photos.length;
	}
	
	if (which1>0){
		which1--;
		document.images.photoslider.src=photos[which1]
	}
	
	if (which2>0){
		which2--;
		document.images.photoslider1.src=photos[which2]
	}
	
	if (which3>0){
		which3--;
		document.images.photoslider2.src=photos[which3]
	}
}

function forward(){
	if (which1 == photos.length-1){
		which1 = -1;
	}
	
	if (which2 == photos.length-1){
		which2 = -1;
	}
	
	if (which3 == photos.length-1){
		which3 = -1;
	}
	
	
	if (which1 < photos.length){
		which1++;
		document.images.photoslider.src=photos[which1]
	}
	
	if (which2 < photos.length){
		which2++;
		document.images.photoslider1.src=photos[which2]
	}
	
	if (which3 < photos.length){
		which3++;
		document.images.photoslider2.src=photos[which3]
	}
	
	
		
}

function transport(){
window.location=photoslink[which1]
}

function transport1(){
window.location=photoslink[which2]
}

function transport2(){
window.location=photoslink[which3]
}










//Javascript Show Hide function

function unhide(divID) {
  var item = document.getElementById(divID);
  if (item) {
    item.className=(item.className=='hidden')?'unhidden':'hidden';
  }
}


var intImage = 1;
var intImage2 = 1;
var intImage3 = 1;
var intImage4 = 1;

function swapImage(id) {
var img = document.getElementById(id);

	if (img.id == "img1"){
		switch (intImage) {
		 case 1:
		   img.src = "templates/deckis/images/sitemap_up.gif";
		   intImage = 2;
		   break;
		
		case 2:
		   img.src = "templates/deckis/images/sitemap_down.gif";
		   intImage = 1;
		  break;
		 }
	}
	
	if (img.id == "img2"){
		switch (intImage2) {
		 case 1:
		   img.src = "templates/deckis/images/sitemap_up.gif";
		   intImage2 = 2;
		   break;
		
		case 2:
		   img.src = "templates/deckis/images/sitemap_down.gif";
		   intImage2 = 1;
		  break;
		 }
	}
	
	if (img.id == "img3"){
		switch (intImage3) {
		 case 1:
		   img.src = "templates/deckis/images/sitemap_up.gif";
		   intImage3 = 2;
		   break;
		
		case 2:
		   img.src = "templates/deckis/images/sitemap_down.gif";
		   intImage3 = 1;
		  break;
		 }
	}
	
	if (img.id == "img4"){
		switch (intImage4) {
		 case 1:
		   img.src = "templates/deckis/images/sitemap_up.gif";
		   intImage4 = 2;
		   break;
		
		case 2:
		   img.src = "templates/deckis/images/sitemap_down.gif";
		   intImage4 = 1;
		  break;
		 }
	}
}

