// JavaScript Document

// imgPreload( '01.gif', '02.gif' ); 

function imgPreload() {
	 var args = imgPreload.arguments;
	 document.imageArray = new Array(args.length);
	 for(var i=0; i<args.length; i++) {
			document.imageArray[i] = new Image;
			document.imageArray[i].src = args[i];
	 }
}

function productRollover(sender) {
	var hotbox = document.getElementById('js-left-div');
	var message = document.getElementById('js-left-p');
    switch(sender) {
    case "seal":
		hotbox.style.backgroundImage = 'url(/images/product/seal.png)';
		hotbox.style.height = '279px';
		message.innerHTML = 'The <i>Monticello Sun</i><small>&trade;</small> identifies us and symbolizes our ingredients of grapes, casks, and time (Sun).';

        break;
    case "bottom":
		hotbox.style.backgroundImage = 'url(/images/product/bottle-bottom.jpg)';
		hotbox.style.height = '240px';
		message.innerHTML = 'Each bottle is uniquely dated and hand-numbered in sequence each year';
        break;
    case "turquoise":
		hotbox.style.backgroundImage = 'url(/images/product/turquoise.jpg)';
		hotbox.style.height = '299px';
        message.innerHTML = 'Our traditional balsamic from the American Southwest is celebrated with a native turquoise bead on each bottle';
        break; 
    case "spout":
		hotbox.style.backgroundImage = 'url(/images/product/spout.jpg)';
		hotbox.style.height = '294px';
        message.innerHTML = 'Our bottle\'s pour spout adds control in dripping our viscous balsamic';
        break; 
     case "drops":
		hotbox.style.backgroundImage = 'url(/images/product/drops.jpg)';
		hotbox.style.height = '249px';
        message.innerHTML = 'Finely balanced acidity and sweetness in a viscous consistency&mdash;with luminous depth of color';
        break;     
    }
}

function productRollout() {
	var hotbox = document.getElementById('js-left-div');
	var message = document.getElementById('js-left-p');
	hotbox.style.height = '380px'
	hotbox.style.backgroundImage = 'url(/images/organic-balsamic-gift-box-large.png)';
	message.innerHTML = '';
}

 function faqExpand(id){
    var id = document.getElementById(id);
    if (id.style.display == "none")
      id.style.display = "block";
    else
      id.style.display="none";
  }