function explode(a,b,c){var d={0:''};if(arguments.length<2||typeof arguments[0]=='undefined'||typeof arguments[1]=='undefined'){return null}if(a===''||a===false||a===null){return false}if(typeof a=='function'||typeof a=='object'||typeof b=='function'||typeof b=='object'){return d}if(a===true){a='1'}if(!c){return b.toString().split(a.toString())}var e=b.toString().split(a.toString());var f=e.splice(0,c-1);var g=e.join(a.toString());f.push(g);return f}
function trim(a,b){var c,l=0,i=0;a+='';if(!b){c=" \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000"}else{b+='';c=b.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,'$1')}l=a.length;for(i=0;i<l;i++){if(c.indexOf(a.charAt(i))===-1){a=a.substring(i);break}}l=a.length;for(i=l-1;i>=0;i--){if(c.indexOf(a.charAt(i))===-1){a=a.substring(0,i+1);break}}return c.indexOf(a.charAt(0))===-1?a:''}
function strip_tags(c,d){d=(((d||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join('');var e=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,commentsAndPhpTags=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;return c.replace(commentsAndPhpTags,'').replace(e,function(a,b){return d.indexOf('<'+b.toLowerCase()+'>')>-1?a:''})}

(function($){

$.fn.disableSelection = function() {
    return this.each(function() {           
        $(this).attr('unselectable', 'on')
               .css({
                   '-moz-user-select':'none',
                   '-webkit-user-select':'none',
                   'user-select':'none'
               })
               .each(function() {
                   this.onselectstart = function() { return false; };
               });
    });
};

})(jQuery);

$(document).ready(function(){
	$('.arrow').disableSelection();
	$('.variable').each(function(){
		var r = $(this).attr('rel');
		var t = explode(';',r);
		var h = $(this);
		for(var i=0;i<t.length;i++) {
			var e = explode('=',t[i]);
			$(h).data(e[0],e[1]);
		}
	});
});
