﻿function changeClass(browser) {
    if (browser != "IE") {
        var menu = document.getElementsByTagName("ul").item("2");
        if (menu != null) {
            if (menu.firstChild != null && menu.firstChild.nextSibling != null) {
                var topnodevalue = menu.firstChild.nextSibling.attributes.item(0).nodeValue;
                var bottomnodevalue = menu.lastChild.previousSibling.attributes.item(0).nodeValue;
                if (topnodevalue == "SubSelectedNode") {
                    topnodevalue = "SubSelectedTopNode";
                }
                else {
                    topnodevalue = "SubDefaultTopNode";
                }
                if (bottomnodevalue == "SubSelectedNode") {
                    bottomnodevalue = "SubSelectedBottomNode";
                }
                else {
                    bottomnodevalue = "SubDefaultBottomNode";
                }
                menu.firstChild.nextSibling.attributes.item(0).nodeValue = topnodevalue;
                menu.lastChild.previousSibling.attributes.item(0).nodeValue = bottomnodevalue;
            }
        }
    }
    else
    {
        var menu = document.getElementsByTagName("ul").item("2");
        if (menu != null) {
            if (menu.firstChild != null && menu.lastChild != null) {
                var topnodevalue = menu.firstChild.attributes.item(0).nodeValue;
                var bottomnodevalue = menu.lastChild.attributes.item(0).nodeValue;
                if (topnodevalue == "SubSelectedNode") {
                    topnodevalue = "SubSelectedTopNode";
                }
                else {
                    topnodevalue = "SubDefaultTopNode";
                }
                if (bottomnodevalue == "SubSelectedNode") {
                    bottomnodevalue = "SubSelectedBottomNode";
                }
                else {
                    bottomnodevalue = "SubDefaultBottomNode";
                }
                menu.firstChild.attributes.item(0).nodeValue = topnodevalue;
                menu.lastChild.attributes.item(0).nodeValue = bottomnodevalue;
            }
        }
    }
}
function MetaData(metaDataVerdi, tekstSomSkalVisesHvisDetErVerdi)
{
    
	if(metaDataVerdi != "")
		document.write(tekstSomSkalVisesHvisDetErVerdi);
}

