function AddZero(intValue)
{
	var realValue = (intValue + 1) + "";
	if(realValue.length < 2)
	{
		return "0" + realValue;
	}
	else
	{
		return realValue;
	}
}


function OtherClass()
{   
    this.DocImgURL = "http://image.fotoever.com/imageserver/Ver3/Beauty/DataImg/"; 
	//右侧主题推广图片链接
	//zhutituiguang-start
var zhutituiguangimgLink="http://music.fotoever.com/Detail.aspx?articleid=100965&class=2";
//zhutituiguang-end

	//主题推广
	this.LoadZhuTiTuiGuang=function(divID)
	{
		var html="";
		var nowdt=new Date();
		var begin=new Date("2010/01/18"); //19号00：00：01开始
		var end=  new Date("2010/02/13");//13号23：59：59结束
		if(nowdt>=begin && nowdt<end)
		{				
			html="<iframe scrolling='no' frameborder='0' vspace=-7 width=300 height=250 marginwidth='0' marginheight='0' allowTransparency=true  src=http://image.fotoever.com/imageserver/js/NewVerJS/ADPartnerJS/TuSu/detail.html></iframe>";
			document.getElementById(divID).innerHTML=html;
		}
		else
		{			
			html += "<a href='" + zhutituiguangimgLink + "' target='_blank'>";
			html+="<img src='"+this.DocImgURL+"ZhuTiTuiGuang.gif' width=300 height=250></a>";
			document.getElementById(divID).innerHTML = html;
		}
		
	}
	//右侧顶部图片链接
	//OtherRightTopAD-start
var otherrighttopimgLink = "http://www.2hua.com/News/adiframe/tyw/index.htm";
//OtherRightTopAD-end
	this.LoadOtherRightTopImg=function(divID)
	{
		var html = "";
		//html += "<a href='" + otherrighttopimgLink + "' target='_blank'>";
		//html += "<img src='" + this.DocImgURL + "otherrighttopad.gif' alt='' width='300' height='250' />";
		//html += "</a>";

		//ent.2hua.com
		//html+="<iframe scrolling='no' frameborder='0' marginwidth='0' marginheight='0' width='300px' height='250px'";
		//html+=" allowTransparency=true  src=http://www.2hua.com/news/adiframe/tyw/index.htm></iframe>";

		//tusu
		html+="<iframe scrolling='no' frameborder='0' marginwidth='0' marginheight='0' width='300px' height='250px'";
		html+=" allowTransparency=true  src=http://image.fotoever.com/imageserver/js/newverjs/adpartnerjs/tusu/detail.html></iframe>";

		//document.getElementById(divID).innerHTML = html;
	}


	//热点专题
	var otherhotArray = new Array();
	//OtherHot-start
//更多按钮的链接地址
	var otherhotmoreLink = "http://topic.fotoever.com/";
	//第一张图的链接地址
	var otherhotimgLink1 = "http://topic.fotoever.com/TopicRead.aspx?id=39";
	//第二张图的链接地址
	var otherhotimgLink2 = "http://topic.fotoever.com/TopicRead.aspx?id=16";
	//两条文字广告的标题和链接地址
	otherhotArray[otherhotArray.length] = new Array("<font style='color:red;'>14位著名主持人月薪大曝光</font>","http://star.fotoever.com/detail.aspx?articleid=87709&class=1");
	otherhotArray[otherhotArray.length] = new Array("<font style='color:red;'>靠魔鬼身材走红的女明星</font>","http://star.fotoever.com/detail.aspx?articleid=86039&class=1");
//OtherHot-end

	this.LoadOtherHotSubject=function(divID,hrfID)
	{
		var html = "";

		html += "<div class='hot_banner'>";
		html += "<a href='" + otherhotimgLink1 + "' target='_blank'>";
		html += "<img src='" + this.DocImgURL + "otherhot01.gif' alt='' width='281' height='100' />";
		html += "</a>";
		html += "</div>";
		html += "<div class='hot_banner'>";
		//友密-图E网测试素材
		var begindt=new Date("2009/11/23");
		var enddt=new Date("2009/11/27");//截止2009/11/26 24:00结束
		var nowdt=new Date();
		if(nowdt>=begindt && nowdt<enddt)
		{
			html +="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"281\" height=\"100\">";
			html +="<param name=\"movie\" value=\"http://image.fotoever.com/imageserver/js/NewVerJS/ADPartenerFlash/MIYOU/NewsRead/281_100.swf\" />";
			html +="<param name=\"quality\" value=\"high\" />";
			html +="<param   name=\"wmode\"   value=\"transparent\">"; 
			html +="<embed src=\"http://image.fotoever.com/imageserver/js/NewVerJS/ADPartenerFlash/MIYOU/NewsRead/281_100.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"281\" height=\"100\"></embed>";
			html +="</object>";			
		}
		else
		{
			html += "<a href='" + otherhotimgLink2 + "' target='_blank'>";
			html += "<img src='" + this.DocImgURL + "otherhot02.gif' alt='' width='281' height='100' />";
			html += "</a>";
		}

		
		html += "</div>";
		html += "<div class='hot_list list_font2'>";
		html += "<ul>";

		for(var i=0;i<otherhotArray.length;i++)
		{
			html += "<li><a href='" + otherhotArray[i][1] + "' target='_blank'>" + otherhotArray[i][0] + "</a></li>";
		}
		html += "</ul>";
		html += "</div>";

		document.getElementById(divID).innerHTML = html;
		document.getElementById(hrfID).href = otherhotmoreLink;
	}


	//图E智投
	var otherztArray = new Array();
	//OtherFEZT-start
//图E智投图片文字标题
	var otherztimgText = "素雅衬衫搭配OL品味";
	//图E智投图片链接地址
	var otherztimgLink = "http://fashion.fotoever.com/fashionread.aspx?articleid=53241&class=10";
	//八条文字广告的标题和链接地址
	otherztArray[otherztArray.length] = new Array("水亮眼睛必备八款优质眼霜","http://fashion.fotoever.com/fashionread.aspx?articleid=53017&class=11");
	otherztArray[otherztArray.length] = new Array("防晒3大纪律8项注意 整夏晒不黑","http://fashion.fotoever.com/fashionread.aspx?articleid=53488&class=11");
	otherztArray[otherztArray.length] = new Array("新鲜出炉：09年全球最性感女明星","http://ent.fotoever.com/entread.aspx?articleid=53635&class=9");
	otherztArray[otherztArray.length] = new Array("“艳照案”一审宣判 陈冠希无罪","http://peri.fotoever.com/detail.aspx?articleid=54274&class=5");
	otherztArray[otherztArray.length] = new Array("街头pop风T恤 轻松穿搭时髦感","http://fashion.fotoever.com/fashionread.aspx?articleid=53481&class=10");
	otherztArray[otherztArray.length] = new Array("让抄袭“雷”得再猛烈一些吧！","http://fashion.fotoever.com/fashionread.aspx?articleid=53998&class=10");
	otherztArray[otherztArray.length] = new Array("窄腿裤+美鞋时尚5大搭配法","http://fashion.fotoever.com/fashionread.aspx?articleid=53707&class=10");
	otherztArray[otherztArray.length] = new Array("女星素颜照 揭开女星真面目","http://ent.fotoever.com/entread.aspx?articleid=53722&class=9");
//OtherFEZT-end

	this.LoadOtherFEZhiTou=function(divID)
	{
		var html = "";
		
		html += "<div class='zhitou_picbox'>";
		html += "<div class='zhitou_pic'>";
		html += "<table width='116' border='0' cellpadding='0' cellspacing='0' height='171'>";
		html += "<tr>";
		html += "<td align='center'>";
		html += "<a href='" + otherztimgLink + "' target='_blank'>";
		html += "<img src='" + this.DocImgURL + "otherfezt.gif' alt='' width='110' height='165' />";
		html += "</a>";
		html += "</td>";
		html += "</tr>";
		html += "</table>";
		html += "</div>";
		html += "<div class='zhitou_title list_font2'>";
		html += "<a href='" + otherztimgLink + "' target='_blank'>";
		html += otherztimgText;
		html += "</a>";
		html += "</div>";
		html += "</div>";
		html += "<div class='zhitou_list list_font2'>";
		html += "<ul>";

		for(var i=0;i<otherztArray.length;i++)
		{
			html += "<li><a href='" + otherztArray[i][1] + "' target='_blank'>" + otherztArray[i][0] + "</a></li>";
		}
		html += "</ul>";
		html += "</div>";
		html += "<div class='clear'></div>";

		document.getElementById(divID).innerHTML = html;
	}


	//精选美图
	var otherbfArray=new Array();
	//OtherBeautifulImg-start
otherbfArray[otherbfArray.length]=new Array("超短裙婚纱 娇小新娘秀美腿","http://wed.fotoever.com/Detail.aspx?class=16&ArticleID=10206");
	otherbfArray[otherbfArray.length]=new Array("Anna Sui 2010春夏“灿烂60年代”","http://vision.fotoever.com/ImageShow.aspx?id=33641&an=1&s=5");
	otherbfArray[otherbfArray.length]=new Array("超大耳环 打造风情女人味","http://vision.fotoever.com/ImageShow.aspx?id=33780&an=1&s=5");
	otherbfArray[otherbfArray.length]=new Array("妙趣横生 7个办公桌逗趣玩物","http://vision.fotoever.com/ImageShow.aspx?id=33155&an=1&s=5");
//OtherBeautifulImg-end

	this.LoadOtherBeautifulImage=function(divID)
	{
		var html = "";
		
		for(var i=0;i<otherbfArray.length;i++)
		{
			html += "<div class='pic_box3'>";
			html += "<div class='pic3'>";
			html += "<table width='126' border='0' height='106' cellpadding='0' cellspacing='0'>";
			html += "<tr>";
			html += "<td align='center'>";
			html += "<a href='" + otherbfArray[i][1] + "' target='_blank'>";
			html += "<img src='" + this.DocImgURL + "otherbf" + AddZero(i) + ".gif' alt='' width='120' height='100' />";
			html += "</a>";
			html += "</td>";
			html += "</tr>";
			html += "</table>";
			html += "</div>";
			html += "<div class='pic3_title list_font2'>";
			html += "<a href='" + otherbfArray[i][1] + "' target='_blank'>" + otherbfArray[i][0] + "</a>";
			html += "</div>";
			html += "</div>";
			if((i+1)%2 == 0)
			{
				html += "<div class='right_line'></div>";
			}
		}
		html += "<div class='clear'></div>";

		document.getElementById(divID).innerHTML = html;
	}


	//图e博客
	var otherbArray=new Array();
	var otherbimgArray = new Array();
	//OtherBlog-start
//更多按钮的链接地址
	var otherblogmoreLink = "http://blog.fotoever.com/";
	//图片文字与链接
	otherbimgArray[otherbimgArray.length] = new Array("[金伊彤]","http://jinyitong520.fotoever.com/");
	otherbimgArray[otherbimgArray.length] = new Array("[林俊杰]","http://linjunjie.fotoever.com/");
	//十一条文字广告的标题和链接地址
	otherbArray[otherbArray.length] = new Array("清爽豆腐美肤餐吃出动人容颜","http://lvluo.fotoever.com/diary/2009/9/13/51769/index.aspx");
	otherbArray[otherbArray.length] = new Array("近期护肤产品小体验","http://meibushenghua.fotoever.com/diary/2009/9/23/51946/index.aspx");
	otherbArray[otherbArray.length] = new Array("我的那几个国庆七天乐","http://zhuzixiao.fotoever.com/diary/2009/10/1/52033/index.aspx");
	otherbArray[otherbArray.length] = new Array("神秘女谍开机现场 精彩图片","http://yueyingpianpian.fotoever.com/diary/2009/9/29/51991/index.aspx");
	otherbArray[otherbArray.length] = new Array("扮嫩减龄 通过服饰装扮自己","http://fengxiaoxiao.fotoever.com/diary/2009/9/11/51615/index.aspx");
	otherbArray[otherbArray.length] = new Array("韩版围巾/丝巾 骷髅丝巾 雪地靴","http://yw0579.fotoever.com/diary/2009/9/16/51858/index.aspx");
	otherbArray[otherbArray.length] = new Array("泸沽印记二 草海 走婚桥","http://dingshuai.fotoever.com/diary/2009/10/7/52035/index.aspx");
	otherbArray[otherbArray.length] = new Array("在万千世界只愿沾染一抹尘","http://jinsha.fotoever.com/diary/2009/9/30/52028/index.aspx");
	otherbArray[otherbArray.length] = new Array("第一次拍婚纱~~惨被晒伤","http://dingshuai.fotoever.com/diary/2009/8/21/51380/index.aspx");
	otherbArray[otherbArray.length] = new Array("再见操场！！再见！裸奔的傻瓜～","http://yodai.fotoever.com/diary/2009/8/18/51332/index.aspx");
	otherbArray[otherbArray.length] = new Array("爱情还你,骄傲还我,好不好","http://mustard.fotoever.com/diary/2009/10/4/52012/index.aspx");
//OtherBlog-end

	this.LoadOtherBlog=function(divID,hrfID)
	{
		var html = "";
		
		html += "<div class='blog_list list_font2'>";
		html += "<ul>";
		for(var i=0;i<otherbArray.length;i++)
		{
			html += "<li><a href='" + otherbArray[i][1] + "' target='_blank'>" + otherbArray[i][0] + "</a></li>";
		}
		html += "</ul>";
		html += "</div>";

		for(var i=0;i<otherbimgArray.length;i++)
		{
			html += "<div class='picbox2' style='margin-top:10px;'>";
			html += "<div class='pic2'>";
			html += "<table width='100' height='100' border='0' cellpadding='0' cellspacing='0'>";
			html += "<tr>";
			html += "<td align='center'><a href='" + otherbimgArray[i][1] + "' target='_blank'><img src='" + this.DocImgURL + "otherblog" + AddZero(i) + ".gif' alt='' width='90' height='90' /></a></td>";
			html += "</tr>";
			html += "</table>";
			html += "</div>";
			html += "<div class='pic2_title list_font2'>";
			html += "<a href='" + otherbimgArray[i][1] + "' target='_blank'>" + otherbimgArray[i][0] + "</a>";
			html += "</div>";
			html += "</div>";

		}

		html += "<div class='clear'></div>";

		document.getElementById(divID).innerHTML = html;
		document.getElementById(hrfID).href = otherblogmoreLink;
		
	}


	//正文下方的第一部分文字广告
    var otherb1Array=new Array();
	//OtherBottom1-start
otherb1Array[otherb1Array.length]=new Array("周迅与李大齐分手 经纪人发声明证实","http://review.fotoever.com/detail.aspx?articleid=63867&class=9");
	otherb1Array[otherb1Array.length]=new Array("十类眼型的超强电眼升级术！","http://beauty.fotoever.com/detail.aspx?articleid=62218&class=23");
	otherb1Array[otherb1Array.length]=new Array("夏日保养之最重要的五点","http://beauty.fotoever.com/detail.aspx?articleid=61875&class=23");
	otherb1Array[otherb1Array.length]=new Array("盘点醉人女香的欲望清单","http://beauty.fotoever.com/detail.aspx?articleid=63822&class=23");
	otherb1Array[otherb1Array.length]=new Array("清凉夏日时尚百搭单品","http://dress.fotoever.com/Detail.aspx?class=26&ArticleID=63869");
	otherb1Array[otherb1Array.length]=new Array("夏日做型女 尝试多风格","http://dress.fotoever.com/detail.aspx?articleid=63745&class=26");
	otherb1Array[otherb1Array.length]=new Array("超甜美日系校园妆容","http://beauty.fotoever.com/Detail.aspx?class=23&ArticleID=63859");
	otherb1Array[otherb1Array.length]=new Array("优质女人钟爱的瘦身大餐","http://beauty.fotoever.com/Detail.aspx?class=23&ArticleID=61755");
	otherb1Array[otherb1Array.length]=new Array("热卖7年以上长红美容品（2）","http://beauty.fotoever.com/Detail.aspx?class=23&ArticleID=63482");
	otherb1Array[otherb1Array.length]=new Array("化妆菜鸟要小心的错误","http://beauty.fotoever.com/Detail.aspx?class=23&ArticleID=61729");
	otherb1Array[otherb1Array.length]=new Array("大腿轻松变苗条 运动千万别过量","http://beauty.fotoever.com/Detail.aspx?class=23&ArticleID=62992");
	otherb1Array[otherb1Array.length]=new Array("“中国十大美腿”最新排行","http://beauty.fotoever.com/Detail.aspx?class=23&ArticleID=62946");
	otherb1Array[otherb1Array.length]=new Array("布吕尼又遇对手 卡塔尔王妃惊艳","http://luxury.fotoever.com/Detail.aspx?class=32&ArticleID=63830");
	otherb1Array[otherb1Array.length]=new Array("大牌奢华珠宝腕表细比较","http://luxury.fotoever.com/Detail.aspx?class=32&ArticleID=63234");
	otherb1Array[otherb1Array.length]=new Array("夸张大耳环搭配抢镜手册","http://luxury.fotoever.com/Detail.aspx?class=32&ArticleID=63252");
//OtherBottom1-end

	this.LoadOtherBottom1AD=function(divID)
	{
		var html = "";
		for(var i=0;i<otherb1Array.length;i++)
		{
			html += "<li class='list_font14'><a href='" + otherb1Array[i][1] + "' target='_blank'>" + otherb1Array[i][0] + "</a></li>";
		}
		document.getElementById(divID).innerHTML = html;
	}

	//正文下方的第二部分文字广告
	var otherb2Array=new Array();
	//OtherBottom2-start
	otherb2Array[otherb2Array.length]=new Array("牛皮顽癣---不再复发","http://www.fotoever.com/adhit.aspx?adno=20081031");
	otherb2Array[otherb2Array.length]=new Array("个性签名秀出你的个性QQ","http://www.fotoever.com/adhit.aspx?adno=2008103102");
	otherb2Array[otherb2Array.length]=new Array("独家香港GHB销魂水","http://www.fotoever.com/adhit.aspx?adno=2008103103");
	otherb2Array[otherb2Array.length]=new Array("治疗白癜风免费送药12天","http://www.fotoever.com/adhit.aspx?adno=2008103104");
	otherb2Array[otherb2Array.length]=new Array("★365种夫妻做爱技巧","http://www.fotoever.com/adhit.aspx?adno=2008103105");
	otherb2Array[otherb2Array.length]=new Array("Coach秋冬手袋 雅致女人的怀旧情结","http://fashion.fotoever.com/fashionread.aspx?articleid=10446&class=12");
	otherb2Array[otherb2Array.length]=new Array("琳赛·罗韩 It Girl的街头风","http://fashion.fotoever.com/fashionread.aspx?articleid=10407&class=13");
	otherb2Array[otherb2Array.length]=new Array("时尚高手教你如何夏装秋穿","http://fashion.fotoever.com/fashionread.aspx?articleid=10229&class=13");
	otherb2Array[otherb2Array.length]=new Array("巧克力与美酒碰擦出爱情的味道","http://fashion.fotoever.com/fashionread.aspx?articleid=10606&class=15");
	otherb2Array[otherb2Array.length]=new Array("迪斯尼百年梦想——美轮美奂的pp","http://fashion.fotoever.com/fashionread.aspx?articleid=10582&class=15");
	otherb2Array[otherb2Array.length]=new Array("BELVEDERE雪树伏特加破冰重生","http://fashion.fotoever.com/fashionread.aspx?articleid=10599&class=14");
	otherb2Array[otherb2Array.length]=new Array("空姐的爱情只有一张“卡”吗","http://fashion.fotoever.com/fashionread.aspx?articleid=19011&class=15");
	//OtherBottom2-end

	this.LoadOtherBottom2AD=function(divID)
	{
		var html = "";
		//待写
	}
}


var OtherCls=new OtherClass();