// griffelkunst global.js - mark blasius webdesign

$(document).ready(function(){

	// simple check for touch devices
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))||(navigator.userAgent.match(/Android/i))) {
		var isTouchScreen = 1;
	}
	else {
		var isTouchScreen = 0;
	}


	if (isTouchScreen) {

	}
	else {
		// animate scroll top
		$(window).scroll(function(){
			if($(window).scrollTop() > 220){
				$('#scrolltop').fadeIn(100);
			}
			else {
				$('#scrolltop').fadeOut(100);
			}
		});

		$('#scrolltop').click(function(){
			$('html, body').animate({scrollTop:0}, 500);
			return false;
		});
	}

	$('table#singlesheets tr:even').addClass('even');

// layout fixes - no dotted outline on hover, focus
	$('.contentcenter.selection a.selectionentry:nth-child(13n)').css('margin-right','0');

	$('a').focus(function() {
  		$(this).blur();
	});
});
