<!--

// Scripts relacionados con las redes sociales


function BotonTwitter()
{
   // Script button Twitter
   document.write('<div id="Twiter" style="height:35px;float:left;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>');
}

function BotonFacebook()
{
   // Script Like button Facebook
   if (getActiveStyleSheet() == "spanish_version") 
	   document.write('<div id="facebook" style="float:left;"><script src="http://connect.facebook.net/es_ES/all.js#xfbml=1"></script><fb:like show_faces="false" width="450" colorscheme="dark"></fb:like></div>');
   else
	   document.write('<div id="facebook" style="float:left;"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like show_faces="false" width="450" colorscheme="dark"></fb:like></div>');

   // document.write('<div id="facebook" style="float:left;"><iframe src="http://www.facebook.com/plugins/like.php?href='+location.href+'&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe></div>');
}

function BotonFacebookLight()
{
   // Script Like button Facebook
   if (getActiveStyleSheet() == "spanish_version") 
	   document.write('<script src="http://connect.facebook.net/es_ES/all.js#xfbml=1"></script><fb:like-box show_faces="false" stream="false" header="false" width="160" colorscheme="dark" ></fb:like-box>');
   else
	   document.write('<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box show_faces="false" stream="false" header="false" width="160" colorscheme="dark" ></fb:like-box>');

   // document.write('<div id="facebook" style="float:left;"><iframe src="http://www.facebook.com/plugins/like.php?href='+location.href+'&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe></div>');
}

function BotonTuenti() 
{
   // Script Like button Tuenti
   if (getActiveStyleSheet() == "spanish_version") 
	   document.write('<div id="tuenti" style="width:110px;float:left;"><script type="text/javascript" src="http://widgets.tuenti.com/widgets.js"></script><script type="text/javascript">tuenti.widget.shareButton("tuenti_share")</script><a href="http://www.tuenti.com/share" id="tuenti_share"></a></div>');
   
}


function MostrarBotonesSociales()
{
	BotonTwitter();
	BotonTuenti();
	BotonFacebook();
}


function OcultarDiv(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] : document.getElementById ?  document.getElementById(szDivID).style : document.all[szDivID].style;
   obj.visibility = document.layers ? (iState ? "show" : "hide") : (iState ? "visible" : "hidden");
}

function OcultarInfoSiIPad()
{
  ua=navigator.userAgent.toLowerCase();
  // alert(ua);
  if(ua.indexOf("ipad")>=0||ua.indexOf("iphone")>=0||ua.indexOf("ipod")>=0)
  {
	OcultarDiv("PubliGoogleSuperior", 0);
	OcultarDiv("PubliGoogleInferior", 0);
	OcultarDiv("Botonessociales", 0);
  }
}


//-->



