var B=(function x(){})[-5]=='x'?'FF3':(function x(){})[-6]=='x'?'FF2':/a/[-1]=='a'?'FF':'\v'=='v'?'IE':/a/.__proto__=='//'?'Saf':/s/.test(/a/.toString)?'Chr':/^function \(/.test([].sort)?'Op':'Unknown';
var pagetitle = top.document.title; 
var pageurl = top.location.href; 

function favorite() 
{ 
if ( B=="IE" ) { window.external.AddFavorite(pageurl,pagetitle) } 
else { alert("\n\n\n\n3 Ways to Bookmark:\n\n\n\n 1.  Press and hold the CTRL key down, then press the letter D \n\n 2.  Right-click on the screen, then select 'Add Favorites' or 'Bookmark'. \n\n 3. Press and hold the CTRL key down, then press the letter B.  This will open your Favorites/Bookmarks folder.\n\n\n\n\n\n\n Thanks for visiting www.indoorclimbing.com!") } // Other browsers
};

function mailto() { location.href="mailto:?subject=Check out " + pagetitle + "&body=" +  pageurl; }; 

function printerfriendly()
{
document.getElementById("body").style.background="white";
document.getElementById("body").innerHTML = "<h1>"+top.document.title+"</h1>"+document.getElementById("print").innerHTML+"<hr><p>The most up-to-date list for <b>"+pagetitle+"</b> is at "+pageurl;
};

function center()
{
var aWidth; var numCols; var remCols; var moveProducts; var wWidth;
if ( B=="IE" ) { wWidth = document.documentElement.clientWidth } else { wWidth = document.documentElement.clientWidth };
aWidth = wWidth-(4+170+5+5+170+14); if ( B=="Chr" ) { aWidth+=4 };
numCols = Math.floor(aWidth/(265+29));
remCols = aWidth - numCols*(265+30);
if ( numCols<1 ) { remCols=0 };
moveProducts = Math.floor(remCols/2);
document.getElementById("products").style.left = moveProducts+"px";
};

