FLIR.init( { path: '/webproperties/flir/' } );
// Or, you can pass an array of selectors to the auto function to be replaced.
FLIR.replace( 'h1' , new FLIRStyle({ cFont:'walkwayblack' }) );
FLIR.replace( 'h2' , new FLIRStyle({ cFont:'walkwayblack' }) );
FLIR.replace( 'a.button' , new FLIRStyle({ cFont:'walkwayblack' }) );

FLIR.replace( 'a#clara' , new FLIRStyle({ cFont:'walkwayblack' }) );
FLIR.replace( 'a#devries' , new FLIRStyle({ cFont:'walkwayblack' }) );

$(document).ready(function()
{
	var zoom;
	if(screen.width <= 1280)
	{
		zoom =0.9;
		document.getElementById("zoom").style.zoom = 0.90;
				$("#zoom").css("-moz-transform","scale(0.9, 0.9) translate(-5em,-3em)");
	}
	if(screen.width <= 1152)
	{
		//zoom =0.99;
		document.getElementById("zoom").style.zoom = 0.7;
		$("#zoom").css("-moz-transform","scale(0.7, 0.7) translate(-14em,-13em)");
	}
	

	//$("#zoom").css("left","-170px");
	//$("#zoom").css("top","-160px");
	//$("#textbox").style = "zoom:1; -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#60000000, endColorstr=#60000000);";
	
	if($(document).height() > $(window).height())
	{
		
			var top = $("#zoom").height();
	}
		else
			var top = $(document).height()-60;

	var left = $(document).width() - 200;
  $("#footertext").css({ left: left-100 + "px",  top: top +"px", fontSize: "12px" });
  //if($("#laurakok") != undefined)
 //  $("#laurakok").css({ left: left-40 + "px",  top: top+20 +"px", fontSize: "12px" });
 //  if($("#renenijhof") != undefined)
  //  $("#renenijhof").css({ left: left + "px",  top: top+20 +"px", fontSize: "12px" });
});

	$("#text img").each( function() {
		 $(this).wrap("<a href=\""+$(this).attr('src')+"\"></a>");
        $('#text a').lightBox();
	});
	$('img').load(function() {
		if($(document).height() > $(window).height())
			var top = $("#zoom").height();
		else
			var top = $(document).height()-60;
			
			var left = $(document).width() - 200;
	$("#footertext").css({  left: left-100 + "px", top: top +"px", fontSize: "12px" });
FLIR.replace( 'a#nijhofdesign' , new FLIRStyle({ cFont:'walkwayblack' }) );
FLIR.replace( 'span#renenijhof' , new FLIRStyle({ cFont:'walkwayblack' }) );
FLIR.replace( 'a#laurakok' , new FLIRStyle({ cFont:'walkwayblack' }) );
});

