// JavaScript Document
function mostrar_div(id){
 var valor= document.getElementById(id).style.display;
 if(valor== 'none'){
  div = document.getElementById(id);
  div.style.display= '';
 }
 else{
  ocultar_div(id);
 }
}
function ocultar_div(id){
 	div = document.getElementById(id);
 	div.style.display= 'none';
	mostrar_div('contenedor_flash2');
}
function ocultar_div2(id){
 	div = document.getElementById(id);
 	div.style.display= 'none';
}

function sendToHandler(tp,url,titulo) {
 if (tp== "facebook") {
  window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent( url ) + '&t=' + encodeURIComponent( titulo ), 'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "myspace") {
  window.open('http://www.myspace.com/index.cfm?fuseaction=postto&t=' + encodeURIComponent(titulo)+ '&c=&u=' + encodeURIComponent(url) + '&l=','sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "digg") {
  window.open('http://www.digg.com/submit?phase=2&url=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "delicious") {
  window.open('http://del.icio.us/post?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(titulo),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "furl"){
  window.open('http://furl.net/storeIt.jsp?u=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "yahoo"){
  window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "StumbleUpon"){
  window.open('http://www.stumbleupon.com/submit?url=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "google"){
  window.open('http://www.google.com/bookmarks/mark?op=edit&bkmk=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "Technorati"){
  window.open('http://technorati.com/faves?add=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "BlinkList"){
  window.open('http://blinklist.com/index.php?Action=Blink/addblink.php&Url=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "Newsvine"){
  window.open('http://www.newsvine.com/_wine/save?u=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "ma.gnolia"){
  window.open('http://ma.gnolia.com/bookmarklet/add?url=' + encodeURIComponent(url),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "reddit") {
  window.open('http://www.reddit.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(titulo),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
 if (tp== "Tailrank") {
  window.open('http://tailrank.com/share/?link_href=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(titulo),'sharer', 'toolbar=0,status=1,width=600,height=400,menubar=1,resizable=1,scrollbars=1');
 }
}