// jsPathto v0.0.2 07-17-09 09:52
// A nifty bit'o code to make use of RapidWeaver's %pathto()% syntax in javascript files.
// Assembled for your RapidWeaver developing pleasure by Adam Merrifield (http://www.seydoggy.com)
// 1. Put this file in your RapidWeaver theme, and establish a link to it from your index.html template.
// In this case, I am putting it in a folder I have in all my themes called "scripts":
//<script type="text/javascript" src="%pathto(scripts/jspathto.js)%"></script>
// 2. Next we need to establish a good ol' PHP style rtim function, javascript style.
// I borrowed this one from http://kevin.vanzonneveld.net (as it states), but you could easily
// write your own.
function rtrim ( str, charlist ) {
// http://kevin.vanzonneveld.net
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// + input by: Erkekjetter