$(document).ready(function(){

		//open all external links and pdf's in  a new window
		$("a[href^='http']").not("[href*='"+window.location.host+"']").attr('target','_blank'); 
		//$("a[href^='http']").attr('target','_blank');
		$("a[href*=.pdf]").attr('target','_blank');
		

	
	
	/* image animation */
	$('#cycle, div#description').cycle({ 
	    fx:    'fade', 
		next: '#next',
		prev: '#prev',
		pause:  0,
		speed:    1000, 
		timeout:  7000,
		sync: 1
		});
	
	/* image header random */ 
	$('#cycle_random').cycle({ 
	    fx:    'fade', 
		next: '#next',
		prev: '#prev',
		pause:  0,
		speed:    1000, 
		timeout:  7000,
		random: 1,
		sync: 1
		});
	
});


function is_ie6(){
     return ((window.XMLHttpRequest == undefined) && (ActiveXObject != undefined));
}
