
if($.browser.msie && $.browser.version.substr(0,1) == 6) {
	DD_belatedPNG.fix('#head .col-r, #fader p');
}

$(function() {
	$('.blink')
		.focus(function(){
			if( $(this).val() == $(this).attr('title') ) {
				$(this).val('');
			}
		})
		.blur(function(){
			if( $(this).val() == '' ) {
				$(this).val( $(this).attr('title') );
			}
		});
		
	$('#navigation > li').hover(function() {
		$(this).css({ 'z-index' : 100 });
		$(this).find('> ul').show();
		$(this).find('a:eq(0)').addClass('hover');
	}, function() {
		$(this).css({ 'z-index' : 1 });
		$(this).find('> ul').hide();
		$(this).find('a:eq(0)').removeClass('hover');
	});
	
	var fader = null;
	$('#fader .item').simpleFade({
		init : function () {
			fader = this;
		},
		onFade : function (index) {
			$('#fader-nav a').removeClass('active').eq(index).addClass('active');
		}
	});
	$('#fader-nav a').click(function () {
		fader.fadeTo($('#fader-nav a').index(this));
		return false;
	});
	
	$('.slider').jcarousel({
	    scroll: 1,
	    wrap : 'circular',
	    auto : 3,
	    buttonNextHTML: null,
	    buttonPrevHTML: null
	});
});
