// DETECT IE VERSION
var ie=0;
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
ie=new Number(RegExp.$1)} // capture x.x portion and store as a number


function Flash8(src,idname,width,height,bg) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + idname + '" align="top">');
document.write('<param name="movie" value="' + src + '" />');
document.write('<param name="menu" value="true" /><param name="salign" VALUE="lt" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="' + bg + '" />');
document.write('<param name="loop" value="true" />');
if(bg=="transparent"){
document.write('<param name="wmode" value="transparent" />');
} else {
document.write('<param name="bgcolor" value="' + bg + '" />');
}
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<embed src="' + src + '" menu="true" quality="high" swLiveConnect="true" ');
if(bg=="transparent"){
document.write('wmode="transparent" '); 
} else {
document.write('bgcolor="'+ bg +'" '); 
}
document.write('width="' + width + '" height="' + height + '" name="' + idname + '" id="' + idname + '" align="top" loop="false" salign="lt" type="application/x-shockwave-flash" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer">');
document.write('</embed>');
document.write('</object>');
};




// FADE IN SCRIPTS
var cA=.01;

function setOpacity(){
	var theContent=document.getElementById('content_faded');
	theContent.style.opacity=cA;
	if (theContent.filters){
		theContent.filters[0].Opacity=parseFloat(cA)*100;
	}
	if (cA<1){
	cA+=.1
	setTimeout('setOpacity()', 70);
	}
}


function fadeIn(){
 	if(document.getElementById('content_faded')){
	cA=.01;
	setOpacity();
	}
}


// GENERAL HIDING ELEMENTS 

function hide(elid){
	document.getElementById(elid).style.visibility="hidden";
	document.getElementById(elid).style.display="none";
}


function showBlock(elid){
	document.getElementById(elid).style.visibility="visible";
	document.getElementById(elid).style.display="block";
}


function showInline(elid){
	document.getElementById(elid).style.visibility="visible";
	document.getElementById(elid).style.display="inline";
}


function hideClass(cName){
var divs=document.getElementsByTagName('div');	
		for (i=0; i < divs.length; i++) {
			if (divs[i].className==cName){
			divs[i].style.visibility="hidden";
			divs[i].style.display="none";
			}
		}
}

function showClass(tag,cName,disp){
var tags=document.getElementsByTagName(tag);	
		for (i=0; i < tags.length; i++) {
			if (tags[i].className==cName){
			tags[i].style.visibility="visible";
			tags[i].style.display=disp;
			}
		}
}




startList = function() {
if (document.all && document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
  node = navRoot.childNodes[i];
  if (node.nodeName = "LI") {
  node.onmouseover=function() {
  this.className+=" over";
    }
  node.onmouseout=function() {
  this.className=this.className.replace
      (" over", "");
   }
   }
  }
 }
}



function loadBottles(){

var img1=new Image; img1.src="img/bottles/tx_steakhouse_marinade.png";

var img2=new Image; img2.src="img/bottles/original.png";

var img3=new Image; img3.src="img/bottles/pork_marinade.png";

var img4=new Image; img4.src="img/bottles/smokey_mesquite.png";

var img5=new Image; img5.src="img/bottles/spicy.png";

var img6=new Image; img6.src="img/bottles/hickory_bourbon.png";

var img7=new Image; img7.src="img/bottles/honey_pecan.png";

var img8=new Image; img8.src="img/bottles/mild.png";

var img9=new Image; img9.src="img/bottles/moppin_sauce.png";

var img10=new Image; img10.src="img/bottles/beef_marinade.png";

var img11=new Image; img11.src="img/bottles/chicken_marinade.png";

var img12=new Image; img12.src="img/bottles/bbq_rub.png";

var img13=new Image; img13.src="img/bottles/chile_lime_rub.png";

var img14=new Image; img14.src="img/bottles/herbal_mustard_rub.png";

var img15=new Image; img15.src="img/bottles/rosemary_ginger_rub.png";

var img16=new Image; img16.src="img/bottles/burger_rub.png";


}




