var c = 'menu';

function hide(e) {
    document.getElementById(e).style.display = 'none';
}

function show(e) {
	ie6  = (navigator.userAgent.toLowerCase().indexOf("msie") && document.all && navigator.userAgent.toLowerCase().indexOf("netscape") == -1);
	if(ie6){
		document.getElementById(e).style.display = 'inline';
	}else{
		document.getElementById(e).style.display = 'table';
	}
}

function labelMenu() {
    document.getElementById('scribo_container_current_title').innerHTML = 'Plan        &amp; Pricing Chart<br /><br /><a href="javascript:menu()">Feature List</a>';
}

function labelSignup() {
    document.getElementById('scribo_container_current_title').innerHTML = 
        'Sign Up<br /><br /><a href="javascript:menu()">Feature List</a>';
}


function swapDisplay(n) {
	ie6  = (navigator.userAgent.toLowerCase().indexOf("msie") && document.all && navigator.userAgent.toLowerCase().indexOf("netscape") == -1);
	if(ie6){
		hide(c);
		show(n);
	}else{
		var fade = new Spry.Effect.Fade(n, {toggle:false,setup:hide(c),finsh:show(n)});
		fade.start();
	}
}

function menu() {
	swapDisplay('menu');
    labelMenu();
    c = 'menu';
}

function form(id) {
	swapDisplay(id);
    labelSignup();
    c = id;
}

function basic() { form('form_basic'); c = 'form_basic'; }
function pro() { form('form_pro'); c = 'form_pro'; }
function premium() { form('form_premium'); c = 'form_premium'; }
