<!--
function popClass(url,type,startDate,endDate,cookieId,width,height,allowCustomSetting) {
	this.url		= url;
	this.type		= type;
	this.startDate	= startDate;
	this.endDate	= endDate;
	this.cookieId	= cookieId;
	this.width		= width;
	this.height		= height;
	this.allowCustomSetting	= allowCustomSetting;
	this.show		= function() {
							if(GetCookie(this.cookieId)==null && (new Date()>=new Date(this.startDate)) && (new Date()<=new Date(this.endDate))) {
								switch(this.type) {
									case 'image':
										var newWin		= window.open('about:blank','','width='+this.width+',height='+this.height);
										var str			= '<body style="margin:0"><img src='+this.url+' width='+this.width+' height='+this.height+'>'+(this.allowCustomSetting==false?'<div style="position:absolute;z-index:100;right:0;bottom:0;background-color:black;color:white;width:80;height:14;font-size:12px;text-align:center;cursor:hand" onclick="window.close();opener.killPopWin(\''+this.cookieId+'\',\''+this.endDate+'\')">[ 不再弹出 ]</div>':'')+'</body>';
										newWin.document.write(str);
										break;
									case 'flash':										
										var newWin		= window.open('about:blank','','width='+this.width+',height='+this.height);
										var str			= '<body style="margin:0"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+this.width+'" height="'+this.height+'"><param name="movie" value="'+this.url+'"><param name="quality" value="high"><param name="wmode" value="opaque"><embed src="'+this.url+'" width="'+this.width+'" height="'+this.height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque"></embed></object>'+(this.allowCustomSetting==false?'<div style="position:absolute;z-index:100;right:0;bottom:0;background-color:black;color:white;width:80;height:14;font-size:12px;text-align:center;cursor:hand" onclick="window.close();opener.killPopWin(\''+this.cookieId+'\',\''+this.endDate+'\')">[ 不再弹出 ]</div>':'')+'</body>';
										newWin.document.write(str);
										break;
									}
								}
					  }
}

function BIPopWin() {
	for(var i=0;i<popQueue.length;i++) {
		popQueue[i].show();
	}
}

function killPopWin(cookieId,date) {
	popSetCookie (cookieId, 1,date);
}

function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
		var j = i + alen;    
		if (document.cookie.substring(i, j) == arg)	return getCookieVal (j);    
		i = document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}  
	return null;
}

function getCookieVal (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1) endstr = document.cookie.length;  
	return unescape(document.cookie.substring(offset, endstr));
}

function popSetCookie (name, value,date) {  
	var exp = new Date(date);  
	document.cookie = name + "=" + escape (value) + "; expires=" + exp.toGMTString()+";";
}

function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString()+";";
}
window.attachEvent('onload',BIPopWin);

var popQueue		= [];
//popQueue[0]			= new popClass('aaaee.jpg','image','2003/9/30','2004/10/5','aava',300,200,false);
popQueue[0]			= new popClass('/gg/wacom/banner.swf','flash','2003/9/11','2004/2/6','bbbb',400,200,false);
popQueue[1]			= new popClass('/gg/blueidea/2004.swf','flash','2004/1/1','2004/1/15','aava',350,280,false);
//-->