
function RevealAnchor() {
	urlarr = location.href.split("#");
	if(urlarr.length > 1) {
		if(urlarr[1].length>5) {
			Switch(urlarr[1].substring(5));
			Switch("abstract_"+urlarr[1].substring(5));
		}
	}
}



function Switch(id) {

	elem = document.getElementById(id);
	if(elem!=null) {
		if(elem.style.display == 'none') {
			Effect.BlindDown(id, {duration:0.4});
		} else {
			Effect.BlindUp(id, {duration:0.4});
		}
	}


}


function SwitchFigure(id) {

	elem = document.getElementById(id + 'full');
    minielem = document.getElementById(id + 'mini');
    
	if(elem!=null && minielem != null) {
		if(elem.style.display == 'none') {
            
            Effect.BlindUp(id + 'mini', {duration:0.4});
			Effect.BlindDown(id + 'full', {duration:0.4});
		} else {
			Effect.BlindUp(id + 'full', {duration:0.4});
            Effect.BlindDown(id + 'mini', {duration:0.4});
		}
	}
    
}


function Shade(id) {

	elem = document.getElementById(id);
	if(elem != null) elem.style.backgroundColor = "#f8f8f8";


}

function UnShade(id) {

	elem = document.getElementById(id);
	if(elem != null) elem.style.backgroundColor = "#ffffff";


}

