
// social sharing scripts
// compare these functions for how to open a new window vs. not
function shareFacebook() {
	location.href='http://www.facebook.com/sharer.php?u='+escape(document.location.href)+'&t='+escape(document.title)+' ';	
}

// thanks to
// http://www.purpleindigo.co.cc/2009/05/07/simply-share-to-twitter-with-just-a-bookmarklet/
function shareTwitter() {
	var r='http://twitter.com/home/?status='+encodeURIComponent(document.title+' - '+location.href+' ');
	if(!window.open(r)){location.href=r;}
}

function shareDelicious() {
	var r='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';
	if(!window.open(r)){location.href=r;}
}

function shareMyspace(T,C,U,L) {
// check out http://x.myspace.com/download/posttomyspacedeveloperdocumentation001.pdf
var r = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(T)
+ '&c=' + encodeURIComponent(C) + '&u=' + encodeURIComponent(U) + '&l=' + L;
window.open(r);
}


function processform() {
	jQuery('#orderform').submit();
	//document.forms.orderform.submit();
}
function showcart() {
	document.forms.showcart.submit();
}

