


// Default Settings
getthejob_js_default_width = 250;
getthejob_js_default_height = 250;
getthejob_js_default_color_border = "#000000";
getthejob_js_default_color_background = "#ffffff";
getthejob_js_default_color_text = "#000000";
getthejob_js_default_color_link = "#ff3300";
getthejob_js_default_color_header = "#000000";
getthejob_js_default_color_URL = "#000000";
getthejob_js_default_frameborder = 0;


// Setup
var w = window;
getthejob_js_pagelocation = document.location;

//var getthejob_js_load_URL = '/JobLister/showjobs.aspx';
//var getthejob_js_load_URL = 'http://stage.getthejob.corp/JobLister/showjobs.aspx';
var getthejob_js_load_URL = 'http://getthejob.com/JobLister/showjobs.aspx';
//var getthejob_js_load_URL = 'http://qa.getthejob.com/JobLister/showjobs.aspx';
//var getthejob_js_load_URL = 'http://localhost/GTJ.Public/JobLister/showjobs.aspx';

//document.write(getthejob_js_load_URL);

// Check to use default values
if (w.getthejob_js_width == null) {  getthejob_js_width = getthejob_js_default_width;}
if (w.getthejob_js_height == null) {  getthejob_js_height = getthejob_js_default_height;}
if (w.getthejob_js_frameborder == null) {  getthejob_js_frameborder = getthejob_js_default_frameborder;}
if (w.getthejob_js_color_border == null) {  getthejob_js_color_border = getthejob_js_default_color_border;}
if (w.getthejob_js_color_background == null) {  getthejob_js_color_background = getthejob_js_default_color_background;}
if (w.getthejob_js_color_text == null) {  getthejob_js_color_text = getthejob_js_default_color_text;}
if (w.getthejob_js_color_link == null) {  getthejob_js_color_link = getthejob_js_default_color_link;}
if (w.getthejob_js_color_header == null) {  getthejob_js_color_header = getthejob_js_default_color_header;}
if (w.getthejob_js_color_URL == null) {  getthejob_js_color_URL = getthejob_js_default_color_URL;}


// Build the full URL
getthejob_js_load_URL_complete = getthejob_js_load_URL + '?' + 'GTJ_getthejob_js_pubid=' + getthejob_js_pubid;

if (w.getthejob_js_search_keyword != null) {
  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete +
    "&q=" + escape(getthejob_js_search_keyword);
} else {
   getthejob_js_load_URL_complete = getthejob_js_load_URL_complete +
    "&q=" + '';
}

if (w.getthejob_js_width) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&w=" + escape(getthejob_js_width);}
if (w.getthejob_js_height) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&h=" + escape(getthejob_js_height);}
if (w.getthejob_js_frameborder) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&fb=" + escape(getthejob_js_frameborder);}
if (w.getthejob_js_color_border) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&cb=" + escape(getthejob_js_color_border);}
if (w.getthejob_js_color_background) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&cbg=" + escape(getthejob_js_color_background);}
if (w.getthejob_js_color_text) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&ct=" + escape(getthejob_js_color_text);}
if (w.getthejob_js_color_link) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&cl=" + escape(getthejob_js_color_link);}
if (w.getthejob_js_color_header) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&ch=" + escape(getthejob_js_color_header);}
if (w.getthejob_js_color_URL) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&cURL=" + escape(getthejob_js_color_URL);}
if (w.getthejob_js_pubid) {  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete + "&aff=" + escape(getthejob_js_pubid);}

if (w.getthejob_js_search_location) {
  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete +
    "&l=" + escape(getthejob_js_search_location);
}

if (w.getthejob_js_pagelocation) {
  getthejob_js_load_URL_complete = getthejob_js_load_URL_complete +
    "&pagelocation=" + escape(getthejob_js_pagelocation);
}

getthejob_js_load_URL_complete = getthejob_js_load_URL_complete +
  "&uvtime=" + (new Date()).getTime();
  
// Write it out!
if (! w.ctxt_ad_brs) {
document.write(
  '<ifr' + 'ame' +
  ' src=' + getthejob_js_load_URL_complete +
  ' width=' + getthejob_js_width +
  ' height=' + getthejob_js_height +
  ' frameborder=' + getthejob_js_frameborder +
  ' hspace=0' +
  ' vspace=0' +
  ' scrolling=no' +
  ' marginwidth=0' +
  ' marginheight=0' +
  ' allowtransparency=true' +
  ' name=gtjiframe1></ifr' + 'ame>'
);
}

//document.write(getthejob_js_load_URL_complete);

// Null for you.
getthejob_js_pagelocation = null;
getthejob_js_pubid = null;
getthejob_js_search_keyword = null;
getthejob_js_search_location = null;
getthejob_js_width = null;
getthejob_js_height = null;
getthejob_js_frameborder = null;
getthejob_js_color_border = null;
getthejob_js_color_background = null;
getthejob_js_color_text = null;
getthejob_js_color_link = null;
getthejob_js_color_header = null;
getthejob_js_color_URL = null;
