$(document).ready(function() {
	$('#bucketServices li:even').addClass('even');
	$('#bucketServices li:odd').addClass('odd');
	$('#footNav li:last').addClass('last');
		
	$('#topNav').superfish();
	
	$('#flashContainer').flash({
		swf: '/wp-content/themes/select/images/puzzle.swf',
		height: 258,
		width: 899
	});
	
	$('#sidebar h4').each(function(index) {
		var newClass = $(this).html();
		$(this).next('div').addClass(newClass);
		$(this).remove();
	});
	
	$('a[rel="external"]').click( function() {
		window.open( $(this).attr('href') );
		return false;
	});
	
	$('.cf-box-group input').each(function() {
		$(this).next().prepend(this);
	});

	//fix stupid ie bug
	if ($.browser.msie) {
		$('hr').wrap('<div class="hr"></div>');
	}

});

