function imgswap(img_name, img_src)
   {
   document[img_name].src = img_src;
   }

function crossDomainURL(urlLink) {
        _gaq.push(function() {
        var tracker = _gaq._getAsyncTracker();  //add name param if needed
        crossURL = tracker._getLinkerUrl(urlLink)});

        return crossURL;
}
function openPlayerWindow(link) {
	if(navigator.platform=="iPhone" || navigator.platform=="iPod" || navigator.platform=="iPad") {
		location.href = 'http://www.jazz24.org/iphone.html';
	}
	else {
		window.open(crossDomainURL(link.href),'ppv5','height=530,width=800,menubar=no,scrollbars=no,toolbar=no,status=no,resizable=no');
	}      
	return false;
}

// http://htmldog.com/articles/suckerfish/dropdowns/
sfHover = function() {
var sfEls = document.getElementById("navbar").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
}

function removeElement()
{
var req=document.getElementById("request").selectedIndex;
if(req==0)
{
document.getElementById("audiodevicerow").style.display="none";
document.getElementById("audioplayerrow").style.display="";
document.getElementById("lastfunctionrow").style.display="";
}
else if(req==1)
{
document.getElementById("audiodevicerow").style.display="";
document.getElementById("audioplayerrow").style.display="none";
document.getElementById("lastfunctionrow").style.display="none";
}
else
{
document.getElementById("audiodevicerow").style.display="none";
document.getElementById("lastfunctionrow").style.display="none";
document.getElementById("audioplayerrow").style.display="none";
}
}
