// share.js

function shareFacebook(url, title) {
	window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(url)+"&t="+encodeURIComponent(title),"sharer","toolbar=0,location=0,status=0,width=626,height=436");
	return false;
}

function twit_click() {
	window.open("http://twitter.com/home?status=http://protegemvp.com ProtegeMVP presents practically priced footwear and apparel.","twittershare","toolbar=0,location=0,status=0,width=800,height=400");
}

function shareMySpace(url, title, content) {
	var location = "3"
    window.open("http://www.myspace.com/index.cfm?fuseaction=postto&"+"t="+encodeURIComponent(title)+"&c="+encodeURIComponent(content)+"&u="+encodeURIComponent(url)+"&l="+location,"Post To MySpace","toolbar=0,location=0,status=0,width=626,height=436");
	return false;
}

function shareDelicious(url, title) {
	window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(url)+'&amp;title='+encodeURIComponent(title), 'delicious','toolbar=no,width=550,height=550');
	return false;
}

function shareDigg(url, title) {
	description = "ProtegeMVP presents the new line of basketball shoes.  Protege has built a unique collection of practically priced, high quality footwear and apparel. ProtegeMVP is available exclusively at Kmart and Kmart.com";
	window.open("http://digg.com/submit?url="+encodeURIComponent("http://protegemvp.com")+"&title="+encodeURIComponent(title)+"&bodytext="+encodeURIComponent(description)+"&media=video&topic=arts_culture","Submit To Digg","scrollbars=1,toolbar=0,location=0,status=0,width=1260,height=715");
	return false;
}

function digg_click() {
	lct = "http%3A//protegemvp.com";
	window.open("http://digg.com/submit?url="+lct,"diggshare");
}


function share(page, site, description) {

	var url = "http://protegemvp.com/";
	//var url = "http://www.indelible.tv/dev/Protege/";
	var title = "ProtegeMVP";

	if ( site == 'facebook' )
		shareFacebook(url, title)
	if ( site == 'myspace' )
		shareMySpace(url, title, description)
	if ( site == 'digg' )
		shareDigg(url, title, description)
	if ( site == 'delicious' )
		shareDelicious(url, title)
}