$(document).ready(function(){
	
	//Assign Radio Class to all Radio Buttons
	$("input[@type=radio]").addClass('radio');
	
	//IE 6 JavaScript Stuff
	if(navigator.userAgent.indexOf('MSIE 6') > -1)
	{
		$('input[@type=image]').addClass('png');
		$('#logo-container img[@src:contains(.png)]').addClass('png');
		$('#content img[@src:contains(.png)]').addClass('png');
		$('#arrow-right').attr('src','/img/components/arrow-right-ie6.png');
		$('#arrow-left').attr('src','/img/components/arrow-left-ie6.png');
	}
	
	//All external links to open in a new window
	$('a[@rel=ext]').each(function(){
		 if($.browser.msie)
		 {
		 	$(this).attr('target','_blank');
		 }
		 else
		 {
		 	$(this).attr('onclick','window.open(\''+ $(this).attr('href') +'\'); return false; ');
		 }
	});
	$('form.ext').each(function(){
		var target = $(this).attr('id');
		if(target == '') target = 'newForm';
		$(this).attr('target',target);
	});
	
})