function menuOver(tmp){
	tmp.style.backgroundColor='#E15F13';
	}
function menuOut(tmp){
	tmp.style.backgroundColor='';
	}
	
function menuOver1(tmp){
	tmp.style.backgroundColor='#D1CCB6';
	}
function menuOut1(tmp){
	tmp.style.backgroundColor='';
	}
function menuOver2(tmp){
	tmp.style.backgroundColor='#402F2F';
	}
function menuOut2(tmp){
	tmp.style.backgroundColor='';
	}
function menuOver3(tmp){
	tmp.style.backgroundColor='#ABA68D';
	}
function menuOut3(tmp){
	tmp.style.backgroundColor='';
	}
function menuOver5(tmp){
	tmp.style.backgroundColor='#98887F';
	}
function menuOut5(tmp){
	tmp.style.backgroundColor='';
	}
	
	function menuOver4(tmp){
	tmp.style.backgroundColor='#A78B76';
	}
function menuOut4(tmp){
	tmp.style.backgroundColor='';
	}
	
function swapTab(obj, divider) {
 resetContent()
 var image = new Image();
 image.src = divider;
 document.getElementById(obj).style.display = 'inline';
 document.getElementById('newsDiv').src = image.src
}
function resetContent() {
 document.getElementById('news').style.display = 'none';
 document.getElementById('gear').style.display = 'none';
 document.getElementById('store').style.display = 'none';
}
function submitPoll(){
	var choice = false;
	var selection = 0;
	var radio = 0;
	var radioGroup = document.getElementsByName('inc_rightcol:Inc_poll1:reply');
	var currentPoll = document.getElementById('inc_rightcol_Inc_poll1_lblPID');
	var i = 0;
	for (i=0; i<radioGroup.length; i++){
		if (radioGroup[i].checked){
			//alert(i);
			choice = true;
			radio = i;
		}
	}
	if (!choice){
		alert('You must make a selection!');
		return;
	}else{
	//Run AJAX function
	selection = (radio + 1);
	//alert(selection);
	inc_poll.SubmitVote(currentPoll.innerText, selection, submitPoll_Callback);
}
}
function submitPoll_Callback(response){
	if (response.error != null){
		alert(response.error);
		return;
	}
	//alert(response.value);
	var url = '/polls/poll_result.aspx?pID=' + response.value;
	var newWindow = window.open(url, 'PollResults', 'width=468,height=450');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
}
	
function MM_openBrWindow2(winName,features, param) { //v2.0
		var strurl = "/Industry_Show.aspx?ID=" + param	
		window.open(strurl,winName,features);

}
function MM_openEmailWindow(urL) {
		var str_url = "/email.aspx?url=" + url;
		var str_op = 'width=618,height=575, scrollbars=No';
		window.open(str_url, "Test", str_op);
}
	
function MM_openBrWindowPoll(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
}

function openOutfitterBrWindow() { //v2.0
		window.open(document.getElementById("ddlOutfitters").options[document.getElementById("ddlOutfitters").selectedIndex].value);
}
function openProductBrWindow() { //v2.0
		window.open(document.getElementById("ddlProducts").options[document.getElementById("ddlProducts").selectedIndex].value);
}
//Custom rollover function. Pass object id and path to image.
function jsRollOver(id, img) {
	var image = new Image();
	image.src = img;
	document.getElementById(id).src = image.src
}
function jumpToAnchor(anchorName){
	document.location.hash = anchorName;
}
function noenter() {
return !(window.event && window.event.keyCode == 13); }

function toggleVisibility(id, toggle){
	if (toggle == "on") {
		document.getElementById(id).style.display = "inline";
	}else{
		document.getElementById(id).style.display = "none";
	}
}

function show(id, type) {
    var element = document.getElementById(id);
    if (type) {
        element.style.display = type;
    }else{
        element.style.display = "inline";
    }
}

function hide(id) {
    var element = document.getElementById(id);
    element.style.display = "none";
}