function log() {
	if (window.console && window.console.log)
		window.console.log('[cycle] ' + Array.prototype.join.call(arguments,''));
};

jQuery('.slideshow').cycle({
		autostop: 1,
		pager: "ul#slideshownav",
		speed: 700,
		// pagerClick:    function(1, 1),
		timeout: 7000,
		type: 'sequence',
		containerheight: '290px',
		pause:         1,    
		pauseOnPagerHover: 1, 
		pagerAnchorBuilder: function(idx, slide) { 
				return 'ul#slideshownav li:eq(' + idx + ') a';  
			}
	});	

/* JS FOR MORE SUPPLIER INFO ON SUPPLIER DETAIL PAGE */
	
jQuery(document).ready(function() {
	jQuery('#remainder').hide();


jQuery('.showmore').click(function() {
	jQuery('.firstpart').hide();
	jQuery('#remainder').show();
});

jQuery('#nav li').hover(function() {
	jQuery(this).addClass('hover');
	jQuery('body').append("")
}, function() {
	jQuery(this).removeClass('hover')
});	

jQuery('.button').click(function() {
	link = jQuery(this).attr("href");
	if (jQuery(link).is("hidden")) {
		jQuery(link).slideDown("fast");
		return false;
	} 
});

/* JS FOR BLOG COMMENT SECTION SLIDE IN/OUT */
jQuery('.commentsection').hide();
	if(jQuery('div.single').length<1){
	
		jQuery("p.comment_bar a.button").bind("click", function(e){
			var elementClick = jQuery(this).attr('href');
			jQuery(elementClick).slideToggle();
			destination = jQuery(elementClick).offset().top;
		
			jQuery("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100 );
			return false;
		});	
	}
	});
