function emptyLogin(element, text){
  if($(element).val() == text){
    $(element).val('');
  }else if($(element).val() == ''){
      $(element).val(text);
  }
}

  slideProduct = function(object){
  if($(object).height() == '115'){
    $(object).dialog({
      'height': 200,
      'modal': true
    });
  } else {
    $(object).dialog({
      'height': 115,
      'modal': true
    });
  }
}

function showVideopopup(id, title) {
    $(id).dialog({title:title}); 
    $(id).dialog('open');
}

$(document).ready(function() {
  $("#slider").easySlider({
    continuous: true,
    numeric: true,
    speed: 300
  });
  
  $("#movieplayerOT").dialog({
    modal: true,
    draggable: false,
    resizable: false,
    autoOpen: false,
    width: 585,
    height: 455,
    position: ["center","center"],
    closeText: "Venster sluiten",
    show: "clip"
  });
 
  $("#movieplayerFocus").dialog({
    modal: true,
    draggable: false,
    resizable: false,
    autoOpen: false,
    width: 585,
    height: 455,
    position: ["center","center"],
    closeText: "Venster sluiten",
    show: "clip"
  });

  /**
	 * HOUD DEZE ONDERAAN DEZE .js FILE, DINGEN HIERONDER WORDEN SOMS NIET
	 * UITGEVOERD.
	 *
	 * Rich text editor: ckEditor
	 * Only show when firebug is nonactive, due to slowness.
	 * Updating to firebug 1.5 is needed
	 * CSS class: 'richtext'
	 */
  if(!($.browser.mozilla && window.console)){
//$('.richtext').ckeditor();
}
});


