
var xcont = 148;
var xarrow = 451;
if (isIE) { xcont = 146; xarrow = 461;}

var tb_job_content = new DHTMLScroller('tb_job_content', '');

with (tb_job_content) {

	// CONTENT: This div has an ID of 'contentOuter', is positioned at (x=50, y=50), and is
	// most of the window wide and high. If you want to centre the div, try something like:
	//divs[0] = new ScrDiv('contentOuter', 'page.winW()/2 - 300', 'page.winH()/2 - 200', '600', '398');
	
	divs[0] = new ScrDiv('tb_job_contentOuter', 'page.winW()/2 - xcont', '132', '619', '374', 2);

	// SCROLLBAR: Positioned near the right edge of the window by setting its 'Left' position.
	divs[1] = new ScrDiv('tb_job_scrollBar', 'page.winW()/2 + 340', '191', '15', '387', 0);

	// DRAGGABLE THUMB: Don't pass 'Y' or 'Height' settings, these are set automatically.
	// Visibility=1, so this will hide when scroller content is smaller than the scroller area.
	divs[2] = new ScrDiv('tb_job_scrollThumb', 'page.winW()/2 + 338', '', '18', '36', 0);

	// And after that, you can put in the IDs of any other divs you want to position/size.
	// These are the up and down arrow divs, positioned on resize accordingly...
	divs[3] = new ScrDiv('tb_job_upArrows', 'page.winW()/2 + xarrow', '507', '23', '20', 1);
	divs[4] = new ScrDiv('tb_job_downArrows', 'page.winW()/2 + xarrow', '520', '23', '20', 1);

	page.minW = 977;
	page.minH = 747;

    //onload = function() { var lm = getSty('loadMessage'); if (lm) lm.visibility = 'hidden'; }

   // *** SCROLLING BY MOUSEWHEEL HANDLER - delete if you want to restore normal mousewheeling ***

	document.onmousewheel = function(evt) {
		evt=evt?evt:window.event;
		// You have to manually specify a scroller name in here (like 'content').
		if (evt.wheelDelta) tb_job_content.scrollBy(evt.wheelDelta / -3);
			return false;
	}


	// *** SCROLLING BY KEYPRESS HANDLER - delete this too if you want ***

	// This will capture keypresses and scroll up/down depending on the key code.
	// You must manually specify a scroller name here ('content'), as only one can respond to keys.
	function scrKeyDown(evt) { with (tb_job_content) {
		 if (!loaded) return;

			 // Find the correct event object and property.
			var evt = evt?evt:window.event;
			var key = evt.keyCode?evt.keyCode:(evt.charCode?evt.charCode:evt.which);

			//alert(key);
			// Depending on key press (capital || lowercase || function key), scroll div.
			// Uncomment the above 'alert(key)' line to figure out your own keycodes.
			if (key==84 || key==116 || key==36) scrollTo(0);         // 'T', 't' or 'Home'
			if (key==83 || key==115 || key==33) scrollBy(0-cHeight); // 'S', 's' or 'PgUp'
			if (key==65 || key==97  || key==38) scrollBy(-10);       // 'A', 'a' or 'Up'
			if (key==90 || key==122 || key==40) scrollBy(10);        // 'Z', 'z' or 'Down'
			if (key==88 || key==120 || key==34) scrollBy(cHeight);   // 'X', 'x' or 'PgDn'
			if (key==66 || key==98  || key==35) scrollTo(divHeight); // 'B', 'b' or 'End'
		}
	}

	// Capture key presses.
	if (isIE) document.onkeydown = scrKeyDown;
	else {
		 if (isNS4) document.captureEvents(Event.KEYPRESS);
		 document.onkeypress = scrKeyDown;
	}
}