var thepath = "http://www.vitalinasicecream.co.uk/new/"

var home = new Array() ;
home[0] = new Image(110,22) ;
home[1] = new Image(110,22) ;

home[0].src = thepath + "images/services-home-off.gif" ;
home[1].src = thepath + "images/services-home-on.gif" ;


var gelato = new Array() ;
gelato[0] = new Image(110,22) ;
gelato[1] = new Image(110,22) ;

gelato[0].src = thepath + "images/services-whatisgelato-off.gif" ;
gelato[1].src = thepath + "images/services-whatisgelato-on.gif" ;


var products = new Array() ;
products[0] = new Image(110,22) ;
products[1] = new Image(110,22) ;

products[0].src = thepath + "images/services-products-off.gif" ;
products[1].src = thepath + "images/services-products-on.gif" ;


var wheretobuy = new Array() ;
wheretobuy[0] = new Image(110,22) ;
wheretobuy[1] = new Image(110,22) ;

wheretobuy[0].src = thepath + "images/services-wheretobuy-off.gif" ;
wheretobuy[1].src = thepath + "images/services-wheretobuy-on.gif" ;


var other = new Array() ;
other[0] = new Image(110,22) ;
other[1] = new Image(110,22) ;

other[0].src = thepath + "images/services-other-off.gif" ;
other[1].src = thepath + "images/services-other-on.gif" ;


var contact = new Array() ;
contact[0] = new Image(110,22) ;
contact[1] = new Image(110,22) ;

contact[0].src = thepath + "images/services-contact-off.gif" ;
contact[1].src = thepath + "images/services-contact-on.gif" ;


var strawberry = new Array() ;
strawberry[0] = new Image(85,70) ;
strawberry[1] = new Image(85,70) ;

strawberry[0].src = thepath + "images/products-strawberry-off.gif" ;
strawberry[1].src = thepath + "images/products-strawberry-on.gif" ;


var doublechoc = new Array() ;
doublechoc[0] = new Image(85,70) ;
doublechoc[1] = new Image(85,70) ;

doublechoc[0].src = thepath + "images/products-doublechoc-off.gif" ;
doublechoc[1].src = thepath + "images/products-doublechoc-on.gif" ;


var vanilla = new Array() ;
vanilla[0] = new Image(85,70) ;
vanilla[1] = new Image(85,70) ;

vanilla[0].src = thepath + "images/products-vanilla-off.gif" ;
vanilla[1].src = thepath + "images/products-vanilla-on.gif" ;

var whatisgelato = new Array() ;
whatisgelato[0] = new Image(160,181) ;
whatisgelato[1] = new Image(160,181) ;

whatisgelato[0].src = thepath + "images/whatisgelato-off.gif" ;
whatisgelato[1].src = thepath + "images/whatisgelato-on.gif" ;


function changeImg(array,index,path){
	
	if(array == "home")
	{
		document.images["home"].src = home[index].src ;

	}else if(array == "gelato")
	{

		document.images["gelato"].src = gelato[index].src ;

	}else if(array == "products")
	{

		document.images["products"].src = products[index].src ;

	}else if(array == "wheretobuy")
	{

		document.images["wheretobuy"].src = wheretobuy[index].src ;

	}else if(array == "other")
	{

		document.images["other"].src =  other[index].src ;

	}else if(array == "contact")
	{

		document.images["contact"].src =  contact[index].src ;

	}else if(array == "strawberry")
	{

		document.images["strawberry"].src = strawberry[index].src ;

	}else if(array == "doublechoc")
	{

		document.images["doublechoc"].src = doublechoc[index].src ;

	}else if(array == "vanilla")
	{

		document.images["vanilla"].src = vanilla[index].src ;

	}else if(array == "whatisgelato")
	{

		document.images["whatisgelato"].src = whatisgelato[index].src ;

	}

}







function newWindow(theurl,thewidth,theheight){

	newWin = window.open(theurl,'newWindow','width=' + thewidth + ',height=' + theheight + ',toolbar=no,location=no,scrollbars=yes,resizable=yes');

}




function photoWindow(Pic,Width,Height){

	newWin = window.open('viewPhoto.asp?' + Pic,'photoWindow','width=200,height=200,toolbar=no,location=no,scrollbars=yes')

}



