/*
Title: Utility Javascript
Author: designkitchen, inc.
*/

function $(x) {
 return document.getElementById(x);
}

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 gotofile(url) {
	document.location.href=url;
}

function flashEmbed() {
	if($("heardifference")){
		var flashvars = {};
		flashvars.rss = "http://www.papertower.com/clients/moto/feed/hearthedifference/";
		var params = {};
		params.bgcolor = "#000000";
		var attributes = {};
		swfobject.embedSWF("http://www.papertower.com/clients/moto/wp-content/themes/mototrbo/swf/hear-the-difference.swf", "heardifference", "660", "366", "9.0.0", false, flashvars, params, attributes);
	}
	
}