var speler = null;
var sb_actie = null;

$(document).ready(function() {
						   
  $("img[@src$=sploeng-logo.png], #logo").ifixpng();						   

  $("#link-focus-zoekbox").click(function() {
										  
    var t = $("#target-404").html();										  
	$("#s").val(t);								   
    $("#s").focus();
    $("#s").select();
  
  });

  $("#link-add-to-favs").click(function() {
	var url = escape($(this).attr("rel"));
	setFav(url);
  });

});


function setFav(url) {
  var url = unescape(url);
  var tekst = "Sploeng. Elke keer een andere jas.";
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
	  window.external.AddFavorite(url,tekst);
  }
  else {
	if ( window.sidebar && window.sidebar.addPanel ) {
	  window.sidebar.addPanel(tekst,url,""); 
	}
	else { 
	  alert("Om Sploeng! te bookmarken gebruik je de toestcombinatie CTRL+D");
   }
  }
}
