<!--


// Display Header Logo script
function writeLogo(){
	var strReturn = new String();
	strReturn += ('<a href="http://www.skate-the-planet.com/index.html"><img id="siteLogo" src="/images/sk8planet_logo2.gif" width="129" height="165" alt="Skate The Planet logo" /></a>');
	
document.writeln(strReturn);
}
// END Display Header Logo script


// Display Header Print Logo script
function writePrintLogo(){
	var strReturn = new String();
	strReturn += ('<img id="siteLogoPrint" src="/images/sk8planet_logoPrint.gif" />');
	
document.writeln(strReturn);
}
// END Display Header Print Logo script


// Display Header Tagline script
function writeHeaderTagLine(){
	var strReturn = new String();
	strReturn += ('<p id="headerTagLine">&#8220;You&#8217;re Never Too Old To Go Skateboarding&#8221;</p>');
	
document.writeln(strReturn);
}
// END Display Header Tagline script


// Display Header Contact script
function writeHeaderContact(){
	var strReturn = new String();
	strReturn += ('<span id="headerContact">Skate The Planet | www.skate-the-planet.com | atari2600vcs@yahoo.com</span>');
	
document.writeln(strReturn);
}
// END Display Header Contact script


// Display Header halfpipe image script
function writeHeaderHalfpipe(){
	var strReturn = new String();
	strReturn += ('<img id="headerHalfpipe" src="/images/headers/halfpipe.gif" />');
	
document.writeln(strReturn);
}
// END Display Header halfpipe image script





// Search Box script
function writeSearchBox(){
	var strReturn = new String();
	strReturn += ('<div id="searchBox"><form method="get" action="/cgi-bin/search/search.pl"> <input type="hidden" name="p" value="1"> <input type="hidden" name="lang" value="en"> <input type="hidden" name="include" value=""> <input type="hidden" name="exclude" value=""> <input type="hidden" name="penalty" value="0"> <select name="mode"> <option value="all">ALL words</option> <option value="any">ANY word</option> </select> <input type="text" size="30" maxlength="100" name="q"> <input type="submit" value="Search->"> </form> </div> ');
	
document.writeln(strReturn);
}
// END Search Box script






// Show/hide script
// showMe
function showMe(what) {
  what = document.getElementById(what);
  what.style.display='inline';
}

// hideMe
function hideMe(what) {
  what = document.getElementById(what);
  what.style.display='none';
}

// used to show/hide layers/spans
function showHide(show,hide){
  var showArray = show.split(",")
  var s = showArray.length
  for(i = 0; i < s; i++) {
  	var imShowing = showArray[i];
	showMe(imShowing);
  }
  var hideArray = hide.split(",")
  var h = hideArray.length
  for(i = 0; i < h; i++) {
  	var imHiding = hideArray[i];
	hideMe(imHiding);
  }
}
// END Show/hide script






// Rotating Sk8, Snow, Thong, Porn, sylss image script
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '1'
theImages[1] = '2'
theImages[2] = '3'
theImages[3] = '4'
theImages[4] = '5'
theImages[5] = '6'
theImages[6] = '7'
theImages[7] = '8'
theImages[8] = '9'
theImages[9] = '10'
theImages[10] = '11'
theImages[11] = '12'
theImages[12] = '13'
theImages[13] = '14'
theImages[14] = '15'
theImages[15] = '16'
theImages[16] = '17'
theImages[17] = '18'
theImages[18] = '19'
theImages[19] = '20'
theImages[20] = '21'
theImages[21] = '22'
theImages[22] = '23'
theImages[23] = '24'
theImages[24] = '25'
theImages[25] = '26'
theImages[26] = '27'
theImages[27] = '28'
theImages[28] = '29'
theImages[29] = '30'
theImages[30] = '31'
theImages[31] = '32'
theImages[32] = '33'
theImages[33] = '34'
theImages[34] = '35'
theImages[35] = '36'
theImages[36] = '37'
theImages[37] = '38'
theImages[38] = '39'
theImages[39] = '40'
theImages[40] = '41'
theImages[41] = '42'
theImages[42] = '43'
theImages[43] = '44'
theImages[44] = '45'
theImages[45] = '46'
theImages[46] = '47'
theImages[47] = '48'
theImages[48] = '49'
theImages[49] = '50'

var whichtheImages=Math.floor(Math.random()*(theImages.length))

var supportFlyer = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

supportFlyer[0] = '155'
supportFlyer[1] = '156'
supportFlyer[2] = '157'
supportFlyer[3] = '158'
supportFlyer[4] = '159'
supportFlyer[5] = '160'
supportFlyer[6] = '161'
supportFlyer[7] = '162'
supportFlyer[8] = '163'
supportFlyer[9] = '164'
supportFlyer[10] = '165'
supportFlyer[11] = '166'
supportFlyer[12] = '167'
supportFlyer[13] = '168'
supportFlyer[14] = '169'
supportFlyer[15] = '170'
supportFlyer[16] = '171'
supportFlyer[17] = '172'
supportFlyer[18] = '173'
supportFlyer[19] = '174'
supportFlyer[20] = '175'

var whichsupportFlyer=Math.floor(Math.random()*(supportFlyer.length))

function showSkateImage(){
document.write('<img src="/images/headers/sk8/head_skate'+theImages[whichtheImages]+'.jpg" width="507" height="200" alt="Skateboarding header image">');
}
function showSnowImage(){
document.write('<img src="/images/headers/snow/head_snow'+theImages[whichtheImages]+'.jpg" width="507" height="200" alt="Snowboarding header image">');
}
function showThongImage(){
document.write('<img src="/images/headers/thong/head_thong'+theImages[whichtheImages]+'.jpg" width="507" height="200" alt="Alternate Bikini Thong skateboard header image">');
}
function showPornImage(){
document.write('<img src="/images/headers/porn/head_porn'+theImages[whichtheImages]+'.jpg" width="507" height="200" alt="Alternate Porn Star adult skateboard header image">');
}
function showNavGirlImage(){
document.write('<img class="noPrint" src="/images/leftSideBar/sb_'+theImages[whichtheImages]+'.gif" alt="Superfluous skateboard porn star sidebar image">');
}
function showFactoidGirl(){
document.write('<img src="/images/factoids/factoidGirl'+theImages[whichtheImages]+'.gif" alt="Skateboarding Factoid Girl">');
}
function headerSYLSSflyer(){
document.write('<a href="http://www.skate-the-planet.com/support/index.html"><img id="headerSYLSSflyer"src="/images/galleries/supportLocalSkateShopFlyers/supportLocalShops'+supportFlyer[whichsupportFlyer]+'.jpg" alt="Support Your Local Skate Shop"></a>');
}
//END Rotating Sk8, Thong, Porn, sylss image script





// Tweet and Like buttons
function writeTweetLikeMe(){
	var strReturn = new String();
	strReturn += ('<table id="tweetLike"><tr><td id="tweetMe"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="SkateThePlanet" data-related="skatetheplanet:Video games, skateboarding and Tank Girl comics">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td><td id="plusOne"><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone count="false"></g:plusone></td><td id="likeMe"><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=204021846311420&amp;xfbml=1"></script><fb:like href="" send="true" width="450" show_faces="false" colorscheme="dark" font="arial"></fb:like></td></tr></table>');
	
document.writeln(strReturn);
}
// END Tweet and Like buttons


// Tweet and Like buttons #SYLSS hashtag button
function writeTweetLikeMeSYLSS(){
	var strReturn = new String();
	strReturn += ('<table id="tweetLike"><tr><td id="tweetMe"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="SkateThePlanet" data-related="skatetheplanet:Video games, skateboarding and Tank Girl comics">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td>	<td id="tweetMe"><a href="https://twitter.com/intent/tweet?button_hashtag=SYLSS&text=Support%20Your%20Local%20Skate%20Shop!%20Independent%20sk8%20shops%20are%20the%20heart%20of%20skateboarding" class="twitter-hashtag-button" data-related="skatetheplanet" data-url="http://www.skate-the-planet.com/support/">Tweet #SYLSS</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></td>	<td id="plusOne"><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone count="false"></g:plusone></td><td id="likeMe"><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=204021846311420&amp;xfbml=1"></script><fb:like href="" send="true" width="450" show_faces="false" colorscheme="dark" font="arial"></fb:like></td></tr></table>');
	
document.writeln(strReturn);
}
// END Tweet and Like buttons






// left nav HOME script
function writeLeftNav(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li id="select"><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav HOME script

// left nav NEW script
function writeLeftNavNew(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li id="selectNew" class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav NEW script

// left nav ARTICLES script
function writeLeftNavArticles(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li id="select"><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav ARTICLES script

// left nav REVIEWS script
function writeLeftNavReviews(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li id="select"><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav REVIEWS script

// left nav VIDEOS script
function writeLeftNavVideos(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li id="select"><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav VIDEOS script

// left nav SYLSS script
function writeLeftNavSYLSS(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li id="select"><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav SYLSS script

// left nav MUSEUM script
function writeLeftNavMuseum(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li id="select"><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav MUSEUM script

// left nav LOCAL script
function writeLeftNavLocal(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li id="select"><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav LOCAL script

// left nav GRIND12 script
function writeLeftNavGrind(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li id="select"><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav GRIND12 script

// left nav SKLOG script
function writeLeftNavSklog(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li id="select"><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav SKLOG script

// left nav GALLERIES script
function writeLeftNavGalleries(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li id="select"><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav GALLERIES script

// left nav STORE script
function writeLeftNavStore(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Video rants" accesskey="v">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li id="select"><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav STORE script

// left nav LINKS script
function writeLeftNavLinks(){
	var strReturn = new String();
	strReturn += ('<ul id="leftNav" title="Primary navigation bar"><li><a href="/index.html" title="Return to homepage" accesskey="h">Home</a></li><!--<li class="whatsNew"><a href="/new/index.html" title="Newest stuff added to the site">What&#8217;s New</a></li>--><li><a href="/articles/index.html" title="Archive of skateboard articles" accesskey="a">Articles</a></li><li><a href="/reviews/index.html" title="DVD &#38; product reviews" accesskey="r">Reviews</a></li><li><a href="/support/index.html" title="Support Your Local Skate Shop" accesskey="s">#SYLSS</a></li><li><a href="/videos/index.html" title="Miscellaneous home video" accesskey="r">Videos</a></li><li><a href="/museum/index.html" title="Museum of skateboarding&#8220;s past" accesskey="m">Museum</a></li><li><a href="/sk8Local/index.html" title="Local parks &#38; shops" accesskey="l">Local</a></li><li><a href="http://www.grind12.com/" target="_blank" title="Grind Twelve Sk8 Zine" accesskey="z">Grind&#8226;12</a></li><li><a href="/sklog/index.html" title="Sk8 Blog" accesskey="b">Sk8 Blog</a></li><li><a href="/galleries/index.html" title="Image galleries" accesskey="g">Galleries</a></li><li><a href="/store/index.html" title="Online store" accesskey="s">Store</a></li><li id="select"><a href="/links/index.html" title="Manufacturer &#38; retailer websites">Links</a></li></ul>');
	
document.writeln(strReturn);
}
// END left nav LINKS script





// left nav Blurb script
function writeLeftNavBlurb(){
	var strReturn = new String();
	strReturn += ('<!--<span class="blurb">Just a reminder...<br /><a href="/articles/goSk8Day.html">June 21 is<br />Go Skateboarding Day!</a></span>--><a href="http://www.tankgirl.info/tankgirl/index.html" target="_blank"><img src="/images/tankGirlHead.jpg" id="tankGirl" title="Check out Tank Girl!" alt="Visit our Tank Girl site" /></a><br /><a href="http://www.8-bitcentral.com/" target="_blank"><img src="/images/8bitLogo.png" id="eightBitLogo" title="Retro classic video games!" alt="Retro classic video games" /></a>');
	
document.writeln(strReturn);
}
// END left nav Blurb script




// External Right Side Links SK8 script
function writeExternalLinks(){
	var strReturn = new String();
	strReturn += ('<p id="headingMain">Skateboard Companies:</p><span id="heading">Skate:</span><ul id="sideBar"><li><a href="/links/decks.html">Decks</a></li><li><a href="/links/wheels.html">Wheels</a></li><li><a href="/links/trucks.html">Trucks</a></li><li><a href="/links/accessories.html">Accessories</a></li><li><a href="/links/clothes.html">Clothes/Shoes</a></li><li><a href="/links/pros.html">Pros</a></li><li><a href="/links/ramps.html">Ramps/Parks</a></li><li><a href="/links/events.html">Events/Camps</a></li><li><a href="/links/foundations.html">Foundations</a></li><li><a href="/links/media.html">Media</a></li><li><a href="/links/mailOrder.html">Mail Order</a></li></ul><span id="heading">Snow:</span><ul id="sideBar"><li><a href="/links/indexSnow.html">Info</a></li></ul><span id="heading">Stuff:</span><ul id="sideBar"><li><a href="/links/art.html">Art</a></li><li><a href="/links/calendar.html">Calendar</a></li><li><a href="/dailySkateChick/index.html">Daily Sk8 Chick</a></li><li><a href="/links/music.html">Music</a></li><li><a href="/links/weird.html">Weird</a></li></ul><span id="heading">Stalk Us:</span><span id="socialNetworks"><a href="http://twitter.com/skatetheplanet" title="Twitter" target="_blank"><img src="/images/socialNetworks/twitter_16.png" alt="Twitter link" /></a><a href="http://www.facebook.com/pages/Support-Your-Local-Skate-Shop/125415234150323?v=app_4949752878" target="_blank"><img src="/images/socialNetworks/facebook_16.png" alt="Facebook link" /></a><a href="http://www.myspace.com/skatetheplanet" title="MySpace" target="_blank"><img src="/images/socialNetworks/myspace_16.png" alt="MySpace link" /></a><a href="http://www.youtube.com/user/sk8Promo37" title="YouTube" target="_blank"><img src="/images/socialNetworks/youtube_16.png" alt="YouTube link" /></a><a href="http://www.plurk.com/skateThePlanet" title="Plurk" target="_blank"><img src="/images/socialNetworks/plurk_16.png" alt="Plurk link" /></a></span>');
	
document.writeln(strReturn);
}
// END External Right Side Links SK8 script







// DisplayMode script
function writeDisplayMode(){
	var strReturn = new String();
	strReturn += ('<ul id="dm"><li><a title="Display: skateboard images" href=javascript:showHide("sk8image","snowImage,addThong,addPorn,leftNavPorn");>Sk8</a>&#160;|&#160;<a title="Display: snowboard images" href=javascript:showHide("snowImage","sk8image,addThong,addPorn,leftNavPorn");>Snow</a></li><li id="displayModeThong"><a href=javascript:showHide("addThong","sk8image,snowImage,addPorn,leftNavPorn");>(. )&#160;( .)<br />)&#160;&#160;&#160;(<br />(&#160;&#160;v&#160;)</a></li></ul>');
	
document.writeln(strReturn);
}
// END DisplayMode script








// Add This sharing tool bar
function writeSharingToolbar(){
	var strReturn = new String();
	strReturn += ('<div class="addthis_toolbox addthis_default_style " id="addThisSharing"><a href="http://www.addthis.com/bookmark.php?v=250&amp;username=stpprom2o" class="addthis_button_compact" style="color: #000;">Share</a><span class="addthis_separator">|</span><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a></div><script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=stpprom2o"></script>');
	
document.writeln(strReturn);
}
// END Add This sharing tool bar




// Facebook Page Badge
function writeFBbadge(){
	var strReturn = new String();
	strReturn += ('<a href="http://www.facebook.com/pages/Support-Your-Local-Skate-Shop/125415234150323?v=app_4949752878" target="_blank" title="Support Your Local Skate Shop sylss"><img id="fbBadge" src="http://badge.facebook.com/badge/125415234150323.1839.33059382.png" width="120" height="210" alt="Support Your Local Skate Shop sylss" style="border: 0px;" /></a>');
	
document.writeln(strReturn);
}
// END Facebook Page Badge





// Factoid Header Text
function writeFactoidHeader(){
	var strReturn = new String();
	strReturn += ('<h2 id="title">Skate The Planet Factoid:</h2><p>Know More - Skate Better!</p>&#160;<br />');
	
document.writeln(strReturn);
}
// END Factoid Header Text









// Rotating Factoids Script
var Factoid=new Array() // do not change this!

// Set up the Factoids to be shown, below.
// To add more Factoids, continue with the
// pattern, adding to the array.  Remember
// to increment the Factoid[x] index!

Factoid[0] = "Lizard King&#8217;s nickname (aka- Mike Plumb) originates from a Jim Morrison poem.";
Factoid[1] = "Iggy Pop was one of 5 bands playing at Bam Margera&#8217;s Feb. 07 wedding which was caught on video for an Mtv reality show, Unholy Union.";
Factoid[2] = "1965 Women&#8217;s Skateboard Champion, Patti McGee, was pictured doing a handstand on the May 1965 cover of Life Magazine.";
Factoid[3] = "Five layers of material go into the manufacturing of grip tape.";
Factoid[4] = "1031 owner Kristian Svitak also sells real estate and has a band called The Heartaches.";
Factoid[5] = "Both Kenny Hoyle & Tony Magnusson are missing pieces of their fingers.";
Factoid[6] = "The Public Skatepark Development Guide, the most comprehensive handbook for skatepark advancement, is a 128-page book that every city in the US should own.";
Factoid[7] = "Element rider, Brent Atchley once rode for Stereo.";
Factoid[8] = "The winning bid for &#8220;spending a day with Tony Hawk&#8221; went for $160,000. It included a private skate demo, visit to 900 Films and being a guest on Tony&#8217;s Sirius Radio show.";
Factoid[9] = "Expedition made a series of boards called Interlock which featured threads that let you screw your trucks in from the bottom of the board.";
Factoid[10] = "Ryan Sheckler endorsed Proactiv zit creme to the tune of $3 million in 2008.";
Factoid[11] = "2008 saw Tech Deck selling 18-inch replicas of the Brooklyn Banks to go with their miniature skateboards.";
Factoid[12] = "Don&#8217;t let box-stores like WalMart and Target take business away from independent skate shops. Support local skate shops!.";
Factoid[13] = "2ReVert is making custom jewelry from recycled skateboard parts.";
Factoid[14] = "Artist Neck Face attended Pratt Institute for 2 years before dropping out.";
Factoid[15] = "Ed Templeton is mostly recognized as a pro skateboarder. But he is gaining recognition as an artist through his award winning photo series, &#8220;Teenage Smokers&#8221;.";
Factoid[16] = "Eric Muss-Barnes started California Girls Skateboards in 2009.";
Factoid[17] = "Prior to Habitat, Joe Castrucci ran a Cincinnati-based skate company called Solid Skates.";
Factoid[18] = "7-11 convenience stores have been in business since in 1927. Go grab a <em>Slurpee</em> and celebrate!";
Factoid[19] = "Support your local skateboard shop!";
Factoid[20] = "Bob Burnquist has an Anti Hero &#8220;tramp stamp&#8221; tattooed on his lower back.";
Factoid[21] = "Fred Gall was 15 when he turned pro.";
Factoid[22] = "Wrench Pilot, drawn by Mel Bend and published by Transworld Sk8 Mag from 1989 through 1991, introduced us to the every-man&#8217;s skater, Lettus Bee.";
Factoid[23] = "Gotcha's &#8220;Bubble Fish&#8221; logo, designed by Shawn Stussy, was the brand's first official logo. It was retired in favor of the &#8220;Fishman&#8221; logo, which quickly became a globally recognized icon.";
Factoid[24] = "In 2007, Six Flags in San Antonio, TX opened &#8220;Tony Hawk&#8217;s Big Spin&#8221; - a skateboard themed roller coaster.";
Factoid[25] = "In early 2009 DVS released a poker set in a metal case. Kind of an odd promo item although thoroughly DVS branded.";
Factoid[26] = "Bob Burnquist&#8217;s fascination with the Mega Ramp led him to build one for himself on his farm. He bypassed zoning laws by stating the ramp was an agricultural structure... he just happens to use the roof for skateboarding.";
Factoid[27] = "Matt Mumford&#8217;s silhouette appears in the first Mystery ad.";
Factoid[28] = "June 21st has officially been proclaimed Go Skateboarding Day by the U.S. House of Representatives! Congresswoman Loretta Sanchez recognized June 21st as the official holiday of skateboarding.";
Factoid[29] = "ESPN ranked skateboarding at #37 in terms of difficulty. Boxing was #1 and Fishing was last.";
Factoid[30] = "In 2007, skateboarding has shown a six year increase of 2.7% in comparison with mainstream sports such as baseball and basketball which have both shown a decrease in participation.";

// ======================================
// Do not change anything below this line
// ======================================
var Q = Factoid.length;
var whichFactoid=Math.round(Math.random()*(Q-1));

function showFactoidText(){
document.write(Factoid[whichFactoid]);
}
// END Rotating Factoids







// Printer Friendly script
function writePrinterFriendly(){
	var strReturn = new String();
	strReturn += ('<!-- BEGIN pf--><div id="pf" style="display: inline;"><p id="printerFriendly"><a href=javascript:showHide("pfDetail","pf");>Printer Friendly &#187;</a></p></div><!-- BEGIN pfDetail--><div id="pfDetail" style="display: none;"><p id="printerFriendly"><a href=javascript:showHide("pf","pfDetail");><strong>Printer Friendly:</strong> This page will print from your browser as black text on a white background. Extraneous backgrounds, images and navigational stuff will not be printed, resulting in a properly formatted printout looking much better than the crappy print formats generated by most web sites. &#8220;Print and Destroy!&#8221;</a></p></div><!-- END pf-->');
	
document.writeln(strReturn);
}
// END  Printer Friendly script









// Display LowerNav script
function writeLowerNav(){
	var strReturn = new String();
	strReturn += ('<ul id="lowNav" title="Secondary navigation bar"><li class="spacer"><a href="/trustNoOne/index.html" title="Believe in yourself and follow your own good judgement">TrustNoOne</a></li><li class="spacer"><a href="/privacy/index.html">Privacy</a></li><li class="spacer"><a href="/siteMap/index.html" accesskey="o">Site Map</a></li><li class="spacer"><a href="/contact/index.html" accesskey="c">Contact</a></li><li><a href="/about/index.html">About</a></li><li id="xxx"><a  href=javascript:showHide("addPorn,leftNavPorn","sk8image,snowImage,addThong");>XXX </a></li></ul>');
	
document.writeln(strReturn);
}
// END Display LowerNav script


// Display REVIEW LowerNav script
function writeLowerNavReviews(){
	var strReturn = new String();
	strReturn += ('<ul id="lowNav" title="Secondary navigation bar"><li class="spacer"><a href="/privacy/index.html">Privacy</a></li><li class="spacer"><a href="/siteMap/index.html" accesskey="o">Site Map</a></li><li class="spacer"><a href="/contact/index.html" accesskey="c">Contact</a></li><li><a href="/about/index.html">About</a></li><li id="xxx"><a  href=javascript:showHide("addPorn,adultMovie","normal,leftNavPorn,sk8image,snowImage,addThong");>XXX</a></li><li id="trust"><a href="/trustNoOne/index.html" title="Believe in yourself and follow your own good judgement">TrustNoOne</a></li></ul>');
	
document.writeln(strReturn);
}
// END Display REVIEW LowerNav script







// display current date
function displayDate(){
  var now = new Date();
  var today = now.getDate();
  var month = now.getMonth();
    var monthName = new Array(12)
      monthName[0]="January ";
      monthName[1]="February ";
      monthName[2]="March ";
      monthName[3]="April ";
      monthName[4]="May ";
      monthName[5]="June ";
      monthName[6]="July ";
      monthName[7]="August ";
      monthName[8]="September ";
      monthName[9]="October ";
      monthName[10]="November ";
      monthName[11]="December ";
  var year = now.getFullYear();

  document.write(monthName[month]+today+ ", "+year);
}
// END display current date











// copyright script
function writeCopyright(){
	var strReturn = new String();
	strReturn += ('<p>Copyright &nbsp;&#169;2003 &#8211; 2012 - Skate the Planet. All rights reserved. Skate or Die!</p><a href="http://store.apple.com/" target="_blank"><img src="/images/macMadeSkull.gif" class="noPrint" width="137" height="150" alt="This skateboard and snowboard site was made with Macintosh" /></a>');
	
document.writeln(strReturn);
}
// END copyright script








// Display Footer Tagline script
function writeTagLine(){
	var strReturn = new String();
	strReturn += ('<p id="tagLine">Never Summer | Never Winter | Ride Forever</p>');
	
document.writeln(strReturn);
}
// END Display Footer Tagline script

// Display Footer Tagline REVIEWS script
function writeTagLineReviews(){
	var strReturn = new String();
	strReturn += ('<p id="tagLine">Never Summer | Never Winter | Ride Her Forever</p>');
	
document.writeln(strReturn);
}
// END Display Footer Tagline REVIEWS script




/* Facebook LIKE button -----------------*/
function writeFBlikeSTP(){
	var strReturn = new String();
	strReturn += ('<div id="facebook"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.skate-the-planet.com/" layout="box_count" width="108"></fb:like></div>');
	
document.writeln(strReturn);
}
// END copyright script


/* Facebook LIKE button -----------------*/
function writeFBlikeSupport(){
	var strReturn = new String();
	strReturn += ('<div id="facebook" class="facebookLeft"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.skate-the-planet.com/support/" layout="box_count" width="108"></fb:like></div>');
	
document.writeln(strReturn);
}
// END copyright script



/* Facebook SHARE button -----------------*/
function writeFBshare(){
	var strReturn = new String();
	strReturn += ('<div id="facebook"><a name="fb_share"></a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>');
	
document.writeln(strReturn);
}
// END copyright script





/* Twitter tweet-button wdgit -----------------*/
function writeTweetButton(){
	var strReturn = new String();
	strReturn += ('<a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="SkateThePlanet">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>');
	
document.writeln(strReturn);
}
// END copyright script






/* RE-TWEET ----------------------- */
/*
 * Easy Retweet Button
 * http://ejohn.org/blog/retweet/
 *   by John Resig (ejohn.org)
 *
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 */

(function(){

window.RetweetJS = {
	// Your Bit.ly Username
	//bitly_user: "retweetjs",
	bitly_user: "skatetheplanet",

	// Your Bit.ly API Key
	// Found here: http://bit.ly/account
	//bitly_key: "R_6287c92ecaf9efc6f39e4f33bdbf80b1",
	bitly_key: "R_6963f783d5996ddf8146e2262df8f7a0",

	// The text to replace the links with
	link_text: (/windows/i.test( navigator.userAgent) ? "&#9658;" : "&#9851;") +
		"&#160;Retweet",

	// What # to show (Use "clicks" for # of clicks or "none" for nothing)
	count_type: "none",

	// Tweet Prefix text
	// "RT @jeresig " would result in: "RT @jeresig Link Title http://bit.ly/asdf"
	prefix: "via @skatetheplanet ",

	// Style information
	styling: "a.retweet { font: bold 12px Helvetica,Arial; color: #000; text-decoration: none; border: 0px; }" +
		"a.retweet span { color: #000; background: #6cf; margin-left: 2px; border: 1px solid #000; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; padding: 3px; }" +
		"a.vert { display: block; text-align: center; font-size: 16px; float: left; margin: 4px; }" +
		"a.retweet strong.vert { display: block; margin-bottom: 4px; background: #F5F5F5; border: 1px solid #EEE; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; padding: 3px; }" +
		"a.retweet span.vert { display: block; font-size: 11px; margin-left: 0px; }"
};

//////////////// No Need to Configure Below Here ////////////////

var loadCount = 1;

// Asynchronously load the Bit.ly JavaScript API
// If it hasn't been loaded already
if ( typeof BitlyClient === "undefined" ) {
	var head = document.getElementsByTagName("head")[0] ||
		document.documentElement;
	var script = document.createElement("script");
	script.src = "http://bit.ly/javascript-api.js?version=latest&login=" +
		RetweetJS.bitly_user + "&apiKey=" + RetweetJS.bitly_key;
	script.charSet = "utf-8";
	head.appendChild( script );

	var check = setInterval(function(){
		if ( typeof BitlyCB !== "undefined" ) {
			clearInterval( check );
			head.removeChild( script );
			loaded();
		}
	}, 10);

	loadCount = 0;
}

if ( document.addEventListener ) {
	document.addEventListener("DOMContentLoaded", loaded, false);

} else if ( window.attachEvent ) {
	window.attachEvent("onload", loaded);
}

function loaded(){
	// Need to wait for doc ready and js ready
	if ( ++loadCount < 2 ) {
		return;
	}

	var elems = [], urlElem = {}, hashURL = {};

	BitlyCB.shortenResponse = function(data) {
		for ( var url in data.results ) {
			var hash = data.results[url].userHash;
			hashURL[hash] = url;

			var elems = urlElem[ url ];

			for ( var i = 0; i < elems.length; i++ ) {
				elems[i].href += hash;
			}

			if ( RetweetJS.count_type === "clicks" ) {
				BitlyClient.stats(hash, 'BitlyCB.statsResponse');
			}
		}
	};

	BitlyCB.statsResponse = function(data) {
		var clicks = data.results.clicks, hash = data.results.userHash;
		var url = hashURL[ hash ], elems = urlElem[ url ];

		if ( clicks > 0 ) {
			for ( var i = 0; i < elems.length; i++ ) {
				var strong = document.createElement("strong");
				strong.appendChild( document.createTextNode( clicks + " " ) );
				elems[i].insertBefore(strong, elems[i].firstChild);

				if ( /(^|\s)vert(\s|$)/.test( elems[i].className ) ) {
					elems[i].firstChild.className = elems[i].lastChild.className = "vert";
				}
			}
		}

		hashURL[ hash ] = urlElem[ url ] = null;
	};

	if ( document.getElementsByClassName ) {
		elems = document.getElementsByClassName("retweet");
	} else {
		var tmp = document.getElementsByTagName("a");
		for ( var i = 0; i < tmp.length; i++ ) {
			if ( /(^|\s)retweet(\s|$)/.test( tmp[i].className ) ) {
				elems.push( tmp[i] );
			}
		}
	}

	if ( elems.length && RetweetJS.styling ) {
		var style = document.createElement("style");
		style.type = "text/css";

		try {
			style.appendChild( document.createTextNode( RetweetJS.styling ) );
		} catch (e) {
			if ( style.styleSheet ) {
				style.styleSheet.cssText = RetweetJS.styling;
			}
		}

		document.body.appendChild( style );
	}

	for ( var i = 0; i < elems.length; i++ ) {
		var elem = elems[i];

		if ( /(^|\s)self(\s|$)/.test( elem.className ) ) {
			elem.href = window.location;
			elem.title = document.title;
		}

		var origText = elem.title || elem.textContent || elem.innerText,
			href = elem.href;

		elem.innerHTML = "<span>" + RetweetJS.link_text + "</span>";
		elem.title = "";
        elem.href = "http://twitter.com/home?status=" +
			encodeURIComponent(RetweetJS.prefix + origText + " http://bit.ly/");

		if ( urlElem[ href ] ) {
			urlElem[ href ].push( elem );
		} else {
			urlElem[ href ] = [ elem ];
			BitlyClient.shorten(href, 'BitlyCB.shortenResponse');
		}
	}

}

})();



// 
