
	onloadHooks.push(function(){
		doSlide();
	});

	function doSlide(){

		var start = 1;
		var initId = 0;
		var el = $('jobsRowsStart').getChildren();
		var amount = el.length - 1;

		for(var i=0; i < el.length; i++){
			el[i].set('id','stepJob_'+i);
		}

		$('downJob').addEvent('click',function(e){
			if(initId != amount){
				initId = initId+1;
			}else{
//				initId = 0;
			}
			var scroll = new Fx.Scroll('jobsRowsStart');
			scroll.toElement('stepJob_'+initId);
			$('stepJob_'+initId).setStyle('display','block');
		});

		$('upJob').addEvent('click',function(){
			if(initId != 0){
				initId = initId-1;
			}else{
//				initId = amount;
			}
			var scroll = new Fx.Scroll('jobsRowsStart');
			scroll.toElement('stepJob_'+initId);
			$('stepJob_'+initId).setStyle('display','block');
		});

	}


	/* JS zum Auslesen der Positionen und Locations im gestylten Dropdown! */

	function getValue(){

		var posName = $('position').getChildren()[$('position').selectedIndex].text;

		document.getElementById('fakePosition').value = posName;
		document.getElementById('form').submit();
	}

	function getValueLoc(){

		var locName = $('location').getChildren()[$('location').selectedIndex].text;

		document.getElementById('fakeLocation').value = locName;
		document.getElementById('form').submit();
	}
