﻿Shadowbox.init({counterType:'skip',player:'html',overlayOpacity:0.6,handleOversize:'drag',displayNav:true});
function getByAjax(co,wi,he)
{ var tresc=$.ajax({ type: "GET", url: co, async: true, beforeSend: function(xhr){xhr.setRequestHeader('XMLHttpRequest','');}}).responseText;   
  window.onload = function() 
  { Shadowbox.open({content:'tresc',height:he,width:wi});
  }
}
//window.onload = function(){
//  var xhr = new XMLHttpRequest();
//  xhr.open("GET","http://dev.go3.pl/~rkosmala/cms/trunk/public_html/czytaj/58", true);
//  xhr.onreadystatechange = function(){
//    if ( xhr.readyState == 4 ) {
//      if ( xhr.status == 200 ) {
//      	Shadowbox.open({content:'xhr.responseText',player:'iframe',height:he,width:wi});
//      } else {
//      }
//    }
//  };
//  xhr.send(null);
//};


