
if(document.getElementById("registration_content")){
    document.getElementById("registration_content").getElementsByTagName('img')[0].src = '/resources/minisites/virtualtraining/pristiq/img/register-button.gif';    
};

function showToggle(id,img)
{
  var element=document.getElementById(id);
  var img = document.getElementById(img);
  
  if(element.style.display=="none"){
    element.style.display="block"
    img.src = "/resources/minisites/virtualtraining/pristiq/img/close-bio.png"
  } else {
    element.style.display="none"
    img.src = "/resources/minisites/virtualtraining/pristiq/img/view-bio.png"
  }
}


window.addEvent('load', function() {
   if(document.getElementById("product")) 
   {
   var productBox1= document.getElementById("product");
      if(productBox1.options[productBox1.selectedIndex].value == 0)
      {
          var productBox1= document.getElementById("product");
          for(i=0;i<productBox1.length;i++)
          {
            if(productBox1.options[i].text == 'Pristiq')
            {
                productBox1.selectedIndex = i;
                break;
            }
          }
      }
   }
});

window.addEvent('domready',function() {
$$('a[href^=javascript:logoff()]').setProperty('href','javascript:pristiqLogOff()') ;
});

//Logoff scripts
    function pristiqLogOff()
    {
        var date = new Date();
        var random  = ''+date.getDate()+date.getHours()+''+date.getMinutes()+''+date.getSeconds();
        new Ajax('/irj/servlet/prt/portal/prtroot/com.wyeth.security.auth.HCPLogoff?var='+random, {
            method: 'get',
            onComplete: function(){
            var response = this.response.text;    
            document.location.href='/hcp/pristiq';
        }
        }).request();
    }

//Action Tags for Literature Request
if(document.location.href.indexOf('/hcp/pristiq/literature') > 0) {
    document.write('<s'+'cript language="JavaScript" src="http://view.atdmt.com/jaction/PRQ_20090304_HCP_LiteratureRequestPage"></s'+'cript>');
}

window.addEvent('domready', function() {
$('hcpFooterJobNumber').innerHTML='260409-01'
});