$(document).ready(function() {
	$(document).pngFix();
	
	var container_height = parseInt($('#container').height())+60;
	//alert("container height: "+ container_height +" doc height: "+ parseInt($(document).height()));
	if(parseInt($(document).height()) <= container_height)
		$('#footer').css('top', container_height +"px");
});

var gillsans = { src: template_directory +'/gillsans.swf' };
sIFR.activate(gillsans);

sIFR.replace(gillsans, {
	selector: '#body h1',
	css: {'.sIFR-root': { 'color': '#ffffff', 'font-size': '35px' }, 'a': {'color': '#ffffff'}, 'a:hover': {'color': '#ffffff', 'text-decoration': 'underline'}},
	wmode: 'transparent'
});

sIFR.replace(gillsans, {
	selector: '#body h2',
	css: {'.sIFR-root': { 'color': '#ffffff', 'font-size': '20px' }, 'a': {'color': '#ffffff'}, 'a:hover': {'color': '#ffffff', 'text-decoration': 'underline'}},
	wmode: 'transparent'
});

sIFR.replace(gillsans, {
	selector: '#body h3',
	css: {'.sIFR-root': { 'color': '#ffffff', 'font-size': '16px', 'leading': '5' }, 'a': {'color': '#ffffff'}, 'a:hover': {'color': '#ffffff', 'text-decoration': 'underline'}},
	wmode: 'transparent'
});

sIFR.replace(gillsans, {
	selector: '#body h4',
	css: {'.sIFR-root': { 'color': '#ffffff', 'font-size': '16px' }, 'a': {'color': '#ffffff'}, 'a:hover': {'color': '#ffffff', 'text-decoration': 'underline'}},
	wmode: 'transparent'
});

var addthis_config = {
     ui_language: "sv"
}
