$(document).ready(init);

var _textCache = '';

function init(){
	
	//look for scrollable panels
	$('.scrollable').jScrollPane({scrollbarWidth:11});
	
	//set up listeners for input field changes
	
	var _inputs = $('input.clearable');
	
	_inputs.each(function(){
		
		$(this).attr('rel', $(this).attr('value'));
		
		$(this).focusin(function(){
			if ($(this).attr('value') == $(this).attr('rel')) {
				_textCache = $(this).attr('value');
				$(this).attr('value', '');
			}
		});
		
	});
	
	
	$('#print_button').click(function(){
		print();
	})
}

function DoJump(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
} 