// Needed for Google Plus
gapi.plusone.go();

function socialmedia_mouseover(){
  var el;   
  var url;
  var website;
  var websiteFaceBookLink;

  website = 'www.dxengineering.com';
  websiteFaceBookLink = 'http://www.facebook.com/pages/DX-Engineering/148251191937760?sk=app_201143516562748';
  
  url = '<iframe src="//www.facebook.com/plugins/like.php?href=' + websiteFaceBookLink + '&amp;send=false&amp;layout=button_count&amp;width=10&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:48px; height:24px;" allowTransparency="true"></iframe>';
// enable to show count  url = '<iframe src="//www.facebook.com/plugins/like.php?href=www.dxengineering.com&amp;send=false&amp;layout=button_count&amp;width=10&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:24px;" allowTransparency="true"></iframe>';
  el = document.getElementById("facebook_like");
  if (el.style.visibility == "hidden") {
    el.style.visibility = "visible";
    el = document.getElementById("twitter_follow"); el.style.visibility = "visible";
    el = document.getElementById("google_plusone"); el.style.visibility = "visible";
  } else { 
    el.style.visibility = "visible"; 
    el.innerHTML = url;
    /* Twitter */
    url = '<iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/follow_button.html?screen_name=DXEngineering" style="width:61px; height:24px;"></iframe>';
    el = document.getElementById("twitter_follow"); el.style.visibility = "visible"; el.innerHTML = url;
    /* Google Plus One */
    url = '<iframe allowtransparency="true" hspace="0" id="I1_1320089969219" marginheight="0" marginwidth="0" name="I1_1320089969219" src="https://plusone.google.com/u/0/_/+1/fastbutton?url=http%3A%2F%2F'+website+'%2F&amp;size=medium&amp;count=true&amp;annotation=bubble&amp;hl=en-US&amp;jsh=r%3Bgc%2F24805178-fa62ba1b#id=I1_1320089969219&amp;parent=http%3A%2F%2F'+website+'&amp;rpctoken=375977511&amp;_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe" style="position: static; left: 0pt; top: 0pt; width: 32px; margin: 0px; border-style: none; height: 24px; visibility: visible;" tabindex="-1" vspace="0" title="+1" width="100%" frameborder="0" scrolling="no"></iframe>';
    // enable to show count url = '<iframe allowtransparency="true" hspace="0" id="I1_1320091048638" marginheight="0" marginwidth="0" name="I1_1320091048638" src="https://plusone.google.com/u/0/_/+1/fastbutton?url=http%3A%2F%2F'+website+'%2F&amp;size=medium&amp;count=true&amp;annotation=&amp;hl=en-US&amp;jsh=r%3Bgc%2F24805178-fa62ba1b#id=I1_1320091048638&amp;parent=http%3A%2F%2F'+website+'&amp;rpctoken=727571083&amp;_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe" style="position: static; left: 0pt; top: 0pt; width: 90px; margin: 0px; border-style: none; height: 24px; visibility: visible;" tabindex="-1" vspace="0" title="+1" width="100%" frameborder="0" scrolling="no"></iframe>';
    el = document.getElementById("google_plusone"); el.style.visibility = "visible"; el.innerHTML = url;
  };
}; // function socialmedia_mouseover
