﻿/* Eitido (c) 2009 - Norman Geiersbach - 06/26/2009 */
var selectedElement = null;
function isElementVisible(element) { if (typeof element == "string") element = document.getElementById(element); if (element != null) { return element.style.display != "none" } return false; }
function displayElement(element, mode) { if (typeof element == "string") element = document.getElementById(element); if (element != null) { if (mode == null) { if (element.style.display == "none") element.style.display = "block"; else element.style.display = "none"; } else element.style.display = mode; } return false; }
function hideElement(element) { return displayElement(element, "none"); }
function showElement(element) { return displayElement(element, "block"); }
function switchElement(element) { return displayElement(element, null); }
function selectElement(element) { if (selectedElement != null) hideElement(selectedElement); if (!isElementVisible(element)) { showElement(element); selectedElement = element; } }
function popupWindow(url) { window.open(url, "starbarksWindow", "width=840px,height=480px,resizable=yes,scrollbars=yes"); return false; }
function decodeEmail(at, dot) { var eAt = document.getElementById(at); if (eAt != null) eAt.innerHTML = "@"; var eDot = document.getElementById(dot); if (eDot != null) eDot.innerHTML = "."; }
function getWindowHeight() { var _de = document.documentElement; return window.innerHeight || self.innerHeight || (_de && _de.clientHeight) || document.body.clientHeight; }
