// JavaScript Document
var sb={
	sb_header:function(){
			document.write("<table width='100%' border='0' cellpadding=0 cellspacing=0 background='\/images/sb_tline.jpg'>");
			document.write("      <tr>");
			document.write("        <td width='82%' height='32'>&nbsp;<\/td>");
			document.write("        <td width='9%' align='center' class='pad_top_10'><a href='#' onClick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http:\/\/www.xmldbzj.gov.cn\/\');\"  class='black'>设为首页<\/a><\/td>");
			document.write("        <td width='9%' align='center' class='pad_top_10'><a href='#' onClick=\"javascript:window.external.AddFavorite(location.href,document.title)\" class='black'>加入收藏<\/a><\/td>");
			document.write("      <\/tr>");
			document.write("    <\/table>");
			document.write("    <table width='100%' border='0' cellspacing='0' cellpadding='0'>");
			document.write("      <tr>");
			document.write("        <td class='sb_top' align='center'><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='980' height='219'>");
			document.write("          <param name='movie' value='\/images\/sb_webtop1.swf'  >");
			document.write("          <param name='quality' value='high'>");
			document.write("          <param name='wmode' value='transparent'>");
			document.write("          <embed src='./images/sb_webtop1.swf' width='980' height='219' quality='high' pluginspage='http:\/\/www.macromedia.com\/go\/getflashplayer' type='application\/x-shockwave-flash' wmode='transparent' align='right'><\/embed>");
			document.write("        <\/object><\/td>");
			document.write("      <\/tr>");
			document.write("    <\/table>");
			document.write("      <table width='100%' border='0' cellpadding='0' cellspacing='0' class='mar_bot_4'>");
			document.write("        <tr>");
			document.write("          <td class='menu'><table border='0' cellspacing='0' cellpadding='0'>");
			document.write("              <tr>");
			document.write("              <td class='menu2'><a href='\/' class='white'>社会保障首页<\/a><\/td>");
			document.write("              <td width='2'>"+this.creatIMG("/images/sb_tg_me2.gif",2,23,0)+"<\/td>");
			document.write("              <td class='menu2'><a href='\/shbzkxxwzfxxgk\/' class='white' target='_blank'>政府信息公开<\/a><\/td>");
			document.write("              <td>"+this.creatIMG("/images/sb_tg_me2.gif",2,23,0)+"<\/td>");
			document.write("              <td class='menu2'><a href='\/zcfg\/' class='white'>政策法规<\/a><\/td>");
			document.write("              <td>"+this.creatIMG("/images/sb_tg_me2.gif",2,23,0)+"<\/td>");
			document.write("              <td class='menu2'><a href='http://www.xmhrss.gov.cn\/fwzn\/' class='white' target='_blank'>服务指南<\/a><\/td>");
			document.write("              <td>"+this.creatIMG("/images/sb_tg_me2.gif",2,23,0)+"<\/td>");
			document.write("              <td class='menu2'><a href='\/zl\/' class='white'>12333专栏<\/a><\/td>");
			document.write("              <td>"+this.creatIMG("/images/sb_tg_me2.gif",2,23,0)+"<\/td>");
			document.write("              <td class='menu2'><a href='\/wsxz\/' class='white'>网上下载<\/a><\/td>");
			document.write("              <td>"+this.creatIMG("/images/sb_tg_me2.gif",2,23,0)+"<\/td>");
			document.write("              <td class='menu2'><a href='http:\/\/app.xmhrss.gov.cn:8080\/wcm\/servlet\/ShowSearchServiceServlet' class='white' target='_blank'>查询服务<\/a><\/td>");
			document.write("              <td>"+this.creatIMG("/images/sb_tg_me2.gif",2,23,0)+"<\/td>");
			document.write("              <td class='menu2'><a href='\/ybddzq\/' class='white'>医保定点专区<\/a><\/td>");
			document.write("            <\/tr>");
			document.write("          <\/table><\/td>");
			document.write("        <\/tr>");
			document.write("      <\/table>");
	},
	
	sb_footer:function(){
			document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
			document.write("        <tr>");
			document.write("          <td class='in_bot'>版权所有：厦门市人力资源和社会保障局、厦门市社会保障卡信息网<br>");
			document.write("          闽ICP备09004028号   浏览人数 <span style='margin:0px; padding:0px;'><iframe width='52' height='15' src='http://app.xmhrss.gov.cn:8080/search/count.jsp?siteid=5' border='0' frameBorder='0' frameSpacing='0' marginWidth='0' marginHeight='0' noResize='noresize' scrolling='no' vspale='0' allowTransparency='allowtransparency'></iframe></span><\/td>");
			document.write("        <\/tr>");
			document.write("      <\/table>");
},
	creatIMG:function(url, width, height, id){
		var temp = "<" + "img src='" + url + "'";
		if(width && width != 0){
			temp = temp + " width='" + width + "'";
		}if(height && height != 0){
			temp = temp + " height='" + height + "'";
		}if(id && id != 0){
			temp = temp + " border='0' id='top_"+id+"'";
		}else{
		temp = temp + " border='0'/>";
		}
		return temp;
	},
	creatBackIMG:function(url){
		var temp=" background='"+url+"'";
		return temp;
	},
	creatFlish:function(url, width, height){
		var temp = "<" + "img src='" + url + "'";
		if(width && width != 0){
			temp = temp + " width='" + width + "'";
		}if(height && height != 0){
			temp = temp + " height='" + height + "'";
		}
		temp = temp + " border='0' />";
		return temp;
	}
}
function write_date()
{
	var week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
	var now=new Date();
	var mm=now.getMonth()+1;
	document.write(now.getFullYear()+"年"+mm+"月"+now.getDate()+"日&nbsp;");
}

function write_week()
{
	var week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
	var now=new Date();
	var mm=now.getMonth()+1;
	document.write(week[now.getDay()]);
}
