function s$(id) {return document.getElementById(id);}
var imgcount=6;
var imgcurrent=1;
function scrollImgRel(i){
	if(imgcurrent+i<1 || imgcurrent+i>imgcount){return;}
	scrollImg(imgcurrent+i);
}
function scrollImg(i){
	imgcurrent=i;
	$('imgbd').src='/_images/careers.bd.'+imgcurrent+'.jpg';
	for(i=1;i<=imgcount;i++){
		$('linkimgbd'+i).style.fontWeight='';
	}
	$('linkimgbd'+imgcurrent).style.fontWeight='bold';
}
function hasClass(ele,cls) {return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));}
function addClass(ele,cls) {if (!this.hasClass(ele,cls)) ele.className += " "+cls;}
function removeClass(ele,cls) {
	if (hasClass(ele,cls)) {
		var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
		ele.className=ele.className.replace(reg,' ');
	}
}
function openWindow(url, wname, width, height) {
	window.open(url, wname, "height=" + height + ",width=" + width + "location = 0, status = 1, resizable = 0, scrollbars=1, toolbar = 0");
	return true;
}