/* IE Array indexOfFix */
if(!Array.indexOf){Array.prototype.indexOf = function(obj){for(var i=0; i<this.length; i++){if(this[i]==obj){return i;}}return -1;}}
var docH = 0;
var docW = 0;
var bodyW = 0;
var loadedJS = [];
//--

Array.prototype.sum = function(){
	for(var i=0,sum=0;i<this.length;sum+=parseFloat(this[i++]));
	return sum;
}
Array.prototype.max = function(){
	return Math.max.apply({},this)
}
Array.prototype.min = function(){
	return Math.min.apply({},this)
}

function include(file){ 
	if (loadedJS.indexOf(file) == -1)
	{
		loadedJS.push(file);
		var fileref=document.createElement('script');
  		fileref.setAttribute("type","text/javascript");
  		fileref.setAttribute("src",file);
  		document.getElementsByTagName("body")[0].appendChild(fileref);
	}
  }
function includeNoCache(file){ var ms = new Date().getTime().toString(); include(file+'?'+ms); }
//--
function pageWidth() {return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ?       document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;} function pageHeight() {return  window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ?  document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null;} function posLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset :document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0;} function posTop() {return typeof window.pageYOffset != 'undefined' ?  window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;} function posRight() {return posLeft()+pageWidth();} function posBottom() {return posTop()+pageHeight();}
//--
function unique_requestid() {
var timestamp = Number(new Date()).toString();
var random = Math.random() * (Math.random() * 100000 * Math.random() );
var unique = new String();
unique = timestamp + random;
return unique;
}
function bodyWidth(w)
{
	//return (w < 1199) ? 980 : (w > 1199) ? 1200 : "auto";
	return 1000;
}

//--
docW = pageWidth();
docH = pageHeight();
bodyW = bodyWidth(docW);

var href = 'http://inntegro.pl/';
