jQuery(document).ready(function(){
	try {
		Cufon.replace('h3 a', { fontFamily: 'trebuchet', hover: true });
		Cufon.replace('h1 strong, h2, h3', { fontFamily: 'trebuchet' });
		Cufon.replace('#menu a', { fontFamily: 'arial' });
		Cufon.replace('#menu-sidebar a', { fontFamily: 'verdana', hover: true });
	} catch(err) {}
	jQuery('.totop').click(function () {
		scroll(0,0);
		return false;
	});
	jQuery('#top').flash({
		src: 'content/top.swf',
		width: 1000,
		height: 236,
		expressInstall: true,
		wmode: 'transparent'
	});
	jQuery('#news-page').after('<div class="pagination"><div class="pagination-inner"></div></div>').cycle({ 
		fx:     'fade', 
		speed:  800, 
		timeout: 0, 
		pager:  '.pagination-inner'
	});
	jQuery('.equal').each(function () {
		jQuery(this).height()>=jQuery(this).next('.equal').height() ? jQuery(this).next('.equal').height(jQuery(this).height()) : jQuery(this).height(jQuery(this).next('.equal').height());
	});
	jQuery('#menu-offer h3').each(function () {
		jQuery(this).height()>=34 ? jQuery(this).css('background-position', '0 -190px') : jQuery(this).css('background-position', '0 -200px');
	});
	if ( jQuery.browser.msie ) {
		if (jQuery.browser.version == '6.0' || jQuery.browser.version == '7.0') {
			jQuery('.contact a').append('<img src="images/b1.gif" style="vertical-align:middle; margin: 0; float: none; border: 0;" class="bulk" />');
			jQuery('ul#menu-offer li a, a.more, ul#news li a, .text-content ul li a').append('<img src="images/b2.gif" style="vertical-align:middle; margin: 0; float: none; border: 0;" class="bulk" />');
			jQuery('.contact a').mouseout(function () {
				jQuery(this).children('.bulk').attr('src', 'images/b1.gif');
			});
			jQuery('ul#menu-offer li a, a.more, ul#news li a, .text-content ul li a').mouseout(function () {
				jQuery(this).children('.bulk').attr('src', 'images/b2.gif');
			});
			jQuery('.contact a, ul#menu-offer li a, a.more, ul#news li a, .text-content ul li a').mouseover(function () {
				jQuery(this).children('.bulk').attr('src', 'images/bh.gif');
			});
		}
	} 	 
});
