function fixPng(context){
	if (browser == 'ie6') {		
		$(' img, .bgPng').ifixpng();
		DD_belatedPNG.fix(context + ' .pngBg');		
	}
}

// IE descending version, IE8 user agent can contain IE6 string
var browser = '';
var userAgent = navigator.userAgent.toString();
if (userAgent.match('MSIE 8') != null) browser = 'ie8';
else if (userAgent.match('MSIE 7') != null) browser = 'ie7';
else if (userAgent.match('MSIE 6') != null) browser = 'ie6';
else if (userAgent.match('Chrome') != null) browser = 'chrome';
else if (userAgent.match('Firefox/2') != null) browser = 'firefox2';
else if (userAgent.match('PLAYSTATION') != null) browser = 'ps3';


$(document).ready(function(){	
	
	// add browser class to body 
	if (browser)
		$('body').addClass(browser);
		
	// if IE6 set up PNG hack,	
	if (browser == 'ie6') {				
		$.ifixpng('../img2/utils/pixel.gif');						
	}
	
	// fix for banner on Banner
	if (browser == 'ie7' || browser == 'ie6') {	
		$('#banner a.search').hover(
				function(){ $(this).find('img').css('top', '-32px')	},
				function(){ $(this).find('img').css('top', '0px')   }
		);	
	}
	
	// search ie7,8 fix
	if (browser == 'ie7' || browser == 'ie8')
		$('.searchBox').click(function(){
			var input = $(this).find('input.search');
			var value = input.val();
			input.val('');
			input.focus();
			input.val(value);	
		});
	
	
	
		if (browser == 'ie6')
			$('.rBoxSkin img.background').attr('src','../img2/upload/bg.gif');
	
	
	
		
});