/*
Title: Utility Javascript
Author: designkitchen, inc.
*/
/*Event.observe(window, 'load', function() {
	
	
	
});

var subnav = Class.create({
		
});*/

function toggleShare(e) {
	if(document.getElementById("sharebox").style.display=="none") {
		e.className="sharedon";
		document.getElementById("sharebox").style.display="";
	}
	else {
		e.className="share";
		document.getElementById("sharebox").style.display="none";
	}
}

function toggleShareFooter(e) {
	if(document.getElementById("sharebox").style.display=="none") {
		e.className="sharedon";
		document.getElementById("sharebox").style.display="";
	}
	else {
		e.className="share";
		document.getElementById("sharebox").style.display="none";
	}
}

function toggleDiv(e) { 
    if( $(e).visible() ) 
        $(e).hide();
    else
        $(e).show();
}

function fbs_click() {
    u=location.href;
    t=document.title;
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
}




function gotofile(url) {
	document.location.href=url;
}


function toggleModuleForm(e) {
	Effect.BlindDown('moduleForm', { duration: .5 });
	document.getElementById("downloadNow").style.display="none";
	document.getElementById("moduleFormSubmit").style.display="";
}



