/*Cufon.replace('.content_center h4, .slider_wrapper .slider ul.slider_cont li div.details a span, .page-title h1, .page-title h2, .cms-page-view .std h2, #login-form h2, .cms-home a.learn_more, .cms-home a.tw, button.button span span, .cms-home .content_center #contactus a, .cms-home .main h3, .block-title strong span, .block-banner a.get_quote span, .footer h4, .footer a.feedback', {
	fontFamily: 'helvetica-neue-bold',
	hover: true
});*/


jQuery(document).ready(function() {
    
	//alert('sdfs');
	
	jQuery('.slider_cont').before('<a class="left_arrow" href="#">prev</a><a class="right_arrow" href="#">next</a>')
    jQuery('.slider_cont').after('<div class="pagination"></div>');
    
	jQuery('.slider_cont').cycle({
		fx: 'scrollHorz',
		next: '.slider_wrapper .slider .right_arrow',
		prev: '.slider_wrapper .slider .left_arrow',
		pager:  '.pagination',
		timeout: 7000
			
	});
	
	jQuery('.slider .pagination a').click(function() { 
		//alert('1');
		jQuery('.slider_cont').cycle('pause'); 
	});
	
	
	jQuery('#nav .parent ul').wrap('<div class="container-bottom"></div>');

	jQuery('.nyroModal').nyroModal({closeButton: '<a href="#" class="nyroModalClose nyroModalCloseCustomButton nmReposition" title="close">Close</a>'});
	
	jQuery.get(" /skin/frontend/3552/3552/js/Secure-Forms/token.php", function(txt){
		jQuery("#feed-back").append('<input type="hidden" name="ts" value="'+txt+'" />');
	});
	
	DD_roundies.addRule('.nyroModalCont', '5px', true);

	maxHeight = 0; 
	jQuery('.contet_center .box').each(function(index) {
		if (jQuery(this).height() > maxHeight) 
			maxHeight = jQuery(this).height();
	});
	jQuery('.contet_center .box').height(maxHeight);
	
	//alert(jQuery('dl#narrow-by').children().length);
	
	
	
	/************
		LAYOUT MODIFICATIONS FOR SIDEBAR FILTERING	
	************/
	if (!jQuery('dl.narrowby-list').children().length) {
		jQuery('div.mid-block strong').remove();
		jQuery('div.bc-divider-out').remove();
		jQuery('div.mid-block').remove();
		
		//jQuery('div.filter-mod').remove();
			jQuery('div.breadcrumbs ul').css('padding-bottom','0');
	}
	
	if (!jQuery('ol.attribute-refine').children().length) {
		
		jQuery('div.bc-divider-out').css('margin-top','0');
		
	} else {
		jQuery('.breadcrumbs ul').css('padding-bottom','0px');
		jQuery('div .filter-mod').css('padding-bottom','0px');
	}
	
	if (  jQuery("ol.attribute-refine + div.bc-divider-out").length  ) {
		jQuery("ol.attribute-refine").css('padding-bottom','20px' );
	}
	
	jQuery('.category-head').remove();
	
	// quote form 800x600 screens
	if (jQuery(window).height() < 612){
		jQuery('#quote-form-container').css('padding','20px 0 0 20px');
		jQuery('#800x600scroll').css({'height':'356px','width':'550px','overflow':'scroll'});
	}
	

});


