//JavaScript Document
function MM_jumpMenu(selObj,restore)
{ 
	eval("location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function showproimgswf(wh,ht,imgList,imgLink) {
	var swf_width=wh;
	var swf_height=ht;
	var files="";
	var links="";
	var texts="";

	var files=imgList
	//var links=imgLink
	//var texts='http://www.sohu.com/|http://www.sfzny.com/|http://www.chinaz.com/'
 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
	document.write('<param name="movie" value="/skins/default/flash/bcastr.swf"><param name="quality" value="high">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque"><param name=wmode value="transparent">');
	document.write('<param name="FlashVars" value="bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
	document.write('<embed src="/skins/default/flash/bcastr.swf" wmode="opaque" FlashVars="bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="true" quality="high" width="'+ wh +'" height="'+ ht +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); 
	document.write('</object>'); 
}

/*process firefox event*/
function isIE(){
	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);
	if (browser=="Netscape"){
		return false;
	}
	if (browser=="Microsoft Internet Explorer"){
		return true;
	}
	return null;
}

function FixPrototypeForGecko()
{
	HTMLElement.prototype.__defineGetter__("children",element_prototype_get_children);
	HTMLElement.prototype.__defineGetter__("runtimeStyle",element_prototype_get_runtimeStyle);
	HTMLElement.prototype.__defineGetter__("parentElement",element_prototype_get_parentElement);
	HTMLElement.prototype.__defineSetter__("outerHTML",element_prototype_set_outerHTML);
	HTMLElement.prototype.__defineGetter__("outerHTML",element_prototype_get_outerHTML);
	HTMLElement.prototype.__defineGetter__("canHaveChildren",element_prototype_get_canHaveChildren);
	window.constructor.prototype.__defineGetter__("event",window_prototype_get_event);
	Event.prototype.__defineGetter__("srcElement",event_prototype_get_srcElement);
}

function element_prototype_get_canHaveChildren() {   
  return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(this.tagName.toLowerCase());   
}

function element_prototype_get_runtimeStyle()
{
      return this.style;
}

function element_prototype_get_children(){
	var returnValue = new Object(); 
	var number = 0; 
	for (var i=0; i<this.childNodes.length; i++) { 
		if (this.childNodes[i].nodeType == 1) { 
			returnValue[number] = this.childNodes[i]; 
			number++; 
		} 
	} 
	returnValue.length = number; 
	return returnValue; 
}

function window_prototype_get_event()
{
      return SearchEvent();
}

function event_prototype_get_srcElement()
{
      return this.target;
}

function element_prototype_get_parentElement(){
	if(this.parentNode==this.ownerDocument){
		return null;
	}
	return this.parentNode;
}

function element_prototype_set_outerHTML(sHTML){
	var r=this.ownerDocument.createRange();
	r.setStartBefore(this);
	var df=r.createContextualFragment(sHTML);
	this.parentNode.replaceChild(df,this);
	return sHTML;
}

function element_prototype_get_outerHTML(){
	var attr;
	var attrs=this.attributes;
	var str="<"+this.tagName;
	for(var i=0;i<attrs.length;i++){
		attr=attrs[i];
		if(attr.specified){
			str+=" "+attr.name+'="'+attr.value+'"';
		}
	}
	if(!this.canHaveChildren){
		return str+">";
	}
	return str+">"+this.innerHTML+"</"+this.tagName+">";
}

function SearchEvent()
{
      if(document.all)
          return window.event;
        
      func=SearchEvent.caller;
      while(func!=null)
      {
          var arg0=func.arguments[0];
          if(arg0)
          {
              if(arg0.constructor==Event || arg0.constructor == MouseEvent)
                  return arg0;
          }
          func=func.caller;
      }
      return null;
}

function killErrors() {
return true;
}

window.onerror = killErrors;
