//------------------------------------
//:::::::: Objekti :::::::::::::::::::
function Group(id,name,childCnt,itemCnt,offerCnt,descript,path) {
	this.id = id;
	this.name = name;
	this.descript = descript;
	this.path = path;
	this.childCnt = childCnt;
	this.itemCnt = itemCnt;
	this.offerCnt = offerCnt;
	this.childLoading = false;
	this.childLoaded = false;
	this.itemsLoading = false;
	this.itemsLoaded = false;
	this.offersLoading = false;
	this.offersLoaded = false;
	this.filter = '';
	this.state = '';
	this.groups = new Array();
	this.items = new Array();
	this.offers = new Array();
	this.pageLoaded = new Array();
}

function Item(id,name,img,vpc,rabat,akcija) {
	this.id = id;
	this.name = name;
	this.img = img;
	this.vpc = vpc;
	this.mpc = vpc;
	this.rabat = rabat;
	this.price = vpc * (1. - rabat);
	this.akcija = akcija;
}

function Doc(id,html) {
	this.id = id;
	this.html = html;
}

function Offer(id,title,text,img,vpc,rabat) {
	this.id = id;
	this.title = title;
	this.text = text;
	this.img = img
	this.vpc = vpc;
	this.mpc = vpc;
	this.rabat = rabat;
	this.price = vpc * (1. - rabat);
}

function News(id,datum,title,img,text,linkItem,linkURL) {
	this.id = id;
	this.datum = datum;
	this.title= title;
	this.img = img;
	this.text = text;
	this.linkItem = linkItem;
	this.linkURL = linkURL;
}

function Headlines(id,datum,title,text) {
	this.id = id;
	this.datum = datum;
	this.title= title;
	this.text = text;
}
//::::::::::::::::::::::::::::::::::::
