var Ogui = {
	_init: function(){
		try{
			this._util();
			this._cufon();
			this._widgets_home();		
		}catch(e){
			alert(
				'Arquivo   : ' + e.fileName + ' \n ' +
				'Linha     : ' + e.lineNumber + ' \n ' +
				'Nome      : ' + e.name + ' \n ' +
				'Descrição : ' + e.message + ' \n '
			);
		};
	},
	
	
	_util: function(){
	
		$('.bt_control_prev_ativo a, .bt_control_next_ativo a,').addClass('pngfix');
		
	
		/* IE png fix */
		if(!/msie [^6]\.0/i.test(navigator.userAgent) && /msie 6\.0/i.test(navigator.userAgent)){
			DD_belatedPNG.fix('.pngfix,.info_top');
		};

		/* target blank */
		$("a[rel='external-link']").attr('target', '_blank');

		/* print page */
		$("a[rel='print']").click(function(){
			window.print();
			return false;
		});
		
	},
	
	_cufon: function(){
		Cufon.replace('.avr_light,.tit_white_25, .tit_green_88, .tit_green_40, .tit_gray_25, #service_list li.highlights h5, .tit_white_66, .tit_red_66, .tit_red_50',{
			fontWeight: 200, 
			fontFamily: 'Avenir'
		});
		
        Cufon.replace('.tit_gray_60,.tit_gray_60', { 
			fontWeight: 400,
			fontFamily: 'Avenir'
		});
	},
	
	_widgets_home: function(){
		$('#widget_services').cycle({
          	fx:      'scrollHorz',
			speed:   'fast',
			timeout: 5000,
			pause:   1,
            next:    '#widget_navegation .next',
            prev:    '#widget_navegation .prev',
            pager:   '#widget_navegation .numbers'
        });
		
		$('#webdoor_home').cycle({ 
		    fx:     'scrollHorz', 
		    speed:  '3000', 
		    timeout: 0, 
		    next:   '.bt_prev a', 
		    prev:   '.bt_next a' 
		});
				
	}
};

$(function(){
	Ogui._init();
});
















