$(window).data('toggleInputPlaceholder',function(f){f.focus(function(event){    if (!$(this).data('defaultValue')) $(this).data('defaultValue',$(this).context.value)    if ($(this).context.value==$(this).data('defaultValue')) {        $(this).context.value='';        $(this).removeClass('placeholder');    }});f.blur(function(event){    if ($(this).context.value=='') {        $(this).addClass('placeholder');        $(this).context.value=$(this).data('defaultValue');    }});});$(window).data('replaceTokens',function(str,vals) {	var ret='';	var re=/\{(\d+)\}/g;	var m;	var l=0;	while ((m=re.exec(str))!= null) {		if (l<re.lastIndex-m[0].length) {			ret+=str.substring(l,re.lastIndex-m[0].length);		}		if (vals[m[1]]) {			ret+=vals[m[1]];		}		l=re.lastIndex;	}	if (l<str.length) {		ret+=str.substring(l);	}	return ret;});function jump(from,to) {  setTimeout(function() {    $("#"+from).click(function() {      var target=$("#"+to);      var targetOffset=target?target.offset().top:0;      $("html,body").animate({scrollTop: targetOffset}, 500);    });  },0);}