function HideMsg(){
	document.getElementById('msg').style.display='none';
}
setTimeout("HideMsg();",5000);

function digg_click(){                   
    var u=location.href;
    var t=document.title;
    var url= encodeURIComponent(u)
    var title= encodeURIComponent(t)
    window.open("http://digg.com/submit?url="+url+"&title="+title+"&bodytext='stream file'&media='video'&topic="+title);             
}



function del_click(){
	var u=location.href;
	var t=document.title;
	var url= encodeURIComponent(u);
	var title= encodeURIComponent(t);                  
	window.open("http://del.icio.us/post?v=3&noui=yes&jump=close&url="+url+ "&title="+ title);
}

function red_click(){
	var u=location.href;
	var t=document.title;
	var url= encodeURIComponent(u);
	var title= encodeURIComponent(t);
                  
	window.open("http://www.reddit.com/submit?url="+url+ "&title="+ title);

}

function stumb_click(){
	var u=location.href;
	var t=document.title;
	var url= encodeURIComponent(u);
	var title= encodeURIComponent(t);
                  
	window.open("http://www.stumbleupon.com/submit?url="+url+ "&title="+ title);
}

function fbs_click(){
	u=location.href;
	t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&amp;t='+encodeURIComponent(t));
}

function lin(ln){
	window.location=ln;
}

function post_dig_withData(title, content, pg_id){                   
    var u=location.href;
    var t=document.title;
    var url= encodeURIComponent(u)+'?pg_id='+pg_id;
    var title= title;
	var body_text = content;
    window.open("http://digg.com/submit?url="+url+"&title="+title+"&bodytext="+body_text+"&media='video'&topic="+title);             
}

function post_del_withData(title, pg_id){
	var u=location.href;
	var t=document.title;
	var url= encodeURIComponent(u)+'?pg_id='+pg_id;
	//var title= encodeURIComponent(t);  
	var title = title;
	window.open("http://del.icio.us/post?v=3&noui=yes&jump=close&url="+url+ "&title="+ title);
}

function post_red_withData(title, pg_id){
	var u=location.href;
	var t=document.title;
	var url= encodeURIComponent(u);
	//var title= encodeURIComponent(t);  
	var title = title;
                  
	window.open("http://www.reddit.com/submit?url="+url+ "&title="+ title);

}

function post_stumb_withData(title, pg_id){
	var u=location.href;
	var t=document.title;
	var url= encodeURIComponent(u);
	//var title= encodeURIComponent(t);  
	var title = title;
                  
	window.open("http://www.stumbleupon.com/submit?url="+url+ "&title="+ title);
}


function openNewWindow(url){
	window.open(url);
}


