jQuery(document).ready(function(){
	try {
		Cufon.replace('.content-wide h2, .content-wide li, #content h3', { fontFamily: 'helvetica-cond' });
	} catch(err) {}
	jQuery('.totop').click(function () {
		scroll(0,0);
		return false;
	});
	jQuery('#head-home').flash({
		src: home+'wp-content/uploads/head.swf',
		width: 874,
		height: 491,
		wmode: 'transparent',
		expressInstall: true
	});
	jQuery('#sliding-logo img').each(function(){ 
		if ( jQuery(this).height() > 80 ) { jQuery(this).height(80); }
		jQuery(this).css('margin-top',parseInt((jQuery('#sliding-logo').height()-jQuery(this).height())/2));
	});
	jQuery('#sliding-logo').cycle({ 
		fx:     'scrollHorz', 
		speed:  1200, 
		timeout: 6000
	});
	jQuery('.show-hide').hide();
	jQuery('.click').click(function () {
		jQuery('.show-hide').slideUp(400);
		nextItem = jQuery(this).parents('p').next('p').children('.show-hide');
		if (nextItem.hasClass('current')) {
			nextItem.removeClass('current');
			nextItem.slideUp(400);
		} else {
			jQuery('.show-hide').removeClass('current');
			nextItem.addClass('current').slideDown(400);
		}
	});
	jQuery('.gallery-wrap').hide();
	jQuery('.gallery').click(function () {
		counter = 0;
		jQuery('#'+jQuery(this).attr('id')+'-wrap').children().find('a').each(function () {
			counter++;
			if (counter==1) { jQuery(this).click() }
		});
	});
});


jQuery(window).load(function(){
});
