// tynt.com publisher tools
// add backlink to copy/paste
if(document.location.protocol=='http:'){
 var Tynt=Tynt||[];Tynt.push('duN0Kw0ayr4jW_adbi-bnq');Tynt.i={"b":true,"ap":"Complete article:","as":"See also: http://facebook.com/SkewsMeScience"};
 (function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}


// Determines browser
function IsExplorer (){return ((navigator.appName == "Microsoft Internet Explorer") && (navigator.userAgent.search ('Opera') == -1)) ? true : false;}

// Fixes MSIE <sup> font size
function AdjustSup()
{
  if (IsExplorer()==true)
    for (var i=0;i<document.styleSheets(0).rules.length;i++)
    {
      var theRule=document.styleSheets(0).rules(i);
      if (theRule.style.fontSize!="")
        if (theRule.selectorText.toLowerCase()=='sup')
          {theRule.style.fontSize='9pt';break;}
    }
}

function Barehref(theURL)
{
  var i=theURL.indexOf('#');
  if (i!=-1) theURL=theURL.substr(0,i);
  return theURL;
}

// URLEncode - Copyright Albion Research Ltd. 2002 (http://www.albionresearch.com/)
// Converted for general use by SkewsMe.com
function URLEncode(plaintext)
{
  // The Javascript escape and unescape functions do not correspond with what browsers actually do
  var SAFECHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*'()";
  // RFC2396 Mark characters
  var HEX="0123456789ABCDEF";
  var encoded="";
  for (var i=0;i<plaintext.length;i++)
  {
    var ch=plaintext.charAt(i);
    if (ch==" ")
      encoded+="+"; // x-www-urlencoded, rather than %20
    else if (SAFECHARS.indexOf(ch)!=-1)
      encoded+=ch;
    else
    {
      var charCode=ch.charCodeAt(0);
      if (charCode>255) // UNICODE not supported
        encoded+="+";
      else
        encoded+="%"+HEX.charAt((charCode>>4)&0xF)+HEX.charAt(charCode&0xF);
    }
  }
  return encoded;
}

function InsertHeader()
{
  // Open header table
  document.write('<table width="100%" align="center"><tr><td>');

  // Aeon Now
  document.write('<div style="text-align:center;margin-top:10px;"><a href="http://aeonnow.com" style="text-decoration:none;" title="advertisement: Aeon Now"><img src="http://skewsme.com/aeonnow/img/aeon_now_728x90.gif" style="width:728px;height:90px;border:0;" alt="advertisement: Aeon Now" title="advertisement: Aeon Now" /></a></div><hr width="728" />');

  // Copyright, home, etc.
  document.write ('<table width="728" align="center" cellpadding=0 cellspacing=0 border=0><tr><td valign=top>');
    document.write('<a href="http://www.skewsme.com" target="_blank" title="Home" style="font-family:Arial;color:#ffffff;font-size:12pt;font-weight:bold;text-decoration:none;">Skews Me</a> <font style="font-family:Arial;color:#ffffff;font-size:12pt">©</font><br /><font style="font-size:10pt;font-family:tahoma;color:white;font-style:italic;">Even the smallest drop in the bucket makes a wave</font><br />');
    document.write('<div class=essayheader style="padding-top:5px;"><font style="font-family:Arial;color:#ffffff;">');
      document.write('<a href="http://www.skewsme.com" style="font-size:10pt;color:#ffffff;" target=_blank title="SkewsMe.com">Home</a> | ');
      document.write('<a style="font-size:10pt;color:#ffffff;" href="m&#97;i&#108;&#116;o&#58;sk%&#54;5&#119;s_m&#101;@y&#97;hoo&#46;co&#109;?subject=' + document.title + '" title="Email Skews Me">Contact</a>');
      if ((navigator.appName=="Microsoft Internet Explorer")&& (parseInt(navigator.appVersion) >= 4))
      {
        document.write (' | <a style="font-size:10pt;color:#ffffff;" href="#" onClick="window.external.AddFavorite(Barehref(location.href),document.title);">Bookmark</a>');
      }
      // Music link
      document.write(' | <a href="http://www.playlist.com/skewsme" style="font-size:10pt;color:#ffffff;" target=_blank title="Skews Me at Playlist.com">Music</a>');
      // Facebook link
      document.write(' | <a href="http://www.facebook.com/SkewsMeScience" style="font-size:10pt;color:#ffffff;" target=_blank title="Skews Me at Facebook.com">Facebook</a>');
      document.write(' | <a href="http://skewsme.com/politics" style="font-size:10pt;color:#ffffff;" target=_blank title="Politics at Skews Me">Politics</a>');
      document.write(' | <a href="#" style="font-size:10pt;color:#ffffff;" onClick="javascript:forceAp(); return false;">Occupy!</a>');
      document.write(' | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9Z7DWXCVANNEN" style="font-size:10pt;color:#ffffff;" target=_blank title="Donate to Skews Me">Donate</a>');
      // Close the hide sitemap block
    document.write('</font></div>');
    document.write('</td><td rowspan="2" align="right" valign="top">');
      document.write('<iframe src="http://www.skewsme.com/skews_me_badge.html" frameborder="0" scrolling="no" style="border:0;margin:0;padding:0;width:300px;height:100px;overflow:hidden;display:inline"></iframe>');
    document.write('</td>');
  document.write('</tr><tr>');

    document.write('<td valign="bottom">');
    SocialNetworking();
    document.write('</td></tr></table>');
 
  // Close header table and draw horizontal rule
  document.write('</td></tr></table>');

  document.write('<hr class=essayheader width="728" />');

  AdjustSup(); // Sets <sup> font-size from default 7pt to 9pt if IE.  7pt is used because other non-IE browsers are whack

 
}

function SocialNetworking()
{
// AddToAny
document.write('<a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share"/></a>');

document.write('<script type="text/javascript">a2a_config = { onclick: 1 };</script>');

  document.write('<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>');
  
/*

  // Facebook SDK
  document.write('<div id="fb-root"></div>');
  window.fbAsyncInit = function() {
    FB.init({appId: '154395581259063', status: true, cookie: true,
             xfbml: true});
  };

  // Create table
  document.write('<table border="1" style="background-color:white;width:300px;height:24px;" cellpadding="5" cellspacing="0"><tr><td>');
  document.write('<table border="0" style="background-color:white" cellpadding="0" cellspacing="0" width="100%"><tr><td>');
  document.write('<table border="0" cellpadding="0" cellspacing="5" width="100%"><tr>');
  document.write('<td style="width:60px;" valign="top">');
  document.write('<a name="fb_share" type="button">');
  document.write('</td><td style="width:16px;" valign="top">');
  document.write('<a target="_blank" class="DiggThisButton DiggIcon" title="submit to Digg"></a>');
  document.write('</td><td style="width:16px;" valign="top">');
  document.write('<a target="_blank" href="http://reddit.com/submit" onclick="window.location = \'http://reddit.com/submit?url=\' + encodeURIComponent(window.location); return false"> <img src="http://reddit.com/static/spreddit1.gif" width="16" height="16" alt="submit to reddit" title="submit to reddit" border="0" /> </a>');
  document.write('</td><td style="width:16px;" valign="top">');
  document.write('<a target="_blank" href="http://www.delicious.com/save" onclick="window.open(\'http://www.delicious.com/save?v=5&noui&jump=close&url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title), \'delicious\',\'toolbar=no,width=550,height=550\'); return false;"><img src="http://l.yimg.com/hr/img/delicious.small.gif" height="16" width="16" alt="submit to Delicious" border="0" /></a>');
  document.write('</td><td style="width:90%;" align="right" valign="top">');
  document.write('<form method="post" action="https://www.paypal.com/cgi-bin/webscr" style="padding:0;margin:0;display:inline;"><input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="skews_me@yahoo.com"><input type="hidden" name="item_name" value=""><input type="hidden" name="return" value=""><input type="hidden" name="cancel_return" value=""><input type="hidden" name="image_url" value=""><input type="hidden" name="bn" value="yahoo-jsbf"><input type="hidden" name="pal" value="C3MGKKUCCAB9J"><input type="hidden" name="mrb" value="R-5AJ59462NH120001H"><input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but04.gif" alt="PayPal donate to Skews Me (Kevin Crosby)" title="PayPal donate to Skews Me (Kevin Crosby)" style="margin:0;"></form>');
  document.write('</td></tr></table>');
  document.write('</td></tr></table>');
  document.write('</td></tr></table>');

  // Facebook - Like button and count
  // <fb:like width="290" action="recommend"></fb:like>
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());

  // Facebook - Share button
  // <a name="fb_share" type="button">
  (function() {
  var e = document.createElement('script'); e.async = true;
  e.src = document.location.protocol +
  '//static.ak.fbcdn.net/connect.php/js/FB.Share';
  document.getElementById('fb-root').appendChild(e);
  }());
  
  // Digg
  // <a class="DiggThisButton DiggIcon"></a>
  (function() {
  var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
  s.type = 'text/javascript';
  s.async = true;
  s.src = 'http://widgets.digg.com/buttons.js';
  s1.parentNode.insertBefore(s, s1);
  })();
*/
  
};


var _theSize;
function BegThankyou (theSize)
{
  _theSize=theSize;
  document.write('<table class="essayheader" width="100%"><tr><td width="100%">');
}

function EndThankyou() {document.write('</td></tr></table>');}

function AddThankyou (theUrl)
{
  document.write('<a href="' + theUrl + '" target="_blank"><img src="http://www.skewsme.com/images/lips.gif" border="0" width='+ Math.round(28*_theSize/100) + ' height=' + Math.round(16*_theSize/100) + ' alt="Thank you for linking to me"></a> ');
}

var _theLinks = new String();

function AddLink(theName,theLink)
{
  if (_theLinks != "") { _theLinks += '<br />'; }
  _theLinks += '<a href="' + theLink + '" target="_blank">' + theName + '</a>';
}

function DisableCounter() {}

function InsertFooter_(theOrig,theDate,theGroup)
{
  AddLink("Left Bank Books", "http://www.leftbankbooks.com");
  AddLink("Seattle Free School", "http://www.seattlefreeschool.org/");
  AddLink("Seattle Represent!", "http://www.seattlerepresent.com");
  AddLink("Project Playlist", "http://www.playlist.com/skewsme");
  AddLink("Facebook", "http://www.facebook.com/skewsme");
  AddLink("MySpace", "http://www.myspace.com/skewsme");
  AddLink("Yahoo! Answers", "http://answers.yahoo.com/my/my;_ylt=AhMmAu.9TPocVmofPKsDWU0nzKIX;_ylv=3");
  _theLinks += '<br /><br />';
  AddLink("Albion Research Ltd.","http://www.albionresearch.com/");

  document.write('<br clear="all"><hr>');

// AddToAny
document.write('<a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share"/></a>');

document.write('<script type="text/javascript">a2a_config = { onclick: 1 };</script>');

  document.write('<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>');



  document.write('<table class=essayheader width="100%" cellpadding=5 align=center>');


document.write('<tr><td align=left valign=top rowspan=3 colspan=3><font face="Arial" size="2"><a href="#"><b>[top of page]</b></a></font></td>');

document.write('<td align=right valign=top><font style="font-family:Arial;font-size:9pt">');

if (_theLinks != "") document.write (_theLinks);

document.write ('</font></td></tr></table>');

  document.write('<div class=essayheader><center><a href="http://www.skewsme.com/sitemap.html" title="Home"><img src="http://www.skewsme.com/images/smallworld2.gif" align="absmiddle" border="0"></a></center></div>');

  document.write('<center><a style="text-decoration:none;" title="mail me" href="m&#97;i&#108;&#116;o&#58;sk%&#54;5&#119;s_m&#101;@y&#97;hoo&#46;co&#109;?subject=' + document.title + '">skews_me&#64;ya&#104;oo&#46;&#99;o&#109;</a></center>');

  document.write('<div class=essayheader><center><hr width=200>');
  document.write('<form style="margin-top:0;" method="post" action="https://www.paypal.com/cgi-bin/webscr"><font style="font-size:9pt;font-family:Arial">bandwidth and books cost <font color=#008800>$$$</font></font><br><input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="skews_me@yahoo.com"><input type="hidden" name="item_name" value=""><input type="hidden" name="return" value=""><input type="hidden" name="cancel_return" value=""><input type="hidden" name="image_url" value=""><input type="hidden" name="bn" value="yahoo-jsbf"><input type="hidden" name="pal" value="C3MGKKUCCAB9J"><input type="hidden" name="mrb" value="R-5AJ59462NH120001H"><input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but04.gif"></form>');
  document.write('</center></div>');

document.write('<table align=center class=essayheader align=center border=0><tr><td align=center><br><a href="http://smallbusiness.yahoo.com/webhosting/" target="_top"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/smallbiz/gr/hostedby2bw.gif" width="116" height="43" border="0" align="middle" alt="Hosting by Yahoo!"></a><br><font style="font-size:8pt;font-family:Arial">Since 1998</font></td></tr></table>');

document.write ('<div class=essayheader><br><center><a href=http://www.archive.org/index.php target=_blank><img src=http://www.skewsme.com/images/wayback_logo.gif border=0></a><br><font style="font-size:8pt;font-family:Arial">just in case</font></center></div>');

document.write ('<div class=essayheader><br><center><img src=http://www.skewsme.com/img/RecyclingSymbolGreen_60x60.jpg border=0 width=60 height=60 alt="Advertisements and other superficial elements will not appear when printed" title="Advertisements and other superficial elements will not appear when printed"></a><br><font style="font-size:8pt;font-family:Arial">printer friendly<br>by design</font></center><br></div>');

document.write ('<table cellpadding=5><tr><td><a class=essayheader href="http://changedetection.com/detect.html?url=' + Barehref(location.href) + '" target="_blank" style="font-family:Arial;font-size:9pt;">Receive e-mail when this page changes</a><br><font style="font-family:Arial;font-size:8pt;">Created by Skews_Me before: ' + theOrig + '&nbsp;&nbsp;&nbsp;Last modified: ' + theDate + '</font></td></tr></table>');

}

function InsertFooter (theOrig, theDate)       { InsertFooter_ (theOrig, theDate, "skews_me"); }
function InsertDisneyFooter (theOrig, theDate) { InsertFooter_ (theOrig, theDate, "why_we_hate_disney"); }

  var headID = document.getElementsByTagName("head")[0];         
  var cssNode = document.createElement('link');
  cssNode.type = 'text/css';
  cssNode.rel = 'stylesheet';
  cssNode.href = 'http://www.skewsme.com/ad.css';
  cssNode.media = 'screen';
  headID.appendChild(cssNode);
 
  var newScript = document.createElement('script');
  newScript.type = 'text/javascript';
  newScript.src = 'http://www.skewsme.com/ad.js';
  headID.appendChild(newScript);

  window.onload = function() {
  var bodyID = document.getElementsByTagName("body")[0];
  var divNodeOuter = document.createElement('div');
  divNodeOuter.id = "pa";
  divNodeOuter.innerHTML = '<div class="pa_close"><a href="javascript:void(0)" onclick="hideAp()"><img src="close1.jpg" alt="close" /></a></div><h1 align="center" style="font-family:Helvetica,Arial,san-serif;">Occupy the Planet</h1><p><nobr><img src="http://www.skewsme.com/img/occupy_wall_street_bull.jpg" style="width:193px;height:193px;margin-right:10px;" /><iframe id="livestream" width="300" height="193" src="http://cdn.livestream.com/embed/globalrevolution?layout=4&color=0xe7e7e7&autoPlay=true&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true&height=193&width=300" style="border:0;outline:0" frameborder="0" scrolling="no"></iframe><img src="http://www.skewsme.com/img/occupy_99_percent.jpg" style="margin-left:10px;width:275px;height:193px;" /></nobr><br /><div style="text-align:center;font-family:Helvetica,Arial,san-serif;font-size:14pt;font-weight:bold;">For more streams, visit <a href="http://occupystream.com/" target="_blank" onClick="hideAp();">occupystream.com</a></div></p>';
  bodyID.appendChild(divNodeOuter);
  //startAp();
  }
  
  
function Digg() { }

