/*===============================================================MSIE Version Detection Script===============================================================AUTHOR			: Christian Wach <needle@haystack.co.uk>LAST MODIFIED	: 16/04/2009DEPENDENCIES	: none---------------------------------------------------------------USAGEIn the <body>:<script  src="/common/js/msie.js" type="text/javascript"></script>---------------------------------------------------------------*/// Return Microsoft Internet Explorer (major) version number, or 0 for others.// This function works by finding the "MSIE " string and extracting the version number// following the space, up to the semicolonfunction msieversion() {	// get info	var ua = window.navigator.userAgent	var msie = ua.indexOf ( "MSIE " )		// is this Microsoft Internet Explorer?	if ( msie > 0 ) {				// return version number		return parseFloat( ua.substring ( msie+5, ua.indexOf ( ";", msie ) ) );			} else {			// is other browser		return 0;		}}// Switch out img tag for browser types...function showPNG( imageURL, imageTitle, imageWidth, imageHeight ) {	// check browser	if ( msieversion() > 5 && (navigator.appVersion.indexOf("Macintosh") == -1) ) {			// write tag with IE CSS filter		document.write( 			'<img src="'+imageURL+'" style="width: '+imageWidth+'px; height: '+imageHeight+'px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+imageURL+'\', sizingMethod=\'scale\');" alt="'+imageTitle+'" title="'+imageTitle+'" />' 		);			} else {			// write simple tag		document.write( 			'<img src="'+imageURL+'" alt="'+imageTitle+'" style="width: '+imageWidth+'px; height: '+imageHeight+'px;" />' 		);			}}