//  hide show elements

function show(id) {
	document.getElementById(id).style.display = 'block';
}

function hide(id) {
	document.getElementById(id).style.display = 'none';
}			


// slidehow

currentIndx=0;
MyImages=new Array();

MyImages[0]='http://mossdev.gevalia.com/LP/images/Iced/tips_rest.gif';

MyImages[1]='http://mossdev.gevalia.com/LP/images/Iced/tips1.gif';

MyImages[2]='http://mossdev.gevalia.com/LP/images/Iced/tips2.gif';

MyImages[3]='http://mossdev.gevalia.com/LP/images/Iced/tips3.gif';

MyImages[4]='http://mossdev.gevalia.com/LP/images/Iced/tips4.gif';


imagesPreloaded = new Array(5)

for (var i = 0; i < MyImages.length; i++)

{

imagesPreloaded[i] = new Image(326,55)

imagesPreloaded[i].src=MyImages[i]

}

function Next(){
	if (currentIndx<imagesPreloaded.length-1){
	currentIndx=currentIndx+1;
	document.theImage.src=imagesPreloaded[currentIndx].src
	}

else {
	currentIndx=0
	document.theImage.src=imagesPreloaded[currentIndx].src
	}

}

function Back(){
	if (currentIndx>0){
	currentIndx=currentIndx-1;
	document.theImage.src=imagesPreloaded[currentIndx].src
	}

else {
	currentIndx=4
	document.theImage.src=imagesPreloaded[currentIndx].src
	}
}

//rollovers

function newImage(imgSrc){

	var imgName = new Image();
	imgName.src = imgSrc;
	
	return imgName;

}

function change(imgName, imgLocation) {
	document[imgName].src = imgLocation ;
}

var preloadFlag = false;

function loadImages() {
	if (document.images) {
		cta = newImage("/LP/images/Iced/cta_just14.95_over.gif");
		prev = newImage("/LP/images/Iced/prev_over.gif");
		next = newImage("/LP/images/Iced/next_over.gif");
		print = newImage("/LP/images/Iced/print_over.gif");
		
		benefit1 = newImage("/LP/images/Iced/benefit1_over.gif");
		benefit2 = newImage("/LP/images/Iced/benefit2_over.gif");
		benefit3 = newImage("/LP/images/Iced/benefit3_over.gif");

	preloadFlag = true;
	}
}
// pop up


function popUp(url) {

	newwindow=window.open(url,'name','scrollbars=0,height=450,width=450');
	if (window.focus) {newwindow.resizeTo(450,450);newwindow.focus();}
	return false;
}

function popUpLink(url) {

	newwindow=window.open(url,'name','scrollbars=0,height=350,width=664');
	if (window.focus) {newwindow.resizeTo(664,350);newwindow.focus();}
	return false;
}

// print
/*function print() {
  window.print();  */