/*
 * DEFINE 
 * 	var gj_sel
 * FIRST!
*/
/* global variables */
var gj_Host;
if (location.hostname.indexOf('gastrojobs.com')<0) {
	gj_Host = 'http://www.gastrojobs.com';
} else {
	gj_Host = 'http://'+location.hostname;
}
var gj_Search=gj_Host+'/Search/Text';
var gj_elInput='searchInput';
var gj_charset=(document.charset||document.characterSet);


var debug = 0;

/* template specific stuff */
var gj_templates= new Array();
gj_templates['gj'] = new Array();
gj_templates['gj']['img']=gj_Host+'/static/images/search/quick/field_fast.gif';
gj_templates['gj']['height']='65px';
gj_templates['gj']['width']='185px';
gj_templates['gj']['color']='#666';
gj_templates['gj']['margin']='5px 0px 5px 0px';
gj_templates['gj']['border']='';
gj_templates['gj']['border_hover']='';
gj_templates['gj']['form'] = (debug)?'border:1px solid navy;':'border:0px none;';
gj_templates['gj']['home'] = new Array();
gj_templates['gj']['home']['height'] = '41';
gj_templates['gj']['input'] = (debug)?'border:1px solid red;':'border:0px none;';
gj_templates['gj']['input']+='margin:0px auto 0px 25px;';
gj_templates['gj']['input']+='padding:0px;color:rgb(102, 102, 102);';
gj_templates['gj']['input']+='font-size:10px;';
gj_templates['gj']['input']+='background-color:transparent;';
gj_templates['gj']['input']+='height:13px;';
gj_templates['gj']['input']+='width:120px;';
gj_templates['gj']['submit'] = (debug)?'border:1px solid blue;':'border:0px none;';
gj_templates['gj']['submit']+='cursor:pointer;';
gj_templates['gj']['submit']+='background-color:transparent;';
gj_templates['gj']['submit']+='display:inline;';
gj_templates['gj']['submit']+='width:25px;';
gj_templates['gj']['submit']+='height:20px;';
gj_templates['small_button_1'] = new Array();
gj_templates['small_button_1']['img']=gj_Host+'/static/images/search/quick/smallbutton1.gif';
gj_templates['small_button_1']['height']='58px';
gj_templates['small_button_1']['width']='120px';
gj_templates['small_button_1']['color']='#666';
gj_templates['small_button_1']['margin']='0px';
gj_templates['small_button_1']['border']='1px solid #BBB;';
gj_templates['small_button_1']['border_hover']='1px solid black';
gj_templates['small_button_1']['form']= (debug)?'border:1px solid navy;':'border:0px none;';
gj_templates['small_button_1']['home'] = new Array();
gj_templates['small_button_1']['home']['height'] = '36';
gj_templates['small_button_1']['input'] = (debug)?'border:1px solid red;':'border:0px none;';
gj_templates['small_button_1']['input']+='margin:0px auto 0px 11px;';
gj_templates['small_button_1']['input']+='padding:0px;color:rgb(102, 102, 102);';
gj_templates['small_button_1']['input']+='font-size:10px;';
gj_templates['small_button_1']['input']+='background-color:transparent;';
gj_templates['small_button_1']['input']+='height:13px;';
gj_templates['small_button_1']['input']+='width:80px;';
gj_templates['small_button_1']['submit'] = (debug)?'border:1px solid blue;':'border:0px none;';
gj_templates['small_button_1']['submit']+='cursor:pointer;';
gj_templates['small_button_1']['submit']+='background-color:transparent;';
gj_templates['small_button_1']['submit']+='display:inline;';
gj_templates['small_button_1']['submit']+='width:25px;';
gj_templates['small_button_1']['submit']+='height:20px;';
gj_templates['full_banner_1'] = new Array();
gj_templates['full_banner_1']['img']=gj_Host+'/static/images/search/quick/fullbanner1.gif';
gj_templates['full_banner_1']['height']='58px';
gj_templates['full_banner_1']['width']='466px';
gj_templates['full_banner_1']['color']='#666';
gj_templates['full_banner_1']['margin']='0px';
gj_templates['full_banner_1']['border']='1px solid #BBB;';
gj_templates['full_banner_1']['border_hover']='1px solid black';
gj_templates['full_banner_1']['form']= (debug)?'border:1px solid navy;':'border:0px none;';
gj_templates['full_banner_1']['home'] = new Array();
gj_templates['full_banner_1']['home']['height'] = '24';
gj_templates['full_banner_1']['input'] = (debug)?'border:1px solid red;':'border:0px none;';
gj_templates['full_banner_1']['input']+='margin:0px auto 0px 85px;';
gj_templates['full_banner_1']['input']+='padding:0px;color:rgb(102, 102, 102);';
gj_templates['full_banner_1']['input']+='font-size:10px;';
gj_templates['full_banner_1']['input']+='background-color:transparent;';
gj_templates['full_banner_1']['input']+='height:13px;';
gj_templates['full_banner_1']['input']+='width:188px;';
gj_templates['full_banner_1']['submit'] = (debug)?'border:1px solid blue;':'border:0px none;';
gj_templates['full_banner_1']['submit']+='cursor:pointer;';
gj_templates['full_banner_1']['submit']+='background-color:transparent;';
gj_templates['full_banner_1']['submit']+='display:inline;';
gj_templates['full_banner_1']['submit']+='width:25px;';
gj_templates['full_banner_1']['submit']+='height:20px;';
gj_templates['treffpunktaustria_1'] = new Array();
gj_templates['treffpunktaustria_1']['img']=gj_Host+'/static/images/search/quick/treffpunktaustria1.gif';
gj_templates['treffpunktaustria_1']['height']='75px';
gj_templates['treffpunktaustria_1']['width']='180px';
gj_templates['treffpunktaustria_1']['color']='#666';
gj_templates['treffpunktaustria_1']['margin']='0px';
gj_templates['treffpunktaustria_1']['border']='none';
gj_templates['treffpunktaustria_1']['border_hover']='none';
gj_templates['treffpunktaustria_1']['form']= (debug)?'border:1px solid navy;':'border:0px none;';
gj_templates['treffpunktaustria_1']['home'] = new Array();
gj_templates['treffpunktaustria_1']['home']['height'] = '41px;';
gj_templates['treffpunktaustria_1']['input'] = (debug)?'border:1px solid red;':'border:0px none;';
gj_templates['treffpunktaustria_1']['input']+='margin:0px auto 0px 47px;';
gj_templates['treffpunktaustria_1']['input']+='padding:0px; color:rgb(102, 102, 102);';
gj_templates['treffpunktaustria_1']['input']+='font-size:10px;';
gj_templates['treffpunktaustria_1']['input']+='background-color:transparent;';
gj_templates['treffpunktaustria_1']['input']+='height:15px;';
gj_templates['treffpunktaustria_1']['input']+='width:94px;';
gj_templates['treffpunktaustria_1']['submit'] = (debug)?'border:1px solid blue;':'border:0px none;';
gj_templates['treffpunktaustria_1']['submit']+='cursor:pointer;';
gj_templates['treffpunktaustria_1']['submit']+='background-color:transparent;';
gj_templates['treffpunktaustria_1']['submit']+='display:inline;';
gj_templates['treffpunktaustria_1']['submit']+='width:30px;';
gj_templates['treffpunktaustria_1']['submit']+='height:22px;';
var gj_tpl = gj_templates[gj_sel];


var gj_style='padding:0px;';
gj_style += 'background-image: url('+gj_tpl['img']+');';
gj_style += 'background-position:0 0;width:'+gj_tpl['width']+';height:'+gj_tpl['height']+';';
gj_style += 'text-align:left;';
gj_style += 'border:'+gj_tpl['border']+';';
gj_style += 'margin:'+gj_tpl['margin']+';';

document.write('<!-- BEGIN OF GASTRO JOBS SEARCH -->');
document.write('<div style="'+gj_style+'"');
document.write(' onmouseout="if (this.childNodes[1][\'s\'].getAttribute(\'focused\')!=1) {');
document.write('  this.style.backgroundPosition=\'0 0\';');
document.write('  this.style.border=\''+gj_tpl['border']+'\';');
document.write(' };" ');
document.write(' onmouseover="');
document.write('  this.style.backgroundPosition=\'0 -'+gj_tpl['height']+'\';');
document.write('  this.style.border=\''+gj_tpl['border_hover']+'\';');
document.write(' " ');
document.write(' id="quicksearch">');
	document.write('<a href="http://www.gastrojobs.com" title="Gastro Jobs"');
	document.write('   target="_new"');
	document.write('   style="display:block;width:100%;height:'+gj_tpl['home']['height']+'px;');
	document.write('margin:0px;padding:0px;border:0px none;">');
		document.write('<img src="http://www.gastrojobs.com/static/images/spacer.gif"');
		document.write('     width="100%" ');
		document.write('     height="'+gj_tpl['home']['height']+'" ');
		document.write('     border="0"/>');
	document.write('</a>');
	document.write('<form');
	document.write(' action="'+gj_Search+'" ');
	document.write(' target="_new" ');
	document.write(' style="margin: 0px;padding:0px;'+gj_tpl['form']+'" ');
	document.write(' onsubmit="var el=this.childNodes[0];');
	document.write('  if (el.value==\'\' || el.value==\'Suchen\' || el.value.length<3) return false;"');
	document.write(' >');
        if (gj_charset) {
            document.write('<input type="hidden" name="charset" value="'+gj_charset+'">');
        }
		document.write('<input ');
		document.write(' onblur="this.setAttribute(\'focused\',0);');
		document.write(' this.parentNode.parentNode.style.backgroundPosition=\'0 0\';');
		document.write('  if(this.value==\'\'){this.value=\'Suchen\';}; this.style.color=\''+gj_tpl['color']+'\';" ');
		document.write(' onfocus="this.setAttribute(\'focused\',1);');
		document.write(' this.parentNode.parentNode.style.backgroundPosition=\'0 -'+gj_tpl['height']+'\';');
		document.write('  if(this.value==\'Suchen\'){this.value=\'\';}" ');
		document.write(' onmouseout="if (!this.getAttribute(\'focused\')) {this.style.color=\''+gj_tpl['color']+'\';}" ');
		document.write(' onmouseover="this.style.color=\'#000\';" ');
		document.write(' value="Suchen" ');
		document.write(' style="'+gj_tpl['input']+' " ');
		document.write(' name="s" ');
		document.write(' id="'+gj_elInput+'" ');
		document.write('/>');
		document.write('<input ');
		document.write(' type="submit" ');
		document.write(' style="'+gj_tpl['submit']+'"');
		document.write(' value="  "');
		document.write('/>');
	document.write('</form>');
document.write('</div>');
document.write('<!-- END OF GASTRO JOBS SEARCH -->');

