﻿Shadowbox.init(
	{
		counterType:'default',
		//player:'html',
		overlayOpacity:0.4,
		language: "pl",
		handleOversize:'drag'
	}
);


function getByAjax(co,wi,he)
{ var tresc=$.ajax({ type: "GET", url: co, async: true, beforeSend: function(xhr){xhr.setRequestHeader('XMLHttpRequest',1);}}).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);
//};


