var loader = '<image src="http://www.prv.pl//static/image/webring/webring-loader.gif" style="width:280px;"/>';
var host = "http://www.prv.pl/";


var css;
function include_css(css_file) {
    var html_doc = document.getElementsByTagName('head')[0];
    css = document.createElement('link');
    css.setAttribute('rel', 'stylesheet');
    css.setAttribute('type', 'text/css');
    css.setAttribute('href', css_file);
    html_doc.appendChild(css);
    
    return true;
}

var js;
function include_js(file) {
    var html_doc = document.getElementsByTagName('head')[0];
    js = document.createElement('script');
    js.setAttribute('type', 'text/javascript');
    js.setAttribute('src', file);
    html_doc.appendChild(js);

    return true;
}
//add styles
include_css("http://www.prv.pl//css-webring/id,801");

document.write('<table id="prv-webring-801" cellpadding="0" cellspacing="0"><tr><td>');
document.write(loader);
document.write('</td></tr></table><!--(/)prv-webring-801-->');

//add init function only ones
if ( !window.prv_webring_init ) {
  //add jquery
  if (!window.jQuery)
    include_js("http://www.prv.pl//static/pl/js/jquery.js");
  
  date = new Date(); //TODO usunac date - data przy testowaniu zeby wymusic na przegladarce pobieranie js-a
  //add prv_probe_init
  include_js("http://www.prv.pl//static/pl/js/webring/webring.js"+'?'+date.getTime());
}
