$(function() {

	$('a.target_blank').each(function() {
			$(this).click(function(){window.open(this.href);return false;});
		}
	);
	
	
	
	// make the drop down menus work in ie6
	if ($.browser.msie && $.browser.version < 7) {
		$('#nav ul.top-level li').hover(
			function() {
				$('ul', this).css('left', '0');
				$('ul', this).css('bottom', '33px');
			},
			function() {
				$('ul', this).css('left', '-999em');
			}
		);

		$('#menu-main-1').hover(
			function() {
				$('a.base-link', this).css('background', 'url(workimage/nav.gif) 0 -36px no-repeat');
			},
			function() {
				$('a.base-link', this).css('background', 'none');
				$('a.selected', this).css('background', 'url(workimage/nav.gif) 0 -36px no-repeat');
			}
		);

		$('#menu-main-2').hover(
			function() {
				$('a.base-link', this).css('background', 'url(workimage/nav.gif) -59px -36px no-repeat');
			},
			function() {
				$('a.base-link', this).css('background', 'none');
				$('a.selected', this).css('background', 'url(workimage/nav.gif) -59px -36px no-repeat');
			}
		);
		
		$('#menu-main-3').hover( 
			function() {
				$('a.base-link', this).css('background', 'url(workimage/nav.gif) -126px -36px no-repeat');
			},
			function() {
				$('a.base-link', this).css('background', 'none');
				$('a.selected', this).css('background', 'url(workimage/nav.gif) -126px -36px no-repeat');
			}
		);
		
		$('#menu-main-4').hover( 
			function() {
				$('a.base-link', this).css('background', 'url(workimage/nav.gif) -219px -36px no-repeat');
			},
			function() {
				$('a.base-link', this).css('background', 'none');
				$('a.selected', this).css('background', 'url(workimage/nav.gif) -219px -36px no-repeat');
			}
		);
		
		$('#menu-main-5').hover( 
			function() {
				$('a.base-link', this).css('background', 'url(workimage/nav.gif) -326px -36px no-repeat');
			},
			function() {
				$('a.base-link', this).css('background', 'none');
				$('a.selected', this).css('background', 'url(workimage/nav.gif) -326px -36px no-repeat');
			}
		);

		$('#menu-main-6').hover( 
			function() {
				$('a.base-link', this).css('background', 'url(workimage/nav.gif) -430px -36px no-repeat');
			},
			function() {
				$('a.base-link', this).css('background', 'none');
				$('a.selected', this).css('background', 'url(workimage/nav.gif) -430px -36px no-repeat');
			}
		);
		
		$('#menu-main-7').hover( 
			function() {
				$('a.base-link', this).css('background', 'url(workimage/nav.gif) -523px -36px no-repeat');
			},
			function() {
				$('a.base-link', this).css('background', 'none');
				$('a.selected', this).css('background', 'url(workimage/nav.gif) -523px -36px no-repeat');
			}
		);
		
			
		
	}
});