//add by cyh <tcyh026@163.com>
(function(){function show(){
this.isize = null;
this.iframe = {name:'net114_union_show_if',id:'net114_union_show_if',border:0,frameborder:0,marginwidth:0,marginheight:0,scrolling:'no'};
this.ifwh = {1:[420,40,26],2:[420,40,29],3:[420,80,34],4:[250,120,25],5:[220,120,28]};
this.url = 'http://www.net114.com/union/show';
this.mh = 0;
if(typeof net114_u_pid != 'undefined') this.url += '-p-'+net114_u_pid;
if(typeof net114_u_userid != 'undefined') this.url += '-u-'+net114_u_userid;
if(typeof net114_u_atype != 'undefined') {this.url += '-at-'+net114_u_atype;net114_u_atype = parseInt(net114_u_atype);}
if(typeof net114_u_tsize != 'undefined') {this.url += '-ts-'+net114_u_tsize; if(parseInt(net114_u_tsize) > this.ifwh[net114_u_atype][2]){this.mh = (parseInt(net114_u_tsize) - this.ifwh[net114_u_atype][2])*7;}else{this.mh = 0;}}
if(typeof net114_u_stype != 'undefined') this.url += '-st-'+net114_u_stype;
if(typeof net114_u_isize != 'undefined') {this.isize = [parseInt(net114_u_isize.replace(/\,\d+$/,'')),parseInt(net114_u_isize.replace(/^\d+\,/,''))];this.url += '-is-'+net114_u_isize;}
if(typeof net114_u_bgcolor != 'undefined') this.url += '-bg-'+net114_u_bgcolor.substr(1);
if(typeof net114_u_bcolor != 'undefined') this.url += '-bc-'+net114_u_bcolor.substr(1);
if(typeof net114_u_ibcolor != 'undefined') this.url += '-ib-'+net114_u_ibcolor.substr(1);
if(typeof net114_u_stypes != 'undefined') this.url += '-ss-'+net114_u_stypes;
if(typeof net114_u_otype != 'undefined') this.url += '-o-'+net114_u_otype;
if(typeof net114_u_webcode != 'undefined') this.url += '-wc-'+net114_u_webcode;
if(typeof net114_u_itype != 'undefined') this.url += '-it-'+net114_u_itype;
this.url += '.html';

this.buildFrame = function()
{
	var cs = "<iframe id='"+this.iframe.id+"' name='"+this.iframe.name+"' border="+this.iframe.border+" frameborder="+this.iframe.frameborder+"  marginwidth='"+this.iframe.marginwidth+"' marginheight='"+this.iframe.marginheight+"' scrolling='"+this.iframe.scrolling+"' ";
	if(net114_u_atype > 0)
	{
		var wh = this.ifwh[net114_u_atype];
		if(!isNaN(this.mh)) wh[0] += this.mh;
		wh[1] += 12;
	}
	else if(this.isize)
	{
		var wh = this.isize;
	}
	cs += " style=\"position:relative;width:"+wh[0]+"px; height:"+wh[1]+"px;\" ";
	cs += "src=\""+this.url+"\"></iframe>";
	return cs;
};
this._init = function(){document.write(this.buildFrame());};}var oShow = new show();oShow._init();})()