// JavaScript Document
var pjs=new Array();
var t_i=0;var t_j=0;var t_k=0;var j_i=0;var j_j=0;var j_k=0;var j_l=0;
function pageend(){
	if (!document.getElementsByTagName) return;
	var anchors=document.getElementsByTagName("*");
	for (var anchor_i=0; anchor_i<anchors.length; anchor_i++) {
		if (anchors[anchor_i].nodeName=="INPUT" || anchors[anchor_i].nodeName=="SELECT" || anchors[anchor_i].nodeName=="TEXTAREA") {
			if (pageisFF2) {
				anchors[anchor_i].setAttribute("onblur","pinput_main(true)");
				anchors[anchor_i].setAttribute("onfocus","pinput_main(false)");
			}else {
				with (anchors[anchor_i]) onblur=new Function("pinput_main(true)");
				with (anchors[anchor_i]) onfocus=new Function("pinput_main(false)");
			}
		}
		if (pageisIE6 && anchors[anchor_i].nodeName=="IMG") {
			if (anchors[anchor_i].src.toUpperCase().substring(anchors[anchor_i].src.toUpperCase().length-3,anchors[anchor_i].src.toUpperCase().length) == "PNG") {
				if (anchors[anchor_i].complete) {
					pngtm(anchors[anchor_i]);
				} else {
					if (anchors[anchor_i].onload==null) pngtm(anchors[anchor_i]);
				}
			}
		}
		pjs[0]=anchors[anchor_i].className.split(" ");
		for (j_i=0; j_i<pjs[0].length;j_i++) {
			switch (pjs[0][j_i]) {
				case "menu":menu_main(anchors[anchor_i],'li');break;
				case "column_products":menu_main(anchors[anchor_i],'a');break;
				case "news_list":menu_main(anchors[anchor_i],'a');break;
				case "product_list":menu_main(anchors[anchor_i],'a');break;
				//case "cg_product_list":first_child(anchors[anchor_i],'li');break;
				case "news_content":photo_w_auto_main(anchors[anchor_i],774);break;
				case "column_content":photo_w_auto_main(anchors[anchor_i],880);break;
				case "honors_content":photo_w_auto_main(anchors[anchor_i],710);break;
				case "explain_content":photo_w_auto_main(anchors[anchor_i],710);break;
				case "product_type_list":photo_auto_main(anchors[anchor_i],188,130);break;
				case "scroll_lr":scroll_main(anchors[anchor_i],'left');break;
				case "outspread":outspread_main(anchors[anchor_i],'not_close_other','not_open_frist');break;
				case "column_join":
					outspread_main(anchors[anchor_i],'close_other','not_open_frist');
					photo_w_auto_main(anchors[anchor_i],840);
				break;
				case "into_content":content_main(anchors[anchor_i]);break;
			}
		}
	}
	pjs[0]=0;
}

var pw_min=1000;var ph_min=600;var fbgw=1366;var fbgh=665;var pw_max=1366;var ph_max=665+27;
var p_scroll=true;var ch=-1;var cw=-1;var sx=16;var sy=0;var d_ph_h=0;var cw=-1;var st=0;var sl=0;var tob=36;var m_h=-1;var m_c_h=0;var m_c_h_min=150;var m_c_h_max=160;
var iframemain_w=740;var iframemain_h=480;

var where = document.body.firstChild;
var d_ph_c = document.createElement("div");
d_ph_c.innerHTML="<div id=\"pageheight\" style=\"position:relative;width:1px;visibility:hidden;overflow:hidden;\"></div>";
d_ph_c.style.position="absolute";
d_ph_c.style.top=0;
d_ph_c.style.right=0;
d_ph_c.style.zIndex=50;
d_ph_c.style.width=(pageisIE)?"16px":"17px";
d_ph_c.style.overflow="hidden";
d_ph_c.style.overflowY="scroll";
d_ph_c.style.display=(sx>0)?"block":"none";
document.body.insertBefore(d_ph_c,where);
var d_pw_c = document.createElement("div");
d_pw_c.innerHTML="<div style=\"position:relative;width:"+pw_min+"px;height:1px;visibility:hidden;overflow:hidden;\"></div>";
d_pw_c.style.position="absolute";
d_pw_c.style.bottom=0;
d_pw_c.style.left=0;
d_pw_c.style.zIndex=50;
d_pw_c.style.height=(pageisIE)?"16px":"17px";
d_pw_c.style.overflow="hidden";
d_pw_c.style.overflowX="scroll";
d_pw_c.style.borderRight=(sx>0)?"16px solid #D4D0C8":"0px solid #D4D0C8";
d_pw_c.style.display="none";
document.body.insertBefore(d_pw_c,where);
var iframe_bg = document.createElement("div");
iframe_bg.id="iframe_bg";
document.body.insertBefore(iframe_bg,where);
var iframemain = document.createElement("div");
iframemain.id="iframemain";
iframemain.innerHTML="<iframe src=\"about:blank\" name=\"iframe_main\" id=\"iframe_main\" width="+iframemain_w+" frameborder=\"0\" scrolling=\"no\" height="+iframemain_h+"></iframe>";
iframemain.style.width=iframemain_w+"px";
iframemain.style.visibility="hidden";
document.body.insertBefore(iframemain,where);
function iframe_open(if_h){
	iframe_bg.style.zIndex=31;
	iframemain.style.zIndex=35;
	iframemain_h=if_h;
	iframemain.style.visibility="visible";
	iframe_main.height=iframemain_h;
	st=-1;
}
function iframe_close(){
	iframe_bg.style.zIndex=1;
	iframemain.style.zIndex=5;
	iframemain.style.visibility="hidden";
	iframe_main.src="about:blank";
}
var d_wrapper=document.getElementById("wrapper");
d_wrapper.style.marginRight=(sx>0)?"16px":"0px";
var d_pageheight=document.getElementById("pageheight");
var iframe_main=document.getElementById("iframe_main");
try {
	var d_scroll_c=document.getElementById("scroll_container");
	var d_scroll=document.getElementById("scroll_main");
	if (pageisIE6) m_c_h_max=d_scroll_c.clientHeight;
} catch(err) {
	p_scroll=false;
}
if (p_scroll && d_wrapper.getBoundingClientRect) tob=d_wrapper.getBoundingClientRect().bottom-d_scroll_c.getBoundingClientRect().bottom;

function wz(){
	if (document.body.scrollTop>0){
		document.body.scrollTop=0;
		document.body.scrollLeft=0;
	} else {
		document.documentElement.scrollTop=0;
		document.documentElement.scrollLeft=0;
	}
	if (cw!=document.documentElement.clientWidth-sx){
		cw=document.documentElement.clientWidth-sx;
		st=-1;sl=-1;
		if (cw>pw_min) {
			d_wrapper.style.width="auto";
			iframe_bg.style.width="100%";
			d_pw_c.style.display="none";
			sy=0;
		} else {
			d_wrapper.style.width=pw_min+"px";
			iframe_bg.style.width=pw_min+"px";
			d_pw_c.style.display="block";
			sy=16;
		}
	}
	if (ch!=document.documentElement.clientHeight-sy || st==-1) {
		ch=document.documentElement.clientHeight-sy;
		iframemain.style.top=(ch>ph_min)?parseInt(ch/2-iframemain_h/2)+"px":parseInt(ph_min/2-iframemain_h/2)+"px";
		st=-1;
		d_ph_c.style.height=ch+"px";
		iframe_bg.style.height=ch+"px";
		if (ch<=ph_min) {
			d_wrapper.style.height=ph_min+"px";
			d_wrapper.style.top="0";
		} else {
			if(ch<ph_max) {
				d_wrapper.style.height=ch+"px";
				d_wrapper.style.top="0";
			} else {
				d_wrapper.style.height=ph_max+"px";
				d_wrapper.style.top=parseInt((ch-ph_max)/2)+"px";
			}
		}
	}
	if (p_scroll) {
		if (m_h!=d_scroll.clientHeight) {
			m_h=d_scroll.clientHeight;
			st=-1;
			if (pageisIE6) {
				if (m_h<m_c_h_min) {
					d_scroll_c.style.height=m_c_h_min+"px";
					m_c_h=m_c_h_min;
				} else {
					if (m_h<m_c_h_max) {
						d_scroll_c.style.height=m_h+"px";
						m_c_h=m_h;
					} else {
						d_scroll_c.style.height=m_c_h_max+"px";
						m_c_h=m_c_h_max;
					}
				}
			} else {
				m_c_h=d_scroll_c.clientHeight;
			}
		}
		if (st==-1) {
			if (ch>ph_min) {
				d_ph_h=(m_h>m_c_h)?(ch+m_h-m_c_h):ch;
			} else {
				d_ph_h=(m_h>m_c_h)?(ph_min+m_h-m_c_h):ph_min;
			}
			d_pageheight.style.height=d_ph_h+"px";
			if (sx==0) {
				if (d_ph_h>ch) {
					d_wrapper.style.marginRight="16px";
					d_pw_c.style.borderRight="16px solid #D4D0C8";
					d_ph_c.style.display="block";
					d_pw_c.style.width=(cw-16)+"px";
				} else {
					d_wrapper.style.marginRight="0px";
					d_pw_c.style.borderRight="0px solid #D4D0C8";
					d_ph_c.style.display="none";
					d_pw_c.style.width=cw+"px";
				}
			} else {
				d_pw_c.style.width=cw+"px";
			}
		}
		if (st!=d_ph_c.scrollTop) {
			st=d_ph_c.scrollTop;
			if (ch>ph_min) {
				d_scroll_c.scrollTop=st;
			} else {
				if (ch<tob+m_c_h) {
					if (st>ph_min-tob-m_c_h){
						if (st>d_ph_h-tob-m_c_h){
							d_wrapper.style.top=(m_h-m_c_h-st)+"px";
							d_scroll_c.scrollTop=m_h-m_c_h;
							iframemain.style.top=parseInt(m_h-m_c_h-st+ph_min/2-iframemain_h/2)+"px";
						} else {
							d_wrapper.style.top=(m_c_h+tob-ph_min)+"px";
							d_scroll_c.scrollTop=parseInt(st-ph_min+m_c_h+tob);
							iframemain.style.top=parseInt(m_c_h+tob-ph_min/2-iframemain_h/2)+"px";
						}
					} else {
						d_wrapper.style.top=(0-st)+"px";
						d_scroll_c.scrollTop=0;
						iframemain.style.top=parseInt(ph_min/2-iframemain_h/2-st)+"px";
					}
				} else {
					if (st>ph_min-ch) {
						d_wrapper.style.top=(ch-ph_min)+"px";
						d_scroll_c.scrollTop=parseInt(st+ch-ph_min);
						iframemain.style.top=parseInt(ch-ph_min/2-iframemain_h/2)+"px";
					} else {
						d_wrapper.style.top=(0-st)+"px";
						d_scroll_c.scrollTop=0;
						iframemain.style.top=parseInt(ph_min/2-iframemain_h/2-st)+"px";
					}
				}
			}
		}
	} else {
		m_c_h=ch;
		if (st==-1) {
			d_ph_h.style.height=(ch>ph_min)?ch:ph_min;
			d_pageheight.style.height=d_ph_h+"px";
			if (sx==0) {
				if (d_ph_h>ch) {
					d_wrapper.style.marginRight="16px";
					d_pw_c.style.borderRight="16px solid #D4D0C8";
					d_ph_c.style.display="block";
					d_pw_c.style.width=(cw-16)+"px";
				} else {
					d_wrapper.style.marginRight="0px";
					d_pw_c.style.borderRight="0px solid #D4D0C8";
					d_ph_c.style.display="none";
					d_pw_c.style.width=cw+"px";
				}
			} else {
				d_pw_c.style.width=cw+"px";
			}
		}
		if (st!=d_ph_c.scrollTop) {
			st=d_ph_c.scrollTop;
			if (ch<ph_min) {
				d_wrapper.style.top=(0-st)+"px";
			}
			iframemain.style.top=parseInt(ph_min/2-iframemain_h/2-st)+"px";
		}
	}
	if (sl!=d_pw_c.scrollLeft) {
		sl=d_pw_c.scrollLeft;
		if (cw<pw_min) {
			d_wrapper.style.marginLeft=(0-sl)+"px";
			iframemain.style.left=parseInt(pw_min/2-iframemain_w/2-sl)+"px";
		} else {
			d_wrapper.style.marginLeft=0;
			iframemain.style.left=parseInt(cw/2-iframemain_w/2)+"px";
		}
	}
}

var pinput=true;
function pinput_main(t_d){
	pinput=t_d;
}
function keycode(event) {
	event = event || window.event;
	switch (event.keyCode) {
		case 33:if (pinput) d_ph_c.scrollTop+= (0-m_c_h*0.875);break;
		case 34:if (pinput) d_ph_c.scrollTop+= m_c_h*0.875;break;
		case 35:if (pinput) d_ph_c.scrollTop=ph_max+m_h;break;
		case 36:if (pinput) d_ph_c.scrollTop=0;break;
		case 37:if (pinput) d_pw_c.scrollLeft+= -30;	break;
		case 38:if (pinput) d_ph_c.scrollTop+= -30;	break;
		case 39:if (pinput) d_pw_c.scrollLeft+= 30;	break;
		case 40:if (pinput) d_ph_c.scrollTop+= 30;	break;
	}
}

function wheelHandle(e){
	if (e.wheelDelta){
		if (pinput) d_ph_c.scrollTop+=(0-e.wheelDelta/4);
	} else {
		if (pinput) d_ph_c.scrollTop+=10*e.detail;
	}
}
function addScrollListener(element, wheelHandle) {
  if(typeof element != 'object') return;
	if(typeof wheelHandle != 'function') return;
	if(typeof arguments.callee.browser == 'undefined') {
		var user = navigator.userAgent;
		var b = {};
		b.opera = user.indexOf("Opera") > -1 && typeof window.opera == "object";
		b.khtml = (user.indexOf("KHTML") > -1 || user.indexOf("AppleWebKit") > -1 || user.indexOf("Konqueror") > -1) && !b.opera;
		b.ie = user.indexOf("MSIE") > -1 && !b.opera;
		b.gecko = user.indexOf("Gecko") > -1 && !b.khtml;
		arguments.callee.browser = b;
  }
  if(element == window) element = document;
  if(arguments.callee.browser.ie) {
     element.attachEvent('onmousewheel', wheelHandle);
	} else {
  	element.addEventListener(arguments.callee.browser.gecko ? 'DOMMouseScroll' : 'mousewheel', wheelHandle, false);
	}
}

wz();
setInterval("wz()",30);
document.onkeydown =keycode;
addScrollListener(window, wheelHandle);





function photo_auto_main(t_d,img_w,img_h){
	var anchorsub=t_d.getElementsByTagName("img");
	for (j_j=0;j_j<anchorsub.length;j_j++) {
		if (anchorsub[j_j].complete) {
			photo_auto(anchorsub[j_j],img_w,img_h);
		} else {
			if (pageisFF2) {
				anchorsub[j_j].setAttribute("onload","photo_auto(this,"+img_w+","+img_h+")");
			}else {
				with (anchorsub[j_j]) onload=new Function("photo_auto(this,"+img_w+","+img_h+")");
			}
		}
	}
}
function photo_wh_auto_main(t_d,img_w,img_h){
	var anchorsub=t_d.getElementsByTagName("img");
	for (j_j=0;j_j<anchorsub.length;j_j++) {
		if (anchorsub[j_j].complete) {
			photo_wh_auto(anchorsub[j_j],img_w,img_h);
		} else {
			if (pageisFF2) {
				anchorsub[j_j].setAttribute("onload","photo_wh_auto(this,"+img_w+","+img_h+")");
			}else {
				with (anchorsub[j_j]) onload=new Function("photo_wh_auto(this,"+img_w+","+img_h+")");
			}
		}
	}
}
function photo_w_auto_main(t_d,img_w){
	var anchorsub=t_d.getElementsByTagName("img");
	for (j_j=0;j_j<anchorsub.length;j_j++) {
		if (anchorsub[j_j].complete) {
			photo_w_auto(anchorsub[j_j],img_w);
		}else {
			if (pageisFF2) {
				anchorsub[j_j].setAttribute("onload","photo_w_auto(this,"+img_w+")");
			}else {
				with (anchorsub[j_j]) onload=new Function("photo_w_auto(this,"+img_w+")");
			}
		}
	}
}
function photo_h_auto_main(t_d,img_h){
	var anchorsub=t_d.getElementsByTagName("img");
	for (j_j=0;j_j<anchorsub.length;j_j++) {
		if (anchorsub[j_j].complete) {
			photo_h_auto(anchorsub[j_j],img_h);
		}else {
			if (pageisFF2) {
				anchorsub[j_j].setAttribute("onload","photo_h_auto(this,"+img_h+")");
			}else {
				with (anchorsub[j_j]) onload=new Function("photo_h_auto(this,"+img_h+")");
			}
		}
	}
}

function menu(t_j,t_k) {
	if (t_k=="on") {
		if (t_j.className.indexOf(" mouseon")<0) t_j.className+=" mouseon"
	} else {
		if (t_j.className.indexOf(" mouseon")>=0) t_j.className=t_j.className.substring(0,t_j.className.indexOf(" mouseon"));
	}
}
function menu_main(t_d,t_n){
	if (pageisIE6) {
		var anchorsub=t_d.getElementsByTagName(t_n);
		for (j_j=0;j_j<anchorsub.length;j_j++) {
			if (pageisFF2) {
				anchorsub[j_j].setAttribute("onmouseover","menu(this,\"on\")");
				anchorsub[j_j].setAttribute("onmouseout","menu(this,\"out\")");
			}else {
				with (anchorsub[j_j]) onmouseover=new Function("menu(this,\"on\")");
				with (anchorsub[j_j]) onmouseout=new Function("menu(this,\"out\")");
			}
		}
	}
}
function first_child(t_d,t_n){
	if (pageisIE6) {
		var anchorsub=t_d.getElementsByTagName(t_n);
		anchorsub[0].className+="first-child";
	}
}

function scroll_main(t_d,t_k){
	t_i++;
	pjs[t_i]=new Array();
	var anchorsub=t_d.getElementsByTagName("*");
	pjs[t_i][1]=1;
	pjs[t_i][5]=0;
	pjs[t_i][11]=t_d;
	pjs[t_i][12]=t_d;
	for (j_j=0; j_j<anchorsub.length; j_j++) {
		pjs[t_i][0]=anchorsub[j_j].className.split(" ");
		for (j_k=0; j_k<pjs[t_i][0].length;j_k++) {
			switch (pjs[t_i][0][j_k]) {
				case "scroll_main":pjs[t_i][11]=anchorsub[j_j]; break;
				case "scroll_content":pjs[t_i][12]=anchorsub[j_j];break;
			}
		}
	}
	pjs[t_i][2]=0;
	if (t_k=="left") {
		pjs[t_i][7]= pjs[t_i][11].clientWidth;
		pjs[t_i][12].style.position="absolute";
		pjs[t_i][8]= pjs[t_i][12].clientWidth;
		pjs[t_i][12].style.position="relative";
		
	} else {
		pjs[t_i][7]= pjs[t_i][11].clientHeight;
		pjs[t_i][8]= pjs[t_i][12].clientHeight;
	}
	if (pjs[t_i][7]<pjs[t_i][8]) {
		pjs[t_i][3] = document.createElement("a");
		pjs[t_i][3].className="scroll_move_1";
		t_d.appendChild(pjs[t_i][3]);
		pjs[t_i][4] = document.createElement("a");
		pjs[t_i][4].className="scroll_move_2";
		t_d.appendChild(pjs[t_i][4]);
		pjs[t_i][9] = parseInt(pjs[t_i][7]/pjs[t_i][8])+1;
		pjs[t_i][12].style.display="block";
		pjs[t_i][12].className+=" scrollclass";
		pjs[t_i][12].style.width=2*(pjs[t_i][9]+1)*pjs[t_i][8]+"px";
		for (j_k=0;j_k<2*pjs[t_i][9];j_k++){
			pjs[t_i][6] = pjs[t_i][12].innerHTML;
			pjs[t_i][12].innerHTML+=pjs[t_i][6];
		}
		if (pageisFF2) {
			pjs[t_i][11].setAttribute("onmousemove","scroll_stop("+t_i+",1)");
			pjs[t_i][11].setAttribute("onmouseout","scroll_stop("+t_i+",0);");
			pjs[t_i][3].setAttribute("onmousedown","scroll_moveto("+t_i+",8)");
			pjs[t_i][4].setAttribute("onmousedown","scroll_moveto("+t_i+",-8)");
			pjs[t_i][3].setAttribute("onmouseup","scroll_moveto("+t_i+",1)");
			pjs[t_i][4].setAttribute("onmouseup","scroll_moveto("+t_i+",-1)");
		} else {
			with (pjs[t_i][11]) onmousemove=new Function("scroll_stop("+t_i+",1);");
			with (pjs[t_i][11]) onmouseout=new Function("scroll_stop("+t_i+",0)");
			with (pjs[t_i][3]) onmousedown=new Function("scroll_moveto("+t_i+",8)");
			with (pjs[t_i][4]) onmousedown=new Function("scroll_moveto("+t_i+",-8)");
			with (pjs[t_i][3]) onmouseup=new Function("scroll_moveto("+t_i+",1)");
			with (pjs[t_i][4]) onmouseup=new Function("scroll_moveto("+t_i+",-1)");
		}
		pjs[t_i][10]=setInterval("scroll_todo("+t_i+",'"+t_k+"')",30);
	}
}

function scroll_moveto(t_j,t_k) {
	/*if (t_k>0) {
		if (pjs[t_j][1]<0) {
			pjs[t_j][1]=t_k;
		} else {
			if (pjs[t_j][1]<10) pjs[t_j][1]+=t_k;
		}
	} else {
		if (pjs[t_j][1]>0) {
			pjs[t_j][1]=t_k;
		} else {
			if (pjs[t_j][1]>-10) pjs[t_j][1]+=t_k;
		}
	}*/
	pjs[t_j][1]=t_k;
}
function scroll_stop(t_j,t_k) {
	pjs[t_j][5]=t_k;
}
function scroll_todo(t_j,t_k){
	if (pjs[t_j][5]==0) {
		pjs[t_j][2] = pjs[t_j][2] + pjs[t_j][1];
		if (2*pjs[t_j][8]-pjs[t_j][2]<0) {
			pjs[t_j][2]=pjs[t_j][2]-2*pjs[t_j][8];
		} else {
			if (pjs[t_j][2]<0) pjs[t_j][2]=2*pjs[t_j][8]-pjs[t_j][2];
		}
		if (t_k=="left") {
			pjs[t_j][12].style.marginLeft = (0-pjs[t_j][2])+"px";
		} else {
			pjs[t_j][12].style.marginTop = (0-pjs[t_j][2])+"px";
		}
	}
}

function outspread_main(t_d,t_k,t_l){
	t_i++;
	pjs[t_i]=new Array();
	var anchorsub=t_d.getElementsByTagName("*");
	j_l=0;
	for (j_j=0; j_j<anchorsub.length; j_j++) {
		pjs[t_i][0]=anchorsub[j_j].className.split(" ");
		for (j_k=0; j_k<pjs[t_i][0].length;j_k++) {
			switch (pjs[t_i][0][j_k]) {
				case "outspread_container":
					j_l++;
					pjs[t_i][j_l]=anchorsub[j_j];
				break;
				case "outspread_btn":
					if (t_l=="open_all") pjs[t_i][j_l].className +=" outspread_open";
					if (pageisFF2) {
						anchorsub[j_j].setAttribute("onmousemove","menu(this,'on')");
						anchorsub[j_j].setAttribute("onmouseout","menu(this,'out');");
						anchorsub[j_j].setAttribute("onclick","outspread("+t_i+","+j_l+",'"+t_k+"')");
					} else {
						with (anchorsub[j_j]) onmousemove=new Function("menu(this,'on')");
						with (anchorsub[j_j]) onmouseout=new Function("menu(this,'out');");
						with (anchorsub[j_j]) onclick=new Function("outspread("+t_i+","+j_l+",'"+t_k+"')");
					}
				break;
			}
		}
	}
	if (t_l=="open_frist" && j_l>0) {
		pjs[t_i][1].className +=" outspread_open";
		pjs[t_i][0]=1;
	} else {
		pjs[t_i][0]=0;
	}
}
function outspread(t_j,t_k,t_l){
	if (pjs[t_j][t_k].className.indexOf(" outspread_open")>=0) {
		pjs[t_j][t_k].className=pjs[t_j][t_k].className.substring(0,pjs[t_j][t_k].className.indexOf(" outspread_open"));
	} else {
		pjs[t_j][t_k].className +=" outspread_open";
		if (t_l=="close_other"&& pjs[t_j][0]!=0) {
			if (t_k!=pjs[t_j][0] && pjs[t_j][pjs[t_j][0]].className.indexOf(" outspread_open")>=0) {
				pjs[t_j][pjs[t_j][0]].className=pjs[t_j][pjs[t_j][0]].className.substring(0,pjs[t_j][pjs[t_j][0]].className.indexOf(" outspread_open"));
			}
		}
		pjs[t_j][0]=t_k;
	}
}

function content_main(t_d,t_k,t_l){
	var anchorsub=t_d.getElementsByTagName("*");
	for (j_j=0; j_j<anchorsub.length; j_j++) {
		if (anchorsub[j_j].nodeName=="IMG" || anchorsub[j_j].nodeName=="TABLE") {
			if (anchorsub[j_j].border!="0") anchorsub[j_j].className+=" haveborder";
			if (anchorsub[j_j].align=="right") anchorsub[j_j].style.marginLeft="3em";
			if (anchorsub[j_j].align=="left") anchorsub[j_j].style.marginRight="3em";
		}
	}
}

pageend();
var thislocation=this.location+"";var iframelocation="";
if (thislocation.indexOf("?")>0) {
	if (thislocation.indexOf("?goto=")>0) {
		iframelocation=thislocation.substring(thislocation.indexOf("?goto=")+6);
	}
	if(thislocation.indexOf("#goto=")>0) {
		iframelocation=thislocation.substring(thislocation.indexOf("#goto=")+6);
	}
	if(iframelocation!="") iframe_main.src=iframelocation;
}
