var myHimages=new Array();
function preloadHimages(){
for (i=0;i<preloadHimages.arguments.length;i++){
myHimages[i]=new Image();
myHimages[i].src=preloadHimages.arguments[i];
	}
}
preloadHimages("images/home/default.jpg","images/home/weddings-t.jpg","images/home/wedding.jpg");



//function switchPic(p){
//document.images.viewer.src='images/home/'+p+'.jpg';
//s="document.getElementById('";
//e="').style.borderColor='#ffffff'";
//}

//function borderNorm(p){
//s="document.getElementById('";
//e="').style.borderColor='#363636'";
//eval(s+p+e);
//} 


function switchPic(i,s){
// alert(i);
// alert(s);
//alert(idx);
sb=s.substring(0,s.length-4)+"-b.jpg"; //find image path and change name to create big image
document.images.viewer.src=sb;  //switch viewer image to current image
idx=parseInt(i.substring(4,s.length)); //find index number
// alert(idx);
b="document.getElementById('"; //beginning of border rollover
e="').style.borderColor='#ffffff'"; //end of border rollover
eval(b+i+e); //evaluate of border rollover
}

function borderNorm(i){
b="document.getElementById('";
e="').style.borderColor='#333333'";
eval(b+i+e);
}

function borderNormBW(i){
b="document.getElementById('";
e="').style.borderColor='#333333'";
eval(b+i+e);
}

function getCaption(c){
document.getElementById('wCapTitle').innerText="hello";
}


	function imageOn(x){
	s1="document.images.";
	s2=".src=";
	s3="'../images/nav/"+x+"-ro.gif'";
	eval(s1+x+s2+s3); 
	}
	
	
	function imageOff(x){
	s1="document.images.";
	s2=".src=";
	s3o="'../images/nav/"+x+".gif'";
	eval(s1+x+s2+s3o); 
	}