// 父页面路径赋值和改变导航栏
function tofatherurl(naveId,newsinfoId,typeValue,url){
	parent.parent.document.getElementById(naveId).innerText = " >> "+typeValue;
	parent.parent.document.getElementById(newsinfoId).src = url;
}
function tofarther(topId,url){
	parent.document.getElementById(topId).src = url;
}
function autoRe(obj,id){ 
	try{ 
		obj.style.height=id.document.body.scrollHeight+10; 
	}catch(e){
	} 
}


function getSize() {
      var xScroll, yScroll;
      if (window.innerHeight && window.scrollMaxY) {
       xScroll = document.body.scrollWidth;
       yScroll = window.innerHeight + window.scrollMaxY;
      } else if (document.body.scrollHeight > document.body.offsetHeight){       // all but Explorer Mac
          xScroll = document.body.scrollWidth;
          yScroll = document.body.scrollHeight;
      } else {       // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
          xScroll = document.body.offsetWidth;
          yScroll = document.body.offsetHeight;
      }

      var windowWidth, windowHeight;
      if (self.innerHeight) {       // all except Explorer
          windowWidth = self.innerWidth;
          windowHeight = self.innerHeight;
      } else if (document.documentElement && document.documentElement.clientHeight) {       // Explorer 6 Strict Mode
          windowWidth = document.documentElement.clientWidth;
          windowHeight = document.documentElement.clientHeight;
      } else if (document.body) {       // other Explorers
          windowWidth = document.body.clientWidth;
          windowHeight = document.body.clientHeight;
      }

      // for small pages with total height less then height of the viewport
      if(yScroll < windowHeight){
         pageHeight = windowHeight;
         y = pageHeight;
      } else {
         pageHeight = yScroll;
         y = pageHeight;
      }

      if(xScroll < windowWidth){
         pageWidth = windowWidth;
      } else {
         pageWidth = xScroll;
      }

      arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
      return arrayPageSize;
}
function autoHeight(pid) {
      var x = new getSize();
      parent.document.getElementById(pid).height=x[1];
}
function autoHeight1(pid,tid) {
      var x = new getSize();
      if(x[1]<840){
      	parent.document.getElementById(tid).height=840;
	    parent.parent.document.getElementById(pid).height=840;
      }else{
	      parent.document.getElementById(tid).height=x[1];
	      parent.parent.document.getElementById(pid).height=x[1];
      }
}
function autoHeight2(pid,tid) {
      var x = new getSize();
      if(x[1]<1450){
      	parent.document.getElementById(tid).height=1450;
	     parent.parent.document.getElementById(pid).height=1450;
      }else{
	      parent.document.getElementById(tid).height=x[1];
	      parent.parent.document.getElementById(pid).height=x[1];
      }
}
function autoHeight3(tid) {
      var x = new getSize();
      if(x[1]>940){
      	parent.document.getElementById(tid).height=940;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeight4(tid) {
      var x = new getSize();
      if(x[1]>670){
      	parent.document.getElementById(tid).height=670;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeight5(tid) {
      var x = new getSize();
      if(x[1]>890){
      	parent.document.getElementById(tid).height=890;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeight6(tid) {
      var x = new getSize();
      if(x[1]>490){
      	parent.document.getElementById(tid).height=490;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeight7(tid) {
      var x = new getSize();
      if(x[1]>820){
      	parent.document.getElementById(tid).height=820;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeight8(tid) {
      var x = new getSize();
      if(x[1]<1465){
      	parent.document.getElementById(tid).height=1465;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeightDebx(tid) {
      var x = new getSize();
      if(x[1]>369){
      	parent.document.getElementById(tid).height=369;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeightGjj(tid) {
      var x = new getSize();
      if(x[1]>169){
      	parent.document.getElementById(tid).height=169;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeightGfnl(tid) {
      var x = new getSize();
      if(x[1]>444){
      	parent.document.getElementById(tid).height=444;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeightTqhd(tid) {
      var x = new getSize();
      if(x[1]>420){
      	parent.document.getElementById(tid).height=420;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}
function autoHeightSfjs(tid) {
      var x = new getSize();
      if(x[1]>285){
      	parent.document.getElementById(tid).height=285;
      }else{
	      parent.document.getElementById(tid).height=x[1];
      }
}