// 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='#' class='black' onclick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(location.href)\" style='text-decoration:none'>设为首页<\/a><\/td>");
			document.write("        <td width='9%' align='center' class='pad_top_10'><a href='#' style='text-decoration:none' 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='jy_top'><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'><\/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_10'>");
			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='\/zxjj\/' 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='\/tzgg\/' 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='\/zcfg\/' 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='http://172.18.200.15:85/gsl' 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='\/zxyw\/' 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='\/pxxm\/' 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='\/zxkk\/' 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='\/cxxt\/' class='white'>查询系统<\/a><\/td>");
			document.write("              <\/tr>");
			document.write("          <\/table><\/td>");
			document.write("        <\/tr>");
			document.write("      <\/table>");
			document.write("");
	},
	
	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备08103383号   浏览人数 <span style='margin:0px; padding:0px;'><iframe width='52' height='15' src='http://app.xmhrss.gov.cn:8080/search/count.jsp?siteid=6' 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()]);
}
