// JavaScript Document

var first_image = subdir + image_A;
	var thumbdir = subdir + "thumb/";
	
	swapImg = new Object;
	swapImg.A = subdir + image_A;
	swapImg.B = subdir + image_B;
	swapImg.C = subdir + image_C;
	
	swapTxt = new Object;
	swapTxt.A = text_A;
	swapTxt.B = text_B;
	swapTxt.C = text_C;
	
		
	function preloadImages() {
	   for(each in swapImg)
		{
 		var an_image = new Image();
		an_image.src = swapImg[each];
		}
	}

	safari=(navigator.userAgent.indexOf('Safari')!=-1);
		
	function swapSet(isLink,eventDesc){
		isSwap = eventDesc;
		if (isSwap == 'over')
			{
			 if (safari) { document.getElementById('isImg').src = "images/background2.jpg"; }
			 document.getElementById('isImg').src = swapImg[isLink];
			 document.getElementById('isTxt').innerHTML = swapTxt[isLink];
			}
		if (isSwap == 'out')
			{
			 document.getElementById('isImg').src = swapImg[isLink][0];
			 document.getElementById('isTxt').innerHTML = swapTxt[isLink][0];
			}
	}


