Check if Facebook is blocked then redirect
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4814752/whats-the-best-way-to-check-if-a-website-is-up-or-not-via-javascript">What’s the best way to check if a website is up or not via JavaScript</a>  </p>
</blockquote>



<p>We're about to run a campaign through our Facebook page. Ideally we'd like to have the url we're using for this campaign (eg. www.oursite.com/campaign) redirect all traffic to our Facebook url (eg. www.facebook.com/example). However, many workplace networks block social media sites, so before automatically redirecting I'd like to first check if the user's network allows Facebook: if yes, redirect to Facebook; if no, continue through to our url (www.oursite.com/campaign). </p>

<p>Any help would be greatly appreciated, </p>

<p>Ryan 
(I'm ok with PHP, newb to javascript )</p>
