﻿/* Encodigo.com */
/* licuitcore.js */
/* Created Oct, 2009 */
/* Modified Oct, 2009
--------------------------------------- */
var licuitCore = {};

licuitCore.licuit = new Class({
        Implements: [Options, Events],
		
		ie : (navigator.userAgent).indexOf('MSIE'),
		ie6 : ( (navigator.appVersion).indexOf('6.0') > 0 && (navigator.userAgent).indexOf('MSIE') > 0 ),
		ie7 : ( (navigator.appVersion).indexOf('7.0') > 0 && (navigator.userAgent).indexOf('MSIE') > 0 ),
		
		initialize: function(options){
			
        }
		
    });
	
	
licuitCore.appCore = new Class({
        Extends: licuitCore.licuit,
		
		
		initialize: function(options){
		},
	
	
		replaceFonts : function(){
			Cufon.set('fontFamily', 'din').replace($$(".menuItem"),{hover: true});
			Cufon.set('fontFamily', 'din').replace($$(".font1"),{hover: true});
			Cufon.set('fontFamily', 'avantgarden').replace($$(".font2"),{hover: true});
		},
		
		queryToArray : function(dataQuery){
				var dataArray = [];
				
				for(var a = 0 ; a < dataQuery.DATA.length; a++){
					var row = {};
					
					for(var b = 0; b < dataQuery.COLUMNS.length; b++){
						row[dataQuery.COLUMNS[b].toLowerCase()] = dataQuery.DATA[a][b];						
					}
					
					dataArray.push(row);
				}
				
				return dataArray;
		}
			
		
});
	

