function externalLinks() {
	 if (typeof document.getElementsByTagName == "undefined") {
	 	 return;
	 }
	 var anchors = document.getElementsByTagName("a");
	 for (var i = 0; i < anchors.length; i++) {
	 	 var anchor = anchors[i];
	 	 var rel = "" + anchor.getAttribute("rel");
	 	 if (
	 	 	 typeof anchor.hostname != "undefined"
	 	 	 && (
	 	 	 	 (
	 	 	 	 	 rel.length > 0
	 	 	 	 	 && rel.indexOf("blank") >= 0
	 	 	 	 )
	 	 	 	 || (
	 	 	 	 	 (
	 	 	 	 	 	 rel.length == 0
	 	 	 	 	 	 || rel.indexOf("self") < 0
	 	 	 	 	 )
	 	 	 	 	 && anchor.protocol.indexOf("javascript") < 0
	 	 	 	 	 && anchor.hostname != document.location.hostname
	 	 	 	 )
	 	 	 )
	 	 ) {
	 	 	 anchor.target = "_blank";
	 	 	 anchor.title = (anchor.title ? anchor.title + " " : "") + "(this link opens in a new window)";
	 	 }
	 }
}

$(document).ready(function() {
	externalLinks();
	
	$('#img_full2').addClass('hide');
	$('#img_full3').addClass('hide');
	$('#img_full4').addClass('hide');
	$('#img_full5').addClass('hide');
	$('#img_full6').addClass('hide');

	$('#img_thumb1').click(function() {
		$('#img_full1').removeClass('hide');
		$('#img_full2').addClass('hide');	
		$('#img_full3').addClass('hide');	
		$('#img_full4').addClass('hide');	
		$('#img_full5').addClass('hide');	
		$('#img_full6').addClass('hide');	
		return false;
	});
	$('#img_thumb2').click(function() {
		$('#img_full1').addClass('hide');
		$('#img_full2').removeClass('hide');	
		$('#img_full3').addClass('hide');	
		$('#img_full4').addClass('hide');	
		$('#img_full5').addClass('hide');	
		$('#img_full6').addClass('hide');	
		return false;
	});
	$('#img_thumb3').click(function() {
		$('#img_full1').addClass('hide');
		$('#img_full2').addClass('hide');	
		$('#img_full3').removeClass('hide');	
		$('#img_full4').addClass('hide');	
		$('#img_full5').addClass('hide');	
		$('#img_full6').addClass('hide');	
		return false;
	});
	$('#img_thumb4').click(function() {
		$('#img_full1').addClass('hide');
		$('#img_full2').addClass('hide');	
		$('#img_full3').addClass('hide');	
		$('#img_full4').removeClass('hide');	
		$('#img_full5').addClass('hide');	
		$('#img_full6').addClass('hide');	
		return false;
	});
	$('#img_thumb5').click(function() {
		$('#img_full1').addClass('hide');
		$('#img_full2').addClass('hide');	
		$('#img_full3').addClass('hide');	
		$('#img_full4').addClass('hide');	
		$('#img_full5').removeClass('hide');	
		$('#img_full6').addClass('hide');	
		return false;
	});
	$('#img_thumb6').click(function() {
		$('#img_full1').addClass('hide');
		$('#img_full2').addClass('hide');	
		$('#img_full3').addClass('hide');	
		$('#img_full4').addClass('hide');	
		$('#img_full5').addClass('hide');	
		$('#img_full6').removeClass('hide');	
		return false;
	});

});

