// JavaScript Document

function fnToggleMenu(theParent, onoff) {
	
	
	var kids = theParent.childNodes.length;
	for (var i=1; i<=kids; i++) {
		
		if(theParent.childNodes[i-1].tagName == "UL" && onoff == "on") {
			theParent.childNodes[i-1].className = 'blok';	
		} 
		
		if(theParent.childNodes[i-1].tagName == "UL" && onoff == "off") {
			theParent.childNodes[i-1].className = "xxx";
		}
		
		if(theParent.childNodes[i-1].tagName == "A" && onoff == "on") {
			theParent.childNodes[i-1].className = "stillhover";
		} 
		
		if(theParent.childNodes[i-1].tagName == "A" && onoff == "off") {
			theParent.childNodes[i-1].className = "yyy";
		}
		
	}
	
}
function fnChangeExtendNav(id){
    // elemento clicado
    var el = document.getElementById(id);
    (el.style.display=="block")?el.style.display="none":el.style.display="block";
    if(id=="sharewith"){
        fnChangeVisible("email","Off");
        fnChangeVisible("tellus","Off");
        
    }else if(id=="tellus"){
       // fnChangeVisible("tellus","On");
        fnChangeVisible("sharewith","Off");
        fnChangeVisible("email","Off");
    }else{
        fnChangeVisible("tellus","Off");
        fnChangeVisible("sharewith","Off");
    }
    
}
function fnChangeVisible(id,visible){
    var el = document.getElementById(id);
    (visible=="On")?el.style.display="block":el.style.display="none";
}

function openTransferPage(link){
    window.open("/TransferPageShare.aspx?go="+link, "", "height = 420, width = 780, scrollbars = yes, status = yes, menubar=yes, resizable = yes");
}
