
// var thebox = '<form name="mjnd" action="http://www.myjobnextdoor.eu/index.php" method="get"><input type="hidden" name="page" value="show_jobs" /><input type="text" name="where" value="Job suchen in..." /></form>';

var thebox = '';
var thestyle = '';


if(typeof mjnd_format=='undefined'){
	mjnd_format = 'default';
}

if(typeof mjnd_border!='undefined'){
	thestyle += 'border: 3px solid #'+mjnd_border+';';
}


if(typeof mjnd_background!='undefined'){
	thestyle += 'background: #'+mjnd_background+';';
}

if(typeof mjnd_color!='undefined'){
	thestyle += 'color: #'+mjnd_color+';';
}


switch(mjnd_format){
	case '468x60':
		thestyle += 'width: 468px; height: 54px;line-height: 24px; text-align:center;';
		var theform = '<form name="mjnd" target="_blank" action="http://www.myjobnextdoor.com/index.php?id=6" method="get" style="margin: 0; padding: 0;"><a href="http://www.myjobnextdoor.com"><img src="http://www.myjobnextdoor.com/fileadmin/templates/images/logo-468.gif" style="border: none; float:left; margin: 0 8px 0 0;"/></a>'+
									'<input type="hidden" name="id" value="6" /><strong>Mit uns findest du deinen Job!</strong><br /><input type="text" name="stadt" value="Ort eingeben" />&nbsp;&nbsp;&nbsp;<input type="submit" value="Jobsuche starten"></form>';
		break;
	case '125x125':
		thestyle += 'width: 119px; height: 119px;';
		var theform = '<form name="mjnd" target="_blank" action="http://www.myjobnextdoor.com/index.php?id=6" method="get" style="margin: 0; padding: 0;"><center><a href="http://www.myjobnextdoor.com"><img src="http://www.myjobnextdoor.com/fileadmin/templates/images/logo-125.gif" style="border: none; display: block; margin-bottom: 4px;"/></a>'+
									'<input type="hidden" name="id" value="6" /><input type="text" name="stadt" value="Ort eingeben" size="20" style="width: 90px; "/>&nbsp;<input type="submit" value="Job suchen" style="margin-top: 6px;"></center></form>';
	  break;
	default:
		var theform = '<form name="mjnd" target="_blank" action="http://www.myjobnextdoor.com/index.php?id=6" method="get" style="margin: 0; padding: 0;">'+
									'<input type="hidden" name="id" value="6" /><input type="text" name="stadt" value="Ort eingeben" />&nbsp;<input type="submit" value="Job suchen" size="20"></form>';
	
}


thebox = 	'<div style="'+thestyle+'overflow: hidden; font-family: arial, sans-serif; font-size: 12px; padding: 0;">'+theform+
							'</div>';

document.writeln(thebox);