﻿/* licuit.com */
/* licuitcore.js */
/* Created Apr, 2010 */
/* Modified Apr, 2010
--------------------------------------- */

var licuitCore = {};

licuitCore.licuit = new Class({
        Implements: [Options, Events],
		
		ie : (navigator.userAgent).toLowerCase().indexOf('msie'),
		ie6 : ( (navigator.appVersion).toLowerCase().indexOf('6.0') > 0 && (navigator.userAgent).toLowerCase().indexOf('msie') > 0 ),
		ie7 : ( (navigator.appVersion).toLowerCase().indexOf('7.0') > 0 && (navigator.userAgent).toLowerCase().indexOf('msie') > 0 ),
		ie8 : ( (navigator.appVersion).toLowerCase().indexOf('8.0') > 0 && (navigator.userAgent).toLowerCase().indexOf('msie') > 0 ),
		
		initialize: function(options){
			
        }
		
    });
	
licuitCore.appCore = new Class({
        Extends: licuitCore.licuit,
				
		replaceFonts : function(){
			Cufon.set('fontFamily', 'helveticaextended').replace($$("h1"),{hover: true});
			Cufon.set('fontFamily', 'helveticaextended').replace($$("h2"),{hover: true});
			Cufon.set('fontFamily', 'helveticaextended').replace($$("h3"),{hover: true});
		
		},
		
		fixNavigators : function(){
			var navegador = navigator.userAgent.toLowerCase();
			var mozillaPC = (navegador.indexOf("windows") > -1 && navegador.indexOf("mozilla") > -1);
			
			if(this.ie < 0 && mozillaPC == true){
				
			}

			if(this.ie8 != false){
				
			}
			
			if(this.ie7 != false){
				
			}
			
			if(this.ie6 != false){
				
			}
				
		}		
	
});

var appCore = new licuitCore.appCore();
window.addEvent("domready", function(){									 
	appCore.replaceFonts();
	//appCore.fixNavigators();
});
window.addEvent("load", function(){									 
	appCore.replaceFonts();
});
