/*
 * Insert TYNT-tracking
 *
 */


if(document.location.protocol=='http:'){
 var Tynt=Tynt||[];Tynt.push('cWS-t-6n4r37B_adbi-bpO');Tynt.i={"b":true,"ap":"Läs mer på:","ba":true};
 (function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}



	 
$(document).ready(function() {
	// Loads Facebook JS SDK, if FBML is used.
	if($(".fb-content").length > 0) {
		$(".fb-content").prepend("<div id=\"fb-root\"></div")
		window.fbAsyncInit = function() {
		  FB.init({appId: '147696315257702', status: true, cookie: true,
		           xfbml: true});
		};
		(function() {
		  var e = document.createElement('script'); e.async = true;
		  e.src = document.location.protocol +
		    '//connect.facebook.net/sv_SE/all.js';
		  document.getElementById('fb-root').appendChild(e);
		}());
	}

	 

	/*
	 * Inits all functions for homepage
	 */
	YATIMA.validate_fields("#form-comment");
	YATIMA.populate_with_label(".field");
	YATIMA.make_div_float("#menu-float");
	YATIMA.highlight_comment();
	YATIMA.set_layerheight();
	YATIMA.gallery();
	YATIMA.set_roles({
		navigation: "#menu ul, #footer-menu ul",
		main: "#content-primary",
		contentinfo: "#footer-contact",
		banner: "#header"
	});
}); 
