/* set highlighted image */
/* status : string ('hi'|'lo') */
function chgImg(obj, status) {
  if (obj && obj.src) {
    var re = new RegExp('_(lo|hi)\.(gif|png|jpg)');
    obj.src = obj.src.replace(re, '_'+status+'.$2')
  }
}


/* init and show first layer */
function initRezeptLayer() {
  $.blockUI({ fadeOut:  1, message: $('#modalContainer') , css: { backgroundColor: 'transparent', border: 'none', textAlign:'left', top:'30px', left:'25%',cursor:'default' }});
  $('#tvspot_rezept_step1').show();
  $('.tvspot_rezept_bg1').show();
  $('.siteutilities_container').css('z-index','0');
  $('#MediaPlayer').css('visibility','hidden');
  $('.teaser_container').css('z-index','0');
  //$('#overlay').removeClass('invisible').addClass('visible');
  //$('#tvspot_rezept_step1').removeClass('invisible').addClass('visible');
  $('#tvspot_rezept_step1').focus();
}


/* show layer i (and hide all other) */
function showStep(i) {
	$('.tvspot_rezept').hide();
	$('.tvspot_rezept_bg').hide();
	$('#tvspot_rezept_step'+i).show();
	$('.tvspot_rezept_bg'+i).show();
  $('#tvspot_rezept_step'+i).focus();
}

/* just hide all layers */
function destructRezeptLayer() {
	$('.tvspot_rezept').hide();
	$('.tvspot_rezept_bg').hide();
	$.unblockUI();
	$('#MediaPlayer').css('visibility','visible');
}
function hideLayer(){
	$.unblockUI();
}
