function blurAnchors(){
if(document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
//collect all anchors A
for(var i = 0; i < a.length; i++){
// mouse onfocus, blur anchors
a[i].onfocus = function(){this.blur();};
}
}
}

window.onload = blurAnchors;

$(document).ready(function(){


	
	$("div.miniatures a").click(function(event){
		event.preventDefault();
		
		var id = $(this).attr("href");
		var rel = $(this).attr("data-rel");						
		var alt = $(this).find('img').attr("alt");		
		var img = new Image();
	  
	  $("div.big_foto div").hide();
     $("div.big_foto img").hide().load(function() {
		  $("div.big_foto a").attr('href',id);
  		  $("div.big_foto a").attr('data-rel',rel);	
  		  $("div.big_foto a").attr('title',alt);
  		  $("div.big_foto a img").attr('alt',alt);			
		  $("div.big_foto div").html(alt);
	  	  $(this).fadeIn("slow");
	  	  $("div.big_foto div").fadeIn("slow");			
	  }).attr('src', id);
		
		return false;
	});	
	
 /*	$('div#newsticker marquee').marquee('pointer').mouseover(function () {
	  $(this).trigger('stop');
	}).mouseout(function () {
	  $(this).trigger('start');
	}).mousemove(function (event) {
	  if ($(this).data('drag') == true) {
	    this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
	  }
	}).mousedown(function (event) {
	  $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
	}).mouseup(function () {
	  $(this).data('drag', false);
	}); 
	
	$(window).bind('resize', function() {
		$('div#newsticker > div').css('width',$(window).width());
		$('div#newsticker > div > div').css('padding-left',$(window).width());
		$('div#newsticker > div > div').css('padding-right',$(window).width());		
	}); */	
	
});
