$(document).ready(function(){

	$('a[rel=external]').click(function(){
		window.open(this.href);
		
		return false;
	});
	
	$('#menu li ul').css('display', 'none');
	
	Cufon.replace('#ch');
	Cufon.replace('#ch2');
	
	$('#menu li').each(function(){	
		$('#menu li').hover(function(){
			$(this).addClass('hover');
			
			$('ul', this).show();
		}, function(){
			$(this).removeClass('hover');
			
			$('ul', this).hide();
		});		
	});
	
	
	$('.ls div :first').click(function()
		{
			window.location = $('.ls .img a').eq(0).attr('href');
		});
	
	$('.ls div :last').click(function()
		{
			window.location = $('.ls .img a').eq(1).attr('href');	
		});

	
});

$(window).load(function(){

	if($('.sw1').length){
		
		$('.sw1 .img').cycle({ 
			fx:     'fade', 
			speed:  'fast', 
			timeout: 0, 
			pager:  '.sw1 .imgnav' 
		});
			
	};
	
	if($('.hw1 .slides').length){
		
		$('.hw1 .slides').cycle({ 
			fx:     'fade', 
			speed:   500, 
			timeout: 4500
		});
			
	};
	
});




