﻿//参数说明：图片路径, 链接地址, name值, alt的值, 图片宽, 图片高

//酒店首页搜索框下方的长条banner
//第一个参数说明：Y表示显示此banner, N表示隐藏此banner
var bannerInfos0 = new Array();
bannerInfos0[0]=new Array('Y','http://wimg.mangocity.com/img/h/hsidebar/hb740x80.jpg','http://www.mangocity.com/promotion/h120217gangao.html','lijiang','酒店港澳代金券','740','80');

//酒店首页右侧banner
var bannerInfos1 = new Array();
bannerInfos1[0]=new Array('http://himg.mangocity.com/img/h/hsidebar/four.jpg','http://www.mangocity.com/promotion/h120217gangao.html','gane','酒店港澳代金券','210','88');
bannerInfos1[1]=new Array('http://himg.mangocity.com/img/h/hsidebar/two.jpg','http://tuan.mangocity.com/','gane','酒店团购','210','88');
bannerInfos1[2]=new Array('http://himg.mangocity.com/img/h/hsidebar/three.jpg','http://www.fashionsfriend.com/prolist.php?bid=&types=1&part=0&show=&property=3&category=&color=&page=6&utm_source=mangocity&utm_medium=jiudian&utm_campaign=2012-02-1','fashion','找到你的时尚','210','88');
bannerInfos1[3]=new Array('http://himg.mangocity.com/img/h/hsidebar/one.jpg','http://www.mangocity.com/promotion/h120109gelin.html?ozs=112727','tuangou','格林豪泰酒店','210','88');



//酒店查询页右侧banner
var bannerInfos3 = new Array();
bannerInfos3[0]=new Array('http://himg.mangocity.com/img/h/hsidebar/four_1.jpg','http://tuan.mangocity.com/','gane','酒店团购','210','88');
bannerInfos3[1]=new Array('http://himg.mangocity.com/img/h/hsidebar/seven_7.jpg','http://www.missionhillschina.com/edmmail/booking/hk_lucky_draw.html?utm_source=mgc&utm_medium=banner&utm_campaign=hainantravel','gane','观澜湖海口度假区','210','88');
bannerInfos3[2]=new Array('http://himg.mangocity.com/img/h/hsidebar/four_2.jpg','http://www.mangocity.com/promotion/h120217gangao.html','lijiang','酒店港澳代金券','210','88');
bannerInfos3[3]=new Array('http://himg.mangocity.com/img/h/hsidebar/four_4.jpg','http://www.mangocity.com/promotion/h120111dianping.html?ozs=112723','lijiang','点评酒店赢积分奖励','210','88');

//酒店详情页右侧banner
var bannerInfos2 = new Array();
bannerInfos2[0]=new Array('http://himg.mangocity.com/img/h/hsidebar/four_1.jpg','http://tuan.mangocity.com/','gane','酒店团购','210','88');
bannerInfos2[1]=new Array('http://himg.mangocity.com/img/h/hsidebar/four_3.jpg','http://www.mangocity.com/promotion/h120109gelin.html?ozs=112727','hold','格林豪泰酒店','210','88');
bannerInfos2[2]=new Array('http://himg.mangocity.com/img/h/hsidebar/four_2.jpg','http://www.mangocity.com/promotion/h120217gangao.html','lijiang','酒店港澳代金券','210','88');
bannerInfos2[3]=new Array('http://himg.mangocity.com/img/h/hsidebar/four_4.jpg','http://www.mangocity.com/promotion/h120111dianping.html?ozs=112723','lijiang','点评酒店赢积分奖励','210','88');


//海外酒店首页左侧banner
var bannerInfos4 = new Array();
bannerInfos4[0]=new Array('http://himg.mangocity.com/img/h/hsidebar/onehk.jpg','http://www.mangocity.com/promotion/h111212hotel.html','yuanbohui','畅游港澳好轻松','210','88');
bannerInfos4[1]=new Array('http://himg.mangocity.com/img/h/hk_hotel/fivehk.jpg','http://www.mangocity.com/promotion/h110524hk4_1.html?ozs=112058','jiudian','海外酒店','210','88');
bannerInfos4[2]=new Array('http://himg.mangocity.com/img/h/hk_hotel/sixhk.jpg','http://www.mangocity.com/promotion/e110909hkcredit.html?ozs=112304','youzhi','优质香港诚信游','210','88');



function loadBanner_common(id,point,classStyle){
	var bannerStr="";
	var bannerInfos_used ;
	var classStyle_uesd="cont01_left02 mgb10";
	//找到相关的bannerInfos
	if(point=="hotel_hk_left"){
	   bannerInfos_used = bannerInfos4;
    }
    if(classStyle!=null){
       classStyle_uesd = classStyle;
    }
	for(var i=0;i<bannerInfos_used.length;i++){
		bannerStr=bannerStr+'<div class="'+classStyle_uesd+'"><a href="'+bannerInfos_used[i][1]+'" target="_blank" name="'+bannerInfos_used[i][2]+'"><img src="'+bannerInfos_used[i][0]+'" alt="'+bannerInfos_used[i][3]+'" width="'+bannerInfos_used[i][4]+'" height="'+bannerInfos_used[i][5]+'" border="0" /></a></div>';	
	}
	document.getElementById(id).innerHTML=bannerStr;
}
