onerror = null

function CS(nam, val, pat) { // Cookie Setter
    var today = new Date()
    var expire = new Date()
    expire.setTime(today.getTime() + 1000*60*60*24*365)
    document.cookie = nam + "=" + escape(val) + "; path=/" + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) }

function CG(nam) { // Cookie Getter
    var search = nam + "="
    if (document.cookie.length > 0) {
        offset = document.cookie.indexOf(search)
        if (offset != -1) {
            offset += search.length
            end = document.cookie.indexOf(";", offset)
            if (end == -1) end = document.cookie.length
            return unescape(document.cookie.substring(offset, end)) } } }

function SS(sty, pag) { // Style Setter
    CS("4nr", sty)
    top.location = pag }

function SG(itm) { // Style Getter
    if (CG("4nr") == null) sty = "4eigner"
        else sty = CG("4nr")
    if (itm == "sty") document.write("<link rel='stylesheet' type='text/css' media='screen' href='../styles/" + sty + ".css' />")
    if (sty != "print" && sty != "frbp1l" && sty != "wll" && sty != "wibl")
        if (itm == "log") document.write("<img src='../styles/" + sty + "/logo.jpg' width='600' height='72' />") }

function MS(itm) { // Menu Setter
    if (CG("4nr") == null) sty = "4eigner"
        else sty = CG("4nr")
    if (sty != "print" && sty != "frbp1l" && sty != "wll" && sty != "wibl") {
        switch (itm) {
            case 1: itm = "thesite"; break
            case 2: itm = "thenews"; break
            case 3: itm = "theband"; break
            case 4: itm = "themusic"; break
            case 5: itm = "thefans"; break
            case 6: itm = "thelinks"; break }
        document.write("<img src='../shared/graphics/" + itm + ".jpg' width='120' height='42' border='0' class='m' />") } }

function IC(img) { // Image Changer
    if (document.title == "4eigner.net The Foreigner Website") dir = ""
    else dir = "../"
    document.frm.src = dir + "shared/graphics/" + img + ".jpg" }