if (typeof _oj_type == 'undefined' || _oj_type == null) {
	_oj_type = 'all';
}

if (typeof _oj_width == 'undefined' || _oj_width == null) {
	_oj_width = '500';
}

if (typeof _oj_theme == 'undefined' || _oj_theme == null) {
	_oj_theme = 'light';
}

if (typeof _oj_limit == 'undefined' || _oj_limit == null) {
	_oj_height = 230;
	_oj_limit = 5;
} else {
	switch(_oj_limit) {
	case 3:
		_oj_height = 180;
	  	break;
	case 5:
		_oj_height = 230;
		break;
	case 10:
		_oj_height = 380;
	  	break;	
	default:
		_oj_height = 230;
		_oj_limit = 5;	  
	}	
}

iframe = document.createElement("iframe");
iframe.setAttribute("id", "openjobs-widget");
iframe.setAttribute("frameborder", "0");
iframe.setAttribute("scrolling", "no");

iframe.width = _oj_width + "px";
iframe.height = _oj_height + "px";

script_ = document.getElementById('openjobs-js-widget');

script_.parentNode.insertBefore( iframe, script_.nextSibling );

_oj_widget_url = 'http://openjobs.com.br/widget/widget.php?theme=' + _oj_theme + '&limit=' + _oj_limit + '&type=' + _oj_type;

iframe.setAttribute("src", _oj_widget_url);