window.onerror=function(e){return true;};
if(top.location!=self.location){top.location=self.location;}
function externalLinks() {
    if (!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for (var i = 0; i < anchors.length; i++) {
	var anchor = anchors[i];
	if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
    	anchor.target = "_blank";
    }
}
window.onload = externalLinks;

function Swf(url,w,h){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="' + url + '">');
document.write('<param name="quality" value="high"> ');
document.write('<param name="wmode" value="transparent"> ');
document.write('<param name="menu" value="false"> ');
document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>');
document.write('</object>');
}
function Fon(Obj) {Obj.style.background = '#f7f7f7';}
function Foff(Obj) {Obj.style.background = '#ffffff';}
function HideOrShow(Id, Obj) { if (!$("#"+Id).is(":hidden")) {
$("#"+Id).slideUp(500);$(Obj).css({background : "#215DC6 url(http://images.mingyao.net/images/lefttitlebg.gif) no-repeat 0px -50px"});
 }
  else {
  $("#"+Id).slideDown(500);$(Obj).css({background : "#215DC6 url(http://images.mingyao.net/images/lefttitlebg.gif) no-repeat 0 0"});
}
}
