function ExpandPanel(itemId)
{
	window.setTimeout("toggleSection('" + itemId + "')", 10);
}

function toggleSection(itemId) {
	//var arrowId = itemId.replace("Entry", "Icon");
	var item, arrow;
	
	if (document.all) {
		item = document.all[itemId];
		//arrow = document.all[arrowId];
	}
	
	if (!document.all && document.getElementById) {
		item = document.getElementById(itemId);
		//arrow = document.getElementById(arrowId);
	}
		
	if (item.style.display == "none") {
		//arrow.src = arrowUp.src;
		item.style.display = "inline";
	}
	else {
		//arrow.src = arrowDown.src;
		item.style.display = "none";		
	}
}

function PopupWindow(url, w, h, toolbar, status, menubar, scrollbars, resizeable) {
	//var w = 700
	//var h = 300
	//scrollbars = no | yes
	var lp = (screen.width) ? (screen.width-w)/2 : 0;
	var tp = (screen.height) ? (screen.height-h)/2 : 0;
	
	var win = window.open(url,'LVE_Popup','width='+w+',height='+h+',toolbar='+toolbar+',location=0,status='+status+',menubar='+menubar+',scrollbars='+scrollbars+',resizeable='+resizeable+',left='+lp+',top='+tp+' ');
	win.focus()
}

function menuOn(menuID)
{
    m = document.getElementById(menuID);
    m.style.cursor = "hand";
    m.style.background = "#808080";
    m.style.color = "#FFFFFF";
}
      
function menuOff(menuID)
{
    m = document.getElementById(menuID)
    m.style.color = "#3f3f3f";
    m.style.background = "none";
}

function subMenuOn(subMenuID, msgStatus)
{
    s = document.getElementById(subMenuID);
    s.style.cursor = "hand";
    s.style.background = "#808080";
    s.style.color = "#FFFFFF";
    
    showStatus(msgStatus);
}
      
function subMenuOff(subMenuID)
{
    s = document.getElementById(subMenuID)
    s.style.color = "#3f3f3f";
    s.style.background = "none";
    
    hideStatus();
}

function showSubMenu(subMenuID, x)
{    
    s = document.getElementById(subMenuID);
    s.style.left = 30 + 11 + (x*113);
    s.style.visibility = "visible";
}

function hideSubMenu(subMenuID)
{
    s = document.getElementById(subMenuID);
    s.style.visibility = "hidden";
}

function showStatus(msgStatus)
{
    window.status = msgStatus; // Show status message on browser
}

function hideStatus()
{
    window.status = ""; // Hide status message on browser
}

function redirectURL(url)
{
    self.location.href = url;
}

function openURL(url)
{
    var win = window.open(url, "LVE");
    win.focus();
}

function showCaption(caption, captionID)
{    
    i = document.getElementById(captionID);
    i.style.visibility = "visible";
    if (document.all) {
	    n=0; ie=1
	    i.innerHTML=caption;
    }
    if (document.layers) {
	    n=1;ie=0
	    i.document.write(caption);
    }
}

function hideCaption(captionID)
{
    caption = "Get as much as 40% discount on volume orders. Contact us to find out!";
    s = document.getElementById(captionID);
    s.style.visibility = "visible";
    if (document.all) {
        n = 0; ie = 1
        s.innerHTML = caption;
    }
    if (document.layers) {
        n = 1; ie = 0
        s.document.write(caption);
    }
}