jQuery.noConflict();
jQuery(document).ready(function(){
	
	jQuery(".Gps #enviarGps").live("click",function(event){
		event.preventDefault();
		var cedula=jQuery("#gpscedula").val(); 
		
		var tiquete=jQuery("#gpstiquete").val(); 			
		
		var url='http://265ba7f8e4d94905b6d8c79ad839cc78.cloudapp.net/ticketCheck/ticketMainApp.aspx?cdla='+cedula+'&tqte='+tiquete;
		//alert(url);
		//jQuery("#frameGps").attr('src',url);
		//jQuery(".Gps .form-iframe").show();
		
		tb_open_new(url+'&height=410&width=595&modal=false&TB_iframe=true');
		
	});
	
	jQuery("#ayuda-gps").hover(function(event){			
			jQuery("#queesesto").show();
		},
		function(){
			jQuery("#queesesto").hide();
		});	
	
	/*Promiciones Home principal, Carrusel de promociones*/	
	jQuery(".promoCarruselPromo ul").carouFredSel({
		items : 4,	    
		scroll : {
	        items           : 2,
	        easing          : "easeOutBounce",
	        duration        : 2000
	    },
		auto : {
	        pauseDuration   : 8000,
	        pauseOnHover    : true
	    },
		circular	: true,
		infinite	: false,
	    prev : {
	        button      : "#promo_prev",
	        key         : "left",
	        items       : 2,
	        easing      : "easeInOutCubic",
	        duration    : 250
	    },
	    next : {
	        button      : "#promo_next",
	        key         : "right",
	        items       : 4,
	        easing      : "easeInQuart",
	        duration    : 500
	    },
	    pagination : {
	        container   : "#promo_pag",
	        keys        : true,
	        easing      : "easeOutBounce",
	        duration    : 3000
	    }
	});
	
	
	/*Promiciones Home principal, Carrusel de promociones*/	
	jQuery(".alianzaCarruselAlianza ul").carouFredSel({
		items : 3,	    
		scroll : {
	        items           : 2,
	        easing          : "easeOutBounce",
	        duration        : 2000
	    },
		auto : {
	        pauseDuration   : 8000,
	        pauseOnHover    : true
	    },
		circular	: true,
		infinite	: false,
	    prev : {
	        button      : "#alianza_prev",
	        key         : "left",
	        items       : 2,
	        easing      : "easeInOutCubic",
	        duration    : 250
	    },
	    next : {
	        button      : "#alianza_next",
	        key         : "right",
	        items       : 2,
	        easing      : "easeInQuart",
	        duration    : 500
	    }
	});

	
});

function cerrarVentana(){
	alert("la ventana se va a cerrar");	
}



