var ggnum = 0;
var gglinksnum = 0;
var adnum = 0;

function gg_links_out(gwidth,gheight)
{
	if(gglinksnum>=3)
	{
		//ad_out(gwidth,gheight);
		gglinksnum++;
		return;
	}
	google_ad_width = gwidth;
	google_ad_height = gheight;
	document.write('<iframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no src="http://www.weep.com.cn/js/gg_'+gwidth+'x'+gheight+'.html" height='+gheight+' width='+gwidth+'></iframe>');
	gglinksnum++;
}

function gg_ad_out(gwidth,gheight)
{
	if(gwidth=='180'){
		gg_links_out(gwidth,gheight);
		return;
	}else if(gheight=='15'){
		gg_links_out(gwidth,gheight);
		return;
	}
	else if(gwidth=='120'){
		gg_links_out(gwidth,gheight);
		return;
	}

	if(ggnum>=3)
	{
		ad_out(gwidth,gheight);
		ggnum++;
		return;
	}
	google_ad_width = gwidth;
	google_ad_height = gheight;
	document.write('<iframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no src="http://www.weep.com.cn/js/gg_'+gwidth+'x'+gheight+'.html" height='+gheight+' width='+gwidth+'></iframe>');
	ggnum++;
}
function ad_out(gwidth,gheight)
{
	if(adnum>=3)
	{
		//document.write(adnum);
		adnum++;
		return;
	}
	google_ad_width = gwidth;
	google_ad_height = gheight;
	document.write('<iframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no src="http://www.weep.com.cn/js/ad_'+gwidth+'x'+gheight+'.html" height='+gheight+' width='+gwidth+'></iframe>');
	adnum++;
}
function ad_right_richmedia()
{
}
alimama_width=1;
alimama_height=1;
function mm_ad_out( gwidth , gheight )
{
	alimama_width=gwidth;
	alimama_height=gheight;
	var chic = gwidth+"x"+gheight;
	if(chic=='468x60')gg_ad_out(gwidth,gheight);
	else if(chic=='728x90')ad_out(gwidth,gheight);
	else if(chic=='250x250')gg_ad_out(gwidth,gheight);
	else if(chic=='200x200')gg_ad_out(gwidth,gheight);
	else if(chic=='336x280')gg_ad_out(gwidth,gheight);
	else if(chic=='300x250')gg_ad_out(gwidth,gheight);
	else if(chic=='160x600')gg_ad_out(gwidth,gheight);
	else{
		mm_if( gwidth , gheight );
	}
}

function mm_if( gwidth , gheight )
{
		document.write('<iframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no src="http://www.weep.com.cn/js/ad_'+gwidth+'x'+gheight+'.html" height='+gheight+' width='+gwidth+'></iframe>');
}


