

	function nextImage(img){
	
		var url			= img.src
		var matches		= url.match(/(.+\/jobs\/)(\w+)\/(.+)/)
		
		var code		= matches[2]
		var filepath	= matches[1]
		var filename	= matches[3]
		
		var n			= 0
		var images		= cache.images[code]
		for(i = 0; i < images.length; i++){
			if(images[i] == filename){
				n = i < images.length - 1 ? i + 1 : 0
				break
				}
			}

		img.src = filepath + code + '/' + images[n]
		
		$('#cycle-images-'+code).hide()

		}


	function showTip(div, state){
		div.style.position = 'relative'
		var tip = $('.tip', div)
		tip.addClass('tip-positioned')
		state ? tip.show() : tip.hide()
		}
