// equalizes the three columns
$(document).ready(function() {		
	
	// detect no rb
	if($('#vt_no_rb').length > 0){
		//console.log('no rb');
		var rss_link = $('#vt_rss2_subscribe');
		var vtBodyCol = $('#vt_body_col');
		
		
		vtBodyCol.css('padding-top','40px');
				
		rss_link.css({
			'margin':'0',
			'padding':'0',
			'position':'absolute',
			'bottom':'auto',
			'top': vtBodyCol.offset().top + 11,
			'right':'255px',
			'width':'auto'
			
		})
		
		
	}
	
	runEqualHeights("#vt_right_col, #vt_body_col, #vt_nav_col");
	if($.browser.msie){
		// TODO: test with another release of IE9
		// detect if ie9 http://blogs.msdn.com/b/ie/archive/2010/03/23/introducing-ie9-s-user-agent-string.aspx
		isIE9 = (navigator.userAgent.indexOf("Trident/5.0") < 0)? false: true;
		if($.browser.version < 9 && !(isIE9)){
			// in IE9 beta, there is a problem with blur filter (scrolling causes black bars)
			$(".vt_drop_shadow").css(
					{'filter': 'progid:DXImageTransform.Microsoft.Blur(pixelRadius=8,MakeShadow=true,ShadowOpacity=0.15)'});
		}else if (isIE9) {
			// issues with css3 and box-shadow being slow on IE9 beta
			$("#vt_sp_body").css(
				{'box-shadow': 'none',
				 'border-left': '1px solid #ccc',
				 'border-right': '1px solid #ccc'
					});
			$(".vt_drop_shadow").css({'width': 'auto'});
		}
		if($.browser.version < 8){
			// fix z-index in ie 7 and 6
			$(function() {
				var zIndexNumber = 1000;
				$('div').each(function() {
					$(this).css('zIndex', zIndexNumber);
					zIndexNumber -= 10;
				});
			});
		}
	}
});



