$(document).ready(function() {

		
	$("#topnav li ul li").last().addClass('last');
	$("#topnav li").last().addClass('last');
	$("#footer-menu li").last().addClass('last');
	
	$("a.photobox, a[rel=lightbox], a[rel=photobox]").fancybox({
		'zoomSpeedIn'	: 100, 
		'zoomSpeedOut'	: 100,
		'overlayShow'	: true,
		'frameWidth'	: 700
	});  

	if ((screen.width<=1335) && (screen.height<=887))
	{
/* 		alert('Screen size: less than 1335x887'); */
		//$("#stylesheet").attr({href : "/templates/css/detect-small.css"});
	}
	
	
	$(".readmore").click(function(){
			$("#readmore-text").show(500);
			$(".readmore").hide();

			return false;
	});
	
});









