function loadCSS(url)
{
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = url;
link.media = 'all';
head.appendChild(link);
}
function loadJS(url, implementationCode, location)
{
var scriptTag = document.createElement('script');
scriptTag.src = url;
scriptTag.charset = 'windows-1251';
if(implementationCode)
{
scriptTag.onload = implementationCode;
scriptTag.onreadystatechange = implementationCode;
}
location.appendChild(scriptTag);
};
function code1()
{
loadJS('http://x-love.com/util/feed.js', code2, document.head);
}
function code2()
{
trafogon("trafogon_1");
trafogon("trafogon_2");
}
loadCSS('http://x-love.com/util/feed.css');
loadJS('http://x-love.com/res/ankets.js', code1, document.head);