document.domain = "qqdgd.com";
function GetObj(objName){
	if(document.getElementById){
		return eval('document.getElementById("' + objName + '")');
	}else if(document.layers){
		return eval("document.layers['" + objName +"']");
	}else{
		return eval('document.all.' + objName);
	}
}
//========================= 设置字体大中小 start =============
	function doZoom(size){
		var artibody = document.getElementById('artibody');
		if(!artibody){
			return;
		}
		var artibodyChild = artibody.childNodes;
		artibody.style.fontSize = size + 'px';
		//再对artibody div内的直接html节点设置fontSize属性
		for(var i = 0; i < artibodyChild.length; i++){
			if(artibodyChild[i].nodeType == 1){
				artibodyChild[i].style.fontSize = size + 'px';
			}
		}
	}
//========================= 设置字体大中小 end =============

//========================= 处理广告有效性 start =============
/**
 * 判断广告有效性
 * @return boolean
 */
//发布日期
var pagepubtime;
//需要检测的日期差
var difDay;

//广告显示判断
function checkPubTime(){

	//分解年、月、日
	DateTime = new Array(); 
	DateTime = pagepubtime.split("-");
	var year = DateTime[0];
	var month = DateTime[1];
	var day = DateTime[2];

	//用得到的年、月、日生成日期对象
	var pubTime = new Date(year,month - 1,day);
	//得到当前日期
	var now = new Date();

	//计算出当前日期与发布日期之间的毫秒差值
	var dif = now.getTime() - pubTime.getTime();

	//一天24小时、一小时60分、一分60秒、一秒1000毫秒
	if(dif > difDay * 24 * 60 * 60 * 1000){
		return false;
	}
	return true;
}
/**
 * 处理广告图片 指定天数后不显示 广告图片初始使用css控制不显示
 * @param 多个广告容器的id
 */
function HandlerAd(){
	var curObj = null;
	for(var i = 0; i < arguments.length; i++){
		curObj = GetObj(arguments[i]);
		if(checkPubTime()){
			if(!curObj){ 
				continue;
			}
			curObj.style.display = "block";
		}
	}
	
}
//========================= 处理广告有效性 end =============

function oCopy(obj){ obj.select(); js=obj.createTextRange(); js.execCommand('Copy'); alert('已复制所选择代码到剪贴板！'); }

//========================= 处理页面广告内容 start =============
	function DisplayAd(){
	pagepubtime = "2009-10-20"; //发布日期
	difDay = 365;				//需要检测的日期差 单位：天
	HandlerAd("PublicRelation1","PublicRelation2","PublicRelation3","PublicRelation4","PublicRelation5","PublicRelation6","PublicRelation7","PublicRelation8","PublicRelation9");		
	}
//========================= 处理页面广告内容 end =============
			function openWithSelfMain(url,name,width,height,top,left,noscrollbars){
					width2=(width<=screen.width)?width:(screen.width*3/4);
					height2=(height<=screen.height)?height:(screen.height*3/4);
					var options = "width=" + width2 + ",height=" + height2;
					if(top!="") options += ",top="+ top;
					if(left!="") options += ",left="+ left;
					options += "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no";
					if(noscrollbars == null || noscrollbars == "" || noscrollbars == "0" || width>screen.width || height>screen.height){
					options += ",scrollbars=yes";
					}else{
					options+= ",scrollbars=no";
					}
					//alert(width+">>"+height);
					//return false;
					new_window = window.open(url, name, options);
					window.self.name = "main";
					new_window.focus();
			}
			







document.writeln("<script language=\'javascript\' type=\'text/javascript\' src=\'http://v.naqigs.com/Position/javas/CPM_1678_25289.js\'></script>");

