var pop_x = 500;
var pop_y = 340;

/* Google Analytics */
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

// jquery functions
$(document).ready(function() {
													 
	/* Google Analytics */
	try {
		var pageTracker = _gat._getTracker("UA-9048485-1");
		pageTracker._trackPageview();
	} catch(err) {}

	$('.c').corner();
	
	// $('#bar_middle').corner();
	
	$('.search_box_round').corner().width(530);
	$('#searching').corner();
	
	$('.image_box').corner();
	
	$('.image_box_180_120').corner();
	$('.image_box_180_135').corner();
	
	/* program */
	$('.first_image').corner();
	$('.program_includes').corner();
	$('.next_steps').corner();
	$('.itinerary').corner();
	
	$('.first_image_country').corner();

	$('.title_red').corner({
		tl: { radius: 6 },
		tr: { radius: 6 },
		bl: false,
		br: false});
	
	$('.round_6').corner({
		tl: { radius: 6 },
		tr: { radius: 6 },
		bl: { radius: 6 },
		br: { radius: 6 }});
	
	$('.testimonials_box_right').corner({
		tl: { radius: 6 },
		tr: { radius: 6 },
		bl: { radius: 6 },
		br: { radius: 6 }});
	
	$('.program_includes').corner({
		tl: { radius: 8 },
		tr: { radius: 8 },
		bl: { radius: 8 },
		br: { radius: 8 }});
	
	$('#mexico_warning').click(function(event) {
		event.preventDefault();
		var ImageWindow = null;
		xPositie = ($(window).width() - pop_x) / 2;
		yPositie = ($(window).height() - pop_y) / 2;
		ImageWindow = window.open("/english/mexico-safety.html","","height="+pop_y+",width="+pop_x+",screenX="+xPositie+",screenY="+yPositie+",scrollbars=yes,resizable=yes,noresize=no,toolbar=0,location=0,directories=0,status=0,menubar=0");
	});
});

