package classes.matuto.core
{
	
	
	/*
	
		Objeto responsavel no do Config do 
		sitemaps
	
		autor: gustavo cosme
		data:  18/maio/2011
	
	*/
	
	
	public class Config extends Object
	{
		
		private var xmlList:XMLList;
		
		
		public function Config(_xmlist:XMLList)
		{
			super();
			
			xmlList = _xmlist;
			
			
		}
		
		public function get getTitle():String
		{
			return xmlList.title;
		}
		
		public function get getGateway():String
		{
			return xmlList.gateway;
		}
		
		public function get getNomePHP():String
		{
			return xmlList.nomePHP;
		}
		
		public function get getDefaultModule():String
		{
			return xmlList.defaultModule;
		}

		public function get getDelay():int
		{
			return xmlList.delay;
		}
		
		public function get getContext():String
		{
			return xmlList.contextMenu.item;
		}
		
		public function get getServer():String
		{
			return xmlList.server;
		}
		
		public function get getTwitter():String
		{
			return xmlList.twitter;
		}
		
		public function get getScrollColorMaior():uint
		{
		  return xmlList.scroll.attribute("colorMaior");	
		}
		
		public function get getScrollColorMenor():uint
		{
		  return xmlList.scroll.attribute("colorMenor");	
		}
		
		public function get getScrollHeightMenor():Number
		{
		  return xmlList.scroll.attribute("heightMenor");	
		}
		
		public function get getScrollWidth():Number
		{
		  return xmlList.scroll.attribute("width");	
		}
		
		public function get getScrollStatus():String
		{
		  return xmlList.scroll.attribute("status");	
		}
		
		public function get getFacebookAPI():String
		{
			return xmlList.facebook.attribute("api");		
		}
		
		public function get getFacebookRedirect():String
		{
			return xmlList.facebook.attribute("redirect");		
		}
		
		public function get getFacebookSecret():String
		{
			return xmlList.facebook.attribute("secret");		
		}
		
		public function get getNomeContext():String
		{
			return xmlList.contextMenu.attribute("nome");		
		}
		
		public function get getLinkContext():String
		{
			return xmlList.contextMenu.attribute("link");		
		}
		
		
		
		
		
	}//end class
}