var id = 0;
var price = 0.0 ; 
var priceType = 0 ;  // 0 monthly 1 Annual
var edition = '';
var show = true ; 
var annualPrice = 0.0;
var url = ''; 
var showBuy = false;
var group = '' ; 
var currency = '' ; 
var curr ='';


function item(i,p,pt,c){
	
	this.curr = c;
	this.id = i;
	this.price = p;
	this.priceType = pt ; 
	this.edition = edition;
	this.url = url ; 
	
//alert('c ' + c + ' this.curr ' + this.getCurrency());	
	
}

item.prototype.getCurrency = function(){
	return this.curr ; 
}

item.prototype.setCurrency = function(i){
	//this.currency  = i ; 
}

item.prototype.getGroup = function(){
	return this.group ; 
}

item.prototype.setGroup = function(i){
	this.group  = i ; 
}

item.prototype.getShowBuyButton = function(){
	return this.showBuy ; 
}


item.prototype.setShowBuyButton = function(i){
	this.showBuy  = i ; 
}

item.prototype.getShow = function(){
	return this.show ; 
}


item.prototype.setShow = function(i){
	this.show  = i ; 
}


item.prototype.getUrl = function(){
	return this.url ; 
}


item.prototype.setUrl = function(i){
	this.url = i ; 
}

item.prototype.setEdition = function(i){
	 this.edition = i ; 
}

item.prototype.getEdition = function(){
	 return this.edition; 
}


item.prototype.setAnnualPrice = function(i){
	this.annualPrice = i;
}

item.prototype.getAnnualPrice = function(){
	return this.annualPrice ; 
}



item.prototype.setPrice = function(i){
	this.price = i;
}

item.prototype.getPrice = function(){
	return this.price;
}

item.prototype.setId = function(i){
	this.id = i ;
	
}

item.prototype.getId = function(){
	
	return this.id;
}

item.prototype.getPriceType = function(){
	return this.priceType;
}

item.prototype.setPriceType = function(i){
	this.priceType = i  ;
}

item.prototype.toString = function(){
return 	' Item : id ' + this.id + ' price ' + this.price + ' priceType ' + this.priceType  + '  edition ' + this.edition + ' show ' + this.show + ' annualPrice ' + this.annualPrice + ' url '+  this.url + ' showBuy ' + this.showBuy + ' group ' + this.group + ' currency ' + this.currency;
}
