$(document).ready(function(){
  if ($.browser.msie) {
	var userAgent = window.navigator.userAgent.toLowerCase();
	// 修正 jQuery.browser.version 比對問題
	$.browser.version = (userAgent.match( /.(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0, '0'])[1];
	var version = $.browser.version;
 
  	if(version<8) {
  	  if($('#container').length) {
	    $("#container").colorbox({width:"400", height:"300", iframe:true, open:true, href:"old_browser_tw.html"});
	  }
	  else {
	  $("#top_menu").colorbox({width:"400", height:"300", iframe:true, open:true, href:"old_browser_tw.html"});
	  }
  	}
  }  
});
