/**
	Head Loader: The ultimate JavaScript loader. Can be used as a standalone tool.

	copyright: "tipiirai" / Tero Piirainen
	license: MIT
*/

(function(c){function e(a){var b=i[a.url||a];if(b)return b;if(typeof a=="object")for(var d in a)a[d]&&(b={name:d,url:a[d]});else b={name:a.substring(a.indexOf("/",10)+1,a.indexOf("?")),url:a};return i[b.url]=b}function f(a,b){if(a){typeof a=="object"&&(a=[].slice.call(a));for(var d=0;d<a.length;d++)b.call(a,a[d],d)}}function g(a){return Object.prototype.toString.call(a)=="[object Function]"}function j(){f(arguments,function(a){g(a)||t(e(a))})}function n(a){a.state="preloaded";f(a.onpreload,function(a){a.call()})}
function t(a){if(!a.state)if(a.state="preloading",a.onpreload=[],/Firefox/.test(navigator.userAgent)){var b=c.createElement("object");b.data=a.url;b.width=0;b.height=0;b.onload=function(){n(a);setTimeout(function(){k.removeChild(b)},1)};k.appendChild(b)}else o({src:a.url,type:"cache"},function(){n(a)})}function l(a,b){if(a.state=="loaded")return b();if(a.state=="preloading")return a.onpreload.push(function(){l(a,b)});a.state="loading";o(a.url,function(){a.state="loaded";b&&b.call();f(m[a.name],function(a){a.call()});
var d=true,c;for(c in i)i[c].state!="loaded"&&(d=false);d&&f(p,function(a){a.done||a.call();a.done=true})})}function o(a,b){var d=c.createElement("script");d.type="text/"+(a.type||"javascript");d.src=a.src||a;d.onreadystatechange=d.onload=function(){if(!b.done)b.call(),b.done=true;document.all||k.removeChild(d)};k.appendChild(d)}var k=c.documentElement,q=false,r=[],p=[],m={},i={},s=window.head_conf&&head_conf.head||"head",h=window[s]=window[s]||{};h.js=function(){var a=arguments,b=[].slice.call(a,
1),d=b[0];if(!q)return r.push(function(){h.js.apply(null,a)}),h;d?(g(d)||j.apply(null,b),l(e(a[0]),g(d)?d:function(){h.js.apply(null,b)})):l(e(a[0]));return h};h.ready=function(a,b){if(g(a))return p.push(a);var d=m[a];d?d.push(b):m[a]=[b];return h};setTimeout(function(){q=true;f(r,function(a){a.call()})},200)})(document);if(!window.rtp)window.rtp={};
(function(){var c=[],e={},f=function(){if(typeof jQuery!=="undefined"&&typeof e.jquery==="undefined")e.jquery=false,jQuery(function(){e.jquery=true;f()});if(typeof head!=="undefined"&&typeof e.headjs==="undefined")e.headjs=false,head.ready(function(){e.headjs=true;f()});var g=true,j;for(j in e)if(e[j]===false){g=false;break}if(g)for(;c.length;)c.shift()()};rtp.ready=function(){c=c.concat(Array.prototype.slice.call(arguments));f()};rtp.ready.prerequisite=function(c){e[c]=false;return function(){e[c]=
true;f()}};rtp.isFn=function(c){return Object.prototype.toString.call(c)=="[object Function]"};rtp.log=function(c){typeof console!=="undefined"&&rtp.isFn(console.log)&&console.log(c)}})();typeof rtp=="undefined"&&(rtp={});rtp.claim=function(c){c=c[Math.floor(Math.random()*c.length)];c.text=c.text.replace("\n","<br/>");document.write('<p class="title">'+c.title+' </p><p class="emphasis">'+c.text+" </p>")};rtp.ready(function(){jQuery("div.teaser p").hide().css("visibility","visible").fadeIn(250)});

