$(document).ready(function(){
	$.ajax({
		  url: "json/enviroment.action",
		  type: "GET",
		  dataType: "json",
		  success: function(json){
			url = json;
			$("#contacto").attr("href",url.https+"contactform.action?iframe=true&width=100%&height=100%");
			$("#contacto").css("visibility","visible");
			$("#contacto2").attr("href",url.https+"contactform.action?iframe=true&width=100%&height=100%");
			$("#contacto2").css("visibility","visible");
			$("#contacto3").attr("href",url.https+"contactform.action?iframe=true&width=100%&height=100%");
			$("#contacto3").css("visibility","visible");
			$("#listContacto").attr("href",url.https+"contactform.action?iframe=true&width=100%&height=100%");
			$("#listContacto").css("visibility","visible");
			$("#login").attr("href",url.https+"login.action?iframe=true&width=100%&height=100%");
			$("#login").css("visibility","visible");
			$("#buscador-form").attr("action",url.google+"search");
			$("#buscador-form").css("visibility","visible");
			$("#prensKit").attr("href",url.https+"/downloadPreskit?idNew=");
		  }
	});
	$(".gallery:first a[rel^='lightBox']").prettyPhoto({animation_speed:'normal',slideshow:3000, autoplay_slideshow: false});
  	$(".gallery:gt(0) a[rel^='lightBox']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
	$("a[rel^='prettyPhoto']").prettyPhoto({
    	animation_speed: 'fast', /* fast/slow/normal */
		autoplay_slideshow: false, /* true/false */
		show_title: true, /* true/false */
		default_width: 500,
		default_height: 344,
		counter_separator_label: '-', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
		modal: false, /* If set to true, only the close button will close the window */
		keyboard_shortcuts: false, /* Set to false if you open forms inside prettyPhoto */
		ie6_fallback: true,
		social_tools: false /* html or false to disable */
    });
});
