// JavaScript Document

//-----------------NAV ROLLOVER FUNCTIONS ---------------------//
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

//-----------------NAV ROLLOVER FUNCTIONS END ---------------------//

function swapImage(image){
		if(image==1){
			document.mainImage.src = "images/tools/wineKey.png";
			document.getElementById("text").innerHTML="A must have in every home! It's useful for opening wine and beer (I suppose you could even pop open a soda). Quality is important of course, so buy a wine key similar to the one displayed here from a reputable source. It's quick and easy to use and the best part is that it doesn't require a phenomenal amount of strength to pop that wine cork out!<br/><br/> To open a beer <br/> 1. Open the keys shortest side <br/> 2. Line the beer up in the hook of the key <br/> 3. Base the key off of the bottle and pull up to pop off the lid <br/><br/>To open wine <br/> 1. Open the small knife <br/> 2. Remove the top of the foil by cutting around the top lip of the wine bottle <br/> 3. Close the knife and open up the corkscrew <br/> 4. Twist the corkscrew into the cork of the wine almost to the bottom of the corkscrew <br/> 5. Place the top edge of the bottle opener end (there's a little protruding edge) onto the lip of the wine bottle to use as leverage and pull the handle up to pop out the cork<br/><br/>";
			//<a href = 'video/beautyConspiracy.html'>Click to launch</a>";
		}
		if(image == 2){
			document.mainImage.src = "images/tools/shakerSet.png";
			document.getElementById("text").innerHTML="Here is your first real professional tool that'll make you feel like a bartender, your shaker. You won't use this for every drink, but it is nice to use to chill shots and to mix cocktails (and it even doubles as an ice scoop!). <br/>Watch out! <br/>Make sure to only scoop the ice with the metal portion of the shaker, you don't want to break your pint glass.<br/>How to mix a drink:<br/>1. Take the metal half of your shaker and fill half way with ice<br/>2.Pour in your drink mixture <br/>3. Place your pint glass into your shaker. The glass will naturally hug one side of the shaker, this is good. Make sure the pint glass is securely in place on the shaker<br/>4. Shake your drink (eventually you'll develop a style with this, just check out your local bartender). Keep one hand over the break between the pint glass and the shaker. For a nice style, shake with one hand near your shoulder.<br/>5. Popping the pint glass out of the shaker. Now this is a fun step! There are many techniques to accomplish this, but the best one I've found is to hit the side of the shaker away from the side where the pint glass is hugging. You want to make a knife edge with your hand and hit with the edge of your palm. <br/>Pour your drink and enjoy! <br/><br/> Description Click tab 3 to learn how to strain your drink  <br/><br/>";
			//<a href = 'video/flirt.html'>Click to launch</a>";
		}
		if(image == 3){
			document.mainImage.src = "images/tools/strainer.png";
			document.getElementById("text").innerHTML="Now that you've learned how to shake a drink lets learn how to pour it. You can either pour from your shaker or your pint glass, it all depends on personal preference.<br/><br/> 1.Place the strainer over the top of either your pint glass or shaker, spring side down <br/>2 . Hold the glass with one finger holding the strainer in place, and pout into the correct glassware (see the section on glassware)  <br/><br/>";
			//<a href = 'video/kinetictype.html'>Click to launch</a>";
		}
	}
function swapImageG(image){
		if(image==1){
			document.mainImage.src = "images/glasses/martini.png";
			document.getElementById("text").innerHTML="The martini glass is probably the most classic staple in bartending. This is used for drinks served \"up\". The term \"up\" refers to up in the air, as with the martini glass, it has a tall stem, so up from the table (and with no ice in the glass). Usually shaken drinks are poured into a martini glass. Examples include the classic martin, the cosmopolitan,  and the lemon drop, just to name a few.<br/><br/>Here's a nice tip. Put ice into the glasses before serving so that the glasses are chilled (make sure to discard the ice before pouring the drink through the strainer). It adds that little extra to your drink.  <br/><br/>";
			//<a href = 'video/beautyConspiracy.html'>Click here to view recipes for martini glassware</a>";
		}
		if(image == 2){
			document.mainImage.src = "images/glasses/rocks_glass.png";
			document.getElementById("text").innerHTML="The Old-Fashioned glass, rocks glass, or \"lowball\" is a short tumbler used for serving liquor \"on the rocks\", meaning over ice, or cocktails having few ingredients. It is named after the Old fashioned cocktail, traditionally served in such a glass.<br/><br/>";
			//<a href = 'video/flirt.html'>Click here to view recipes for Rocks glassware</a>";
		}
		if(image == 3){
			document.mainImage.src = "images/glasses/highBall.png";
			document.getElementById("text").innerHTML="The highball glass is used when serving drinks that consist of more then one liquor and mixer (they're larger and won't fit into a Rocks glass), for example a long island ice tea, a bloody mary or a Lynchburg lemonade.    <br/><br/>";
			//<a href = 'video/kinetictype.html'>Click here to view recipes for highball glassware</a>";
		}
		if(image == 4){
			document.mainImage.src = "images/glasses/pint.png";
			document.getElementById("text").innerHTML="Pint glasses usually come with your shaker set. A pint glass is used both for your shaker set and to serve beer. If you are serving a beer group, pint glasses are always nice to have around.   <br/><br/>";
			//<a href = 'video/poetry.html'>Click to launch</a>";
		}
		if(image == 5){
			document.mainImage.src = "images/glasses/shot.png";
			document.getElementById("text").innerHTML="And last but not least, the shot glass. Shot glasses are nice to have around. If you are planning on having one, you probably should at least have four. It's amazing how many people will join in when the shots come out. Shot glasses are great for beginning bartenders because they give you a feel for how much you should pour into a drink (1.5 ounces is a \"standard\" pour or jigger). Usually drinks are served with 1.5 oz of alcohol (this varies widely by cocktail though), the usual measurement for a shot glass. There are also double shot glasses, which tend to be tall and slender, or wider around, allowing for 2 oz of alcohol and \"pony\" shot glasses that hold 1 oz.   <br/><br/> Helpful Tip<br/>Once your comfortable pouring a shot into a shot glass, start to count how long it takes. Use that same count and pour into your glassware, which should give you a reasonably accurate \"standard\" pour. The count is usually four.<br/><br/>";
			//<a href = 'video/poetry.html'>Click to launch</a>";
		}
	}
function swapImageL(image){
		if(image==1){
			document.mainImage.src = "images/liquors/tequila.png";
			document.getElementById("text").innerHTML="Tequila comes from the distillation of the blue agave cactus that grows in the town of Tequila, in the state of Jalisco, Mexico. Tequila has a very distinctive taste, this is why it is primary a shooting or sipping sprit. It is used in a few special mixed drinks like the margarita and the tequila sunrise.";
			//<a href = 'video/beautyConspiracy.html'>Click on the link below to view recipes using tequila</a>";
		}
		if(image == 2){
			document.mainImage.src = "images/liquors/vodka.png";
			document.getElementById("text").innerHTML="Vodka is a distilled beverage. It is a clear liquid which consists of mostly water and ethanol, purified by distillation - often multiple distillations - from a fermented substance, such grain (mostly rye or wheat), potatoes or sugar beet molasses, and an insignificant amount of other substances such as flavorings or unintended impurities. The more times the vodka is distilled, the more \"pure\" it will be. Normally vodka has an alcohol content between 35\% and 50\% by volume.<br/>This is a great liquor to mix with because it is virtually tasteless. It is used in many drinks such as  a cape cod, more commonly known as a vodka cranberry or the vodka martini. It is also used in the oh so famous cosmopolitan (or cosmo).  <br/><br/>";
			//<a href = 'video/flirt.html'>Click on the link below to view recipes using Vodka</a>";
		}
		if(image == 3){
			document.mainImage.src = "images/liquors/gin.png";
			document.getElementById("text").innerHTML="Gin is a spirit flavored with juniper berries. Distilled gin is made by redistilling white grain spirit and raw cane sugar, which has been flavored with juniper berries. Gin has a very distinctive taste and aroma. The taste is more of an herbal flavor, very different from vodka.";
			//<a href = 'video/poetry.html'>Click on the link below to view recipes using gin</a>";
		}
		if(image == 4){
			document.mainImage.src = "images/liquors/whisky.png";
			document.getElementById("text").innerHTML="Whisky (or whiskey) refers to a broad category of distilled beverages that are distilled from fermented grain mash and aged in wooden casks (generally oak). Different grains are used for different varieties, including barley, malted barley, rye, malted rye, wheat, and maize (corn). Whisky is more of a sipping dink. It is used in some mixed drinks like Jack and Coke or the four horsemen.";
			//<a href = 'video/kinetictype.html'>Click on the link below to view recipes using whisky</a>";
		}
		if(image == 5){
			document.mainImage.src = "images/liquors/tripleSec.png";
			document.getElementById("text").innerHTML="Triple sec is an orange-flavored liqueur. It is widely used in mixed drinks and recipes as a sweetening and flavoring agent. Better-quality brands are made from brandy or Cognac and are often sipped alone, typically as a digestive. It is used for drinks such as a margarita, cosmopolitan, long island ice tea and many others";
			//<a href = 'video/poetry.html'>Click on  the link below to view recipes including triple sec</a>";
		}
	}
function swapImageM(image){
		if(image==1){
			document.mainImage.src = "images/mixers/juicesMontage.png";
			document.getElementById("text").innerHTML="For basic drinks you need Orange juice, Cranberry juice and Pineapple juice. You can mix almost any clear alcohol with these juices and make a fabulous mixed drink.<br/><br/>Orange juice is used in drinks like the screwdriver, which is just vodka and orange juice, as well as the tequila sunrise, which is tequila, oj and grenadine. <br/><br/>Cranberry juice is used classically in two drinks, the vodka/cranberry (cape cod) and the cosmopolitan. <br/><br/>Pineapple juice is often used with rum. Adding pineapple juice to a nice aged rum is a perfect drink for someone who doesn't quite like the taste of alcohol. <br/><br/>";
			//<a href = 'video/beautyConspiracy.html'>Click on the link below to view recipes using juices</a>";
		}
		if(image == 2){
			document.mainImage.src = "images/mixers/sodaMontage.png";
			document.getElementById("text").innerHTML="There are five basic sodas, Coke, Diet-Coke, Sprite, Club Soda and Tonic. You can substitute Pepsi or 7-up, or some other similar product for your liking. These drinks are usually mixed with one liquor to create a nice simple drink, for example a Jack and Coke,  vodka tonic, gin and tonic or a 7 and 7. All of these classic drinks are just a liquor and bubbly product to match your taste. <br/><br/>";
			//<a href = 'video/flirt.html'>Click on the link below to view recipes using sodas</a>";
		}
		if(image == 3){
			document.mainImage.src = "images/mixers/extrasMontage.png";
			document.getElementById("text").innerHTML="We have included a section that is your next step on your way to bartending excellence. Anyone can pour straight juce and liquor, or soda and a mixer, but with these added ingredients you can make your drinks much better. We suggest sweet and sour, simple syrup and dry vermouth<br/><br/>Sweet and sour is probably the most widely used mixer. It is made from approximately equal parts lemon and/or lime juice and simple syrup then shaken vigorously with ice.<br/><br/>Simple syrup is made by stirring granulated sugar into hot water in a saucepan until the sugar is dissolved, and then cooling the solution. Generally, a ratio of two parts sugar to one part water is used. It is used as a sweetener in cocktails and fancier mixed drinks. <br/><br/>Dry vermouth is a fortified wine flavored with aromatic herbs and spices. It is used when making martinis and only a dash is necessary in your drinks.  <br/><br/>";
			//<a href = 'video/kinetictype.html'>Click on the link below to view recipes using these special extras</a>";
		}
		
	}
function swapImageGW(image){
		if(image==1){
			document.mainImage.src = "images/drinks2.jpg";
			document.getElementById("text").innerHTML="Drink name: <br /><p>Screwderiver </p> <br />Glassware: <br />Rocks Glass<br/> <br /> Ingredients:<br/> 1oz Vodka<br/> <br/><br/>Fill:<br/>Orange  juice<br /><br /> ";
			//<a href = 'video/beautyConspiracy.html'>Click on the link below to view recipes using juices</a>";
		}
		if(image == 2){
			document.mainImage.src = "images/drinks2.jpg";
			document.getElementById("text").innerHTML="Drink name: <br /><p>Madras </p> <br />Glassware: <br />Rocks Glass<br/> <br /> Ingredients:<br/> 1oz Vodka<br/> <br/><br/>Fill:<br/>Orange, cranberry  juice<br /><br /> ";
			//<a href = 'video/flirt.html'>Click on the link below to view recipes using sodas</a>";
		}
		if(image == 3){
			document.mainImage.src = "images/drinks2.jpg";
			document.getElementById("text").innerHTML="<p>Drink name: <br /><p>7 and 7 </p> <br />Glassware: <br />Rocks Glass<br/> <br /> Ingredients:<br/> 1oz Seagram's 7 whisky<br/><br/><br/>Fill:<br/>7-Up<br /><br />";
			//<a href = 'video/kinetictype.html'>Click on the link below to view recipes using these special extras</a>";
		}
		if(image == 4){
			document.mainImage.src = "images/drinks2.jpg";
			document.getElementById("text").innerHTML="<p>Drink name: <br /><p>Raging Bull </p> <br />Glassware: <br />Rocks Glass<br/> <br /> Ingredients:<br/> 1oz Vodka<br/><br/><br/>Fill:<br/>Red Bull<br /><br /> ";
			//<a href = 'video/kinetictype.html'>Click on the link below to view recipes using these special extras</a>";
		}
		if(image == 5){
			document.mainImage.src = "images/drinks2.jpg";
			document.getElementById("text").innerHTML="<p>Drink name: <br /><p>Cuba Libre </p> <br />Glassware: <br />Rocks Glass<br/> <br /> Ingredients:<br/> 1oz Rum<br/><br/><br/>Fill:<br/>Coke<br /><br /> ";
			//<a href = 'video/kinetictype.html'>Click on the link below to view recipes using these special extras</a>";
		}
	}
