﻿function GetMsnHead() {
	document.writeln("<!--MSN -->");
	document.writeln("<!--Adforward Begin:-->");
	document.writeln("<div class=\"tc\">");
	document.writeln("<IFRAME MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" FRAMEBORDER=\"0\" WIDTH=\"728\" HEIGHT=\"90\" SCROLLING=\"NO\" SRC=\"http:\/\/msn.allyes.com\/main\/adfshow?user=MSN|Portal_Movie|CNMVSB_CNZHsMOVIEROS_BAN728X90_I3&db=msn&border=0&local=yes\">");
	document.writeln("<SCRIPT LANGUAGE=\"JavaScript1.1\" SRC=\"http:\/\/msn.allyes.com\/main\/adfshow?user=MSN|Portal_Movie|CNMVSB_CNZHsMOVIEROS_BAN728X90_I3&db=msn&local=yes&js=on\"><\/SCRIPT>");
	document.writeln("<NOSCRIPT>");
	document.writeln("<A HREF=\"http:\/\/msn.allyes.com\/main\/adfclick?user=MSN|Portal_Movie|CNMVSB_CNZHsMOVIEROS_BAN728X90_I3&db=msn\"><IMG SRC=\"http:\/\/msn.allyes.com\/main\/adfshow?user=MSN|Portal_Movie|CNMVSB_CNZHsMOVIEROS_BAN728X90_I3&db=msn\" WIDTH=728 HEIGHT=90 BORDER=0><\/a>");
	document.writeln("<\/NOSCRIPT>");
	document.writeln("<\/IFRAME>");
	document.writeln("</div>");
	document.writeln("<!--Adforward End-->");
	document.writeln("<div class=\"msn_topnav\">");
	document.writeln("  <div class=\"fr\">");
	document.writeln("    <form action=\"http:\/\/search.msn.com.cn\/results.aspx\" method=\"get\" id=\"searchweb\" target=\"_blank\">");
	document.writeln("      <label for=\"sh\" id=\"sl\"><span style=\"color:#049; font-weight:bold;\">网页：<\/span><\/label>");
	document.writeln("      <input id=\"form\" name=\"form\" type=\"hidden\" value=\"MSNH\" \/>");
	document.writeln("      <input id=\"mkt\" name=\"mkt\" type=\"hidden\" value=\"zh-CN\" \/>");
	document.writeln("      <input id=\"q\" name=\"q\" size=\"40\" \/>");
	document.writeln("      <input type=\"submit\" value=\"搜索\" class=\"sub_msn\" \/>");
	document.writeln("    <\/form>");
	document.writeln("  <\/div>");
	document.writeln("  <!--top nav-->");
	document.writeln("  <ul>");
	document.writeln("    <li><a href=\"http:\/\/cn.msn.com\/\" title=\"MSN中文网\">MSN中文网<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/get.live.com\/messenger\/overview\" title=\"Messenger\">Messenger<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/www.hotmail.com\" title=\"Hotmail\">Hotmail<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/spaces.live.com\/?mkt=zh-cn\" title=\"Spaces\">Spaces<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/mobile.msn.com.cn\/\" title=\"Mobile\">Mobile<\/a><\/li>");
	document.writeln("  <\/ul>");
	document.writeln("  <div class=\"clear\"><\/div>");
	document.writeln("<\/div>");
	document.writeln("<!--topnav end-->");
	document.writeln("<!--head-->");
	document.writeln("<div class=\"msn_head\">");
	document.writeln("  <div class=\"fl m5\">");
	document.writeln("    <p><a href=\"http:\/\/cn.msn.com\" class=\"a1\" title=\"msn中国\"><img src=\"\/images\/msn\/msn_v_14.gif\" alt=\"msn中国\" \/><\/a><\/p>");
	document.writeln("    <p style=\"padding-left:70px;\"><a href=\"http:\/\/msn.mtime.com\" class=\"a2\" title=\"电影频道\"><img src=\"\/images\/msn\/msn_v_15.gif\" alt=\"电影频道\" \/><\/a><\/p>");
	document.writeln("  <\/div>");
	document.writeln("  <ul class=\"msn_nav\">");
	document.writeln("    <li><a href=\"http:\/\/cn.msn.com\"  rel=\"nofollow\" target=\"_blank\" title=\"资讯\">首页<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.ynet.com\" rel=\"nofollow\" target=\"_blank\" >资讯<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/video.msn.com.cn\/\" target=\"_blank\" title=\"视频\">视频<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/money.msn.com.cn\/\" target=\"_blank\" title=\"财经\">财经<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/stock.msn.com.cn\/\" target=\"_blank\" title=\"股票\">股票<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/soufun.msn.com.cn\/\" target=\"_blank\" title=\"房产\">房产<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/auto.msn.com.cn\" rel=\"nofollow\" target=\"_blank\"  title=\"汽车\">汽车<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/love21cn.msn.com.cn\/\" target=\"_blank\" title=\"交友\">交友<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.myspace.cn\/\" rel=\"nofollow\" target=\"_blank\" title=\"社区\">社区<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/trends.msn.com.cn\" target=\"_blank\" title=\"时尚\">时尚<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/movie.msn.com.cn\" target=\"_blank\" title=\"电影\" class=\"on\">电影<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/reading.msn.com.cn\" target=\"_blank\" title=\"读书\">读书<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/zhaopin.msn.com.cn\" target=\"_blank\" title=\"招聘\">招聘<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/show.msn.com.cn\" target=\"_blank\" title=\"签名\">签名<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msnphoto.eastday.com\/\" target=\"_blank\" title=\"图片\">图片<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/englishtown.msn.com.cn/sp/portal2.aspx?etag=E06513\" target=\"_blank\" title=\"英语\">英语<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/moneyschool.msn.com.cn\/\" target=\"_blank\" title=\"理财\">理财<\/a><\/li>");
	document.writeln("    <li class=\"end\"><a href=\"http:\/\/mil.msn.com.cn\/\" target=\"_blank\" title=\"军事\">军事<\/a><\/li>");
	
	document.writeln("    <li><a href=\"http:\/\/msn.sports.ynet.com\/\" rel=\"nofollow\" target=\"_blank\" title=\"体育\">体育<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.ynet.com\/ent\/\" rel=\"nofollow\" target=\"_blank\" title=\"娱乐\">娱乐<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.vodone.com\/\"  rel=\"nofollow\" target=\"_blank\" title=\"直播\">直播<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/finance.msn.com.cn\/\" target=\"_blank\" title=\"商业\">商业<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.money.hexun.com\/funds\/\" target=\"_blank\" title=\"基金\">基金<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/digital.msn.com.cn\/\" target=\"_blank\" title=\"数码\">数码<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/taobao.msn.com.cn\/\" target=\"_blank\" title=\"购物\">购物<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/marry5.msn.com.cn\/\" target=\"_blank\" title=\"恋爱\">恋爱<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.life.ynet.com\/\" rel=\"nofollow\" target=\"_blank\" title=\"生活\">生活<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/women.msn.com.cn\/\" rel=\"nofollow\" target=\"_blank\" title=\"女性\">女性<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.yoka.com\/man\/\" rel=\"nofollow\" target=\"_blank\" title=\"男人\">男人<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/astro.msn.com.cn\/\" target=\"_blank\" title=\"星座\">星座<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.ifeng.com\/\" target=\"_blank\" title=\"万象\">万象<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/2008.msn.com.cn\/\" target=\"_blank\" rel=\"nofollow\"  title=\"奥运\">奥运<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/enjoy.msn.com.cn\/\" target=\"_blank\" title=\"吃喝\">吃喝<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/health.msn.com.cn\/\" target=\"_blank\" title=\"健康\">健康<\/a><\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.hotmusic.cn\/xspace\" target=\"_blank\" title=\"音乐\">音乐<\/a><\/li>");
	document.writeln("    <li class=\"end\"><a href=\"http:\/\/city.msn.com.cn\/\"  rel=\"nofollow\" target=\"_blank\" title=\"读报\">读报<\/a><\/li>");
	document.writeln("  <\/ul>");
	document.writeln("  <div class=\"clear\"><\/div>");
	document.writeln("<\/div>");
	document.writeln("<div class=\"msn_mtimenav\">");
	document.writeln("  <ul>");
	document.writeln("    <li class=\"on\" ><a href=\"http:\/\/movie.msn.com.cn\" target=\"_blank\" title=\"电影频道\">电影频道<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/news\/\" target=\"_blank\" title=\"动态\">动态<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/picture\/\" target=\"_blank\" title=\"图片\">图片<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/movie\/nowplaying\/\" target=\"_blank\" title=\"热映\">热映<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/movie_top_ten\/\" target=\"_blank\" title=\"排行榜\">排行榜<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/person\/\" target=\"_blank\" title=\"人物\">人物<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/comment\/\" target=\"_blank\" title=\"影评\">影评<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/forum\/\" target=\"_blank\" title=\"影吧\">影吧<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/movie\/section\/\" target=\"_blank\" title=\"电影查询\">电影查询<\/a><\/li>");
	document.writeln("    <li>|<\/li>");
	document.writeln("    <li><a href=\"http:\/\/msn.mtime.com\/mag\/\" target=\"_blank\" title=\"电子杂志\">电子杂志<\/a><\/li>");
	document.writeln("    <li class=\"bold\" style=\"float:right;margin-right:10px;\"><a href=\"http:\/\/msn.mtime.com\/help\/\" title=\"帮助\" >帮助<\/a><\/li>");
	document.writeln("    <li style=\"float:right;\">-<\/li>");
	document.writeln("    <li class=\"bold\" style=\"float:right;\"><a href=\"http:\/\/msn.mtime.com\/group\/\" title=\"群组\" >群组<\/a><\/li>");
	document.writeln("    <li style=\"float:right;\">-<\/li>");
	document.writeln("    <li class=\"bold\" style=\"float:right;\"><a href=\"http:\/\/msn.mtime.com\/blog\/\" title=\"博客\" >博客<\/a><\/li>");
	document.writeln("    <li style=\"float:right;\">-<\/li>");
	document.writeln("    <li class=\"bold\" style=\"float:right;\"><a href=\"http:\/\/msn.mtime.com\/showtime\/\" title=\"电影院\" style=\"color:#FF6600;\">电影院<\/a><\/li>");
	document.writeln("    <li style=\"float:right;\">-<\/li>");
	document.writeln("    <li class=\"bold\" style=\"float:right;\"><a href=\"http:\/\/msn.mtime.com\/fun\/\" title=\"游戏\" >游戏<\/a><\/li>");
	document.writeln("    <li style=\"float:right;\">-<\/li>");
	document.writeln("    <li class=\"bold\" style=\"float:right;\"><a href=\"http:\/\/msn.mtime.com\/member\/signin\" title=\"我的时光\" >我的时光<\/a><\/li>");
	document.writeln("  <\/ul>");
	document.writeln("  <div class=\"clear\"><\/div>");
	document.writeln("<\/div>");
	document.writeln("<SCRIPT LANGUAGE=\"JavaScript\">");
	document.writeln(" var cImage; ");
	document.writeln(" cImage = new Image; ");
	document.writeln(" cImage.src = \"http:\/\/c.msn.com.cn\/c.gif?DI=9396&PI=33235&TP=http:\/\/www.msn.com.cn\/msnmobile\/msnfashiontemplate\/Default.asp&PS=70635&NA=1154&NC=10009\" ");
	document.writeln("<\/SCRIPT> ");
	document.writeln("<NOSCRIPT>");
	document.writeln("<img height=\"1\" width=\"1\" src=\"http:\/\/c.msn.com.cn\/c.gif?DI=9396&PI=33235&TP=http:\/\/www.msn.com.cn\/msnmobile\/msnfashiontemplate\/Default.asp&PS=70635&NA=1154&NC=10009\">");
	document.writeln("<\/NOSCRIPT>");
	document.writeln("");
}
	
function GetMtimeHead() {	
	document.writeln("<!--MTIME -->");
	document.writeln("<!--顶部logo banner-->");
	document.writeln("<div style=\"padding:17px 0;\">");
	document.writeln("  <div class=\"mtime_logo\"><a href=\"http:\/\/www.mtime.com\" title=\"Mtime时光网\">Mtime时光网<\/a><\/div><div class=\"clear\"></div>");
	document.writeln("<\/div>");
	document.writeln("<!--end-->");
	document.writeln("<!--导航-->");
	document.writeln("<div id=\"i_nav\">");
	document.writeln("  <ul>");
	writeMtimeMainNavigation();//主导航
	document.writeln("    <li id=\"currentDate\" class=\"date\"><\/li>");
	document.writeln("  <\/ul>");
	document.writeln("  <div class=\"clear\"><\/div>");
	document.writeln("<\/div>");
	document.writeln("<div id=\"i_nav_sec\" style=\"height:28px;\">");
	document.writeln("  <ul>");
	writeMtimeSecondNavigation();//二级导航
	document.writeln("  <\/ul>");
	document.writeln("  <div class=\"clear\"><\/div>");
	document.writeln("  <div class=\"nav_search\">");
	document.writeln("    <input type=\"text\" id=\"navSearchValueInput\" class=\"txt01\" onfocus=\"this.className=\'txt02\'\" onblur=\"this.className=\'txt01\'\" onkeypress=\"if(event.keyCode==13){f_navigationBarSearch();return false;}\" size=\"20\"\/>");
	document.writeln("    <span style=\"display:none\" id=\"navSearchTypeSelect_div\"><\/span>");
	document.writeln("    <select id=\"navSearchTypeSelect\">");
	document.writeln("      <option value=\"movie\">&nbsp;电影&nbsp;<\/option>");
	document.writeln("      <option value=\"person\">&nbsp;影人&nbsp;<\/option>");
	document.writeln("      <option value=\"comment\">&nbsp;影评&nbsp;<\/option>");
	document.writeln("      <option value=\"blog\">&nbsp;日志&nbsp;<\/option>");
	document.writeln("      <option value=\"photo\">&nbsp;照片&nbsp;<\/option>");
	document.writeln("      <option value=\"member\">&nbsp;会员&nbsp;<\/option>");
	document.writeln("      <option value=\"theater\">&nbsp;影院&nbsp;<\/option>");
	document.writeln("    <\/select>");
	document.writeln("    <input type=\"submit\" value=\"搜索\" onclick=\"f_navigationBarSearch();return false;\" class=\"btn01\" onmouseover=\"this.className=\'btn03\'\" onmouseout=\"this.className=\'btn01\'\" \/>");
	document.writeln("  <\/div>");
	document.writeln("<\/div>");
}

function GetCCTVHead(){
	document.writeln("<!--cctv -->");
	document.writeln("<div id=\'cctv_mhead\'>");
	document.writeln("  <div class=\'c_logo\'> <a title=\'CCTV.com\' href=\'http:\/\/www.cctv.com\/\'><img border=\'0\' alt=\'CCTV\' src=\'\/images\/cctv\/c_logo2008.gif\'\/><\/a>");
	document.writeln("  <\/div>");
	document.writeln("  <div class=\"c_mean\">");
	document.writeln("    <p><a href=\"http:\/\/tv.cctv.com\" target=\"_blank\">TV大社区<\/a>|<a href=\"http:\/\/news.cctv.com\/index.shtml\" target=\"_blank\">新闻<\/a>|<a href=\"http:\/\/sports.cctv.com\/index.shtml\" target=\"_blank\">体育<\/a>|<a href=\"http:\/\/ent.cctv.com\/index.shtml\" target=\"_blank\">娱乐<\/a>|<a href=\"http:\/\/movie.cctv.com\" target=\"_blank\" class=\"bold\"><span class=\"red\">电影<\/span><\/a>|<a href=\"http:\/\/music.cctv.com\" target=\"_blank\">音乐<\/a>|<a href=\"http:\/\/finance.cctv.com\/index.shtml\" target=\"_blank\">经济<\/a>|<a href=\"http:\/\/discovery.cctv.com\/index.shtml\" target=\"_blank\">科教<\/a>|<a href=\"http:\/\/edu.cctv.com\/index.shtml\" target=\"_blank\">青少<\/a>|<a href=\"http:\/\/law.cctv.com\/index.shtml\" target=\"_blank\">法治<\/a>|<a href=\"http:\/\/www.cctv.com\/live\/default.html\" target=\"_blank\">视频直播<\/a>|<a href=\"http:\/\/v.cctv.com\" target=\"_blank\">视频点播<\/a><\/p>");
	document.writeln("      <p class=\"mt5\"><a href=\"http:\/\/2008.cctv.com\/\" target=\"_blank\">CCTV奥运网<\/a><a href=\"http:\/\/intl.2008.cctv.com\"  target=\"_blank\">国际版<\/a>|<a href=\"http:\/\/www.cctv.com\/community\/index.shtml\" target=\"_blank\">社区<\/a>|<a href=\"http:\/\/bbs.cctv.com\/forumindex.jsp?bd=155\" target=\"_blank\">论坛<\/a>|<a href=\"http:\/\/news.cctv.com\/special\/C19600\/01\/index.shtml\"target=\"_blank\">复兴论坛<\/a>|&nbsp;&nbsp;<a href=\"http:\/\/www.cctv.com\/viponline\/index.shtml\" target=\"_blank\">访谈<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"http:\/\/blog.cctv.com\" target=\"_blank\">博客<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"http:\/\/video.cctv.com\" target=\"_blank\">播客<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"http:\/\/u.cctv.com\" target=\"_blank\">旅游<\/a>&nbsp;&nbsp;|<a href=\"http:\/\/wmdx.cctv.com\" target=\"_blank\">文明短信<\/a><\/p>");
	document.writeln("    <p class=\"mt5 bt\"><a href=\"http:\/\/www.cctv.com\/mobile\/special\/C20384\/05\/index.shtml\" target=\"_blank\">手机电视<\/a>|<a href=\"http:\/\/finance.cctv.com\/special\/C17865\/04\/index.shtml\" target=\"_blank\">世博会<\/a>|<a href=\"http:\/\/cctvenchiridion.cctv.com\/index.shtml\" target=\"_blank\">CCTV指南<\/a>|<a href=\"http:\/\/ad.cctv.com\" target=\"_blank\">CCTV广告<\/a>|<a href=\"http:\/\/www.chinaphilharmonic.org\" target=\"_blank\">中国爱乐乐团<\/a>|<a href=\"http:\/\/www.tv.cn\" target=\"_blank\">中国电视网<\/a>|<a href=\"http:\/\/www.igocctv.com\/\" target=\"_blank\">中视购物<\/a>|<a href=\"http:\/\/idm.cctv.com\" target=\"_blank\">互动杂志<\/a><\/p>");
	document.writeln("  <\/div>");
	document.writeln("  <div class=\'clear\'><\/div>");
	document.writeln("<\/div>");
	document.writeln("<!--导航-->");
	document.writeln("<div id=\"c_mnav\">");
	document.writeln("  <div style=\"background:url(\/images\/cctv\/c_navimg.jpg) no-repeat left top; margin-top:0; padding-top:0;\">");
	document.writeln("    <div class=\"c_bg2\">");
	document.writeln("      <div class=\"left\"><a href=\"#\" title=\"怪物史瑞克三\">怪物史瑞克三<\/a><\/div>");
	document.writeln("      <div class=\"mid\">");
	document.writeln("        <ul>");
	document.writeln("          <li><a title=\"首  页\" href=\"http:\/\/cctv.mtime.com\">首 页<\/a><\/li>");
	document.writeln("          <li><a title=\"电影新闻\" href=\"\/news\/\">电影新闻<\/a><\/li>");
	document.writeln("          <li><a title=\"新片推荐\" href=\"\/movie\/new\/\" >新片推荐<\/a><\/li>");
	document.writeln("          <li><a title=\"热门影评\" href=\"\/comment\/\">热门影评<\/a> <\/li>");
	document.writeln("          <li><a title=\"热辣美图\" href=\"\/hotpic.html\">热辣美图<\/a><\/li>");
	document.writeln("          <li><a title=\"精彩视频\" href=\"\/hotvideo.html\">精彩视频<\/a><\/li>");
	document.writeln("          <li><a title=\"电影海报\" href=\"\/picture\/\">电影海报<\/a><\/li>");
	document.writeln("        <\/ul>");
	document.writeln("        <ul class=\"mt10\">");
	document.writeln("          <li><a title=\"票房榜\" href=\"\/movie_top_ten\/\">票房榜<\/a><\/li>");
	document.writeln("          <li><a title=\"全球热映\" href=\"\/movie\/nowplaying_global\/global\/\">全球热映<\/a> <\/li>");
	document.writeln("          <li><a title=\"收视指南\" target=\"_blank\" href=\"http:\/\/tv.cctv.com\/04\/06\/index.shtml\">收视指南<\/a><\/li>");
	document.writeln("          <li><a title=\"精彩专题\" href=\"\/movie\/special.html\">精彩专题<\/a><\/li>");
	document.writeln("          <li><a title=\"主播博客\" href=\"http:\/\/blog.cctv.com\/blog\/index.shtml\">主播博客<\/a><\/li>");
	document.writeln("          <li><a title=\"电子杂志\" href=\"\/mag\/moreMag.html\">电子杂志<\/a><\/li>");
	document.writeln("          <li><a title=\"电影查询\" href=\"\/movie\/section\/\">电影查询<\/a><\/li>");
	document.writeln("        <\/ul>");
	document.writeln("      <\/div>");
	document.writeln("      <div class=\"right\"><a href=\"#\" title=\"Mtime时光网\"><img border=\"0\" class=\"mr5 mt10\" alt=\"Mtime时光网\" src=\"\/images\/cctv\/m_logo.gif\" \/><\/a><\/div>");
	document.writeln("      <div class=\"c_n_s\"> <span class=\"fl ml20\">");
	document.writeln("        <select id='navSearchSelect' style=\"width:80px;\">");
	document.writeln("          <option value='movie'>&nbsp;电影&nbsp;<\/option>");
	document.writeln("					<option value='person'>&nbsp;影人&nbsp;</option>");
	document.writeln("					<option value='comment'>&nbsp;影评&nbsp;</option>");
	document.writeln("					<option value='blog'>&nbsp;日志&nbsp;</option>");
	document.writeln("					<option value='photo'>&nbsp;照片&nbsp;</option>");
	document.writeln("					<option value='member'>&nbsp;会员&nbsp;</option>");
	document.writeln("        <\/select>");
	document.writeln("        <input type=\"text\" id='navSearchInput' size=\"25\" \/>");
	document.writeln("        <input type=\"submit\" value=\"搜索\" onclick=\"cctvMovieSearch($('navSearchInput'),$F('navSearchSelect'))\" class=\"btn04\"\/>");
	document.writeln("        <\/span><span class=\"white lh18 ml10 fl\">热门搜索<a href=\"#\" class=\"white\">皇家赌场<\/a> <a href=\"#\" class=\"white\">好奇爱死<\/a> <a href=\"#\" class=\"white\">越狱<\/a> <\/span> <span class=\"fr mr10 lh18\"><a href=\"\/member\/signin\">我的时光<\/a> - <a href=\"\/blog\/\">博客<\/a> - <a href=\"\/group\/\">群组<\/a> - <a href=\"\/showtime\/\" >电影<\/a><\/span>");
	document.writeln("        <div class=\"clear\"><\/div>");
	document.writeln("      <\/div>");
	document.writeln("    <\/div>");
	document.writeln("  <\/div>");
	document.writeln("<\/div>");
}	
var serchType;
if(window.location.host == 'msn.mtime.com') {
	GetMsnHead();
}
else if(window.location.host == 'cctv.mtime.com')	{
	GetCCTVHead();
}
else { 
	GetMtimeHead();
}

//主导航
function writeMtimeMainNavigation() {
	var navType = getNavType();
	//0:电影，1：博客
	document.writeln("    <li><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/\">首页<\/a><\/li>");
	document.writeln("    <li><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/member\/signin\">我的时光<\/a><\/li>");
	switch( navType ) {
		case 0://电影
			document.writeln("    <li class=\"on\" ><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/movie\/\">电影<\/a><\/li>");
			document.writeln("    <li><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/blog\/\">博客<\/a><\/li>");
			break;
		case 1://博客
			document.writeln("    <li><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/movie\/\">电影<\/a><\/li>");
			document.writeln("    <li class=\"on\"><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/blog\/\">博客<\/a><\/li>");
			break;
	}
	document.writeln("    <li><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/group\/\">群组<\/a><\/li>");
	document.writeln("    <li class=\"st_on\" ><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/showtime\/\">电影院<\/a><\/li>");
	document.writeln("    <li><span class=\"before\">&nbsp;<\/span><a href=\"http:\/\/www.mtime.com\/fun\/\">游戏<\/a><\/li>");
}

//二级导航
function writeMtimeSecondNavigation() {
	var navType = getNavType();
	switch( navType ) {
		case 0://电影
			var movieColumns = [ 
				{ text: "动态", url: "http://www.mtime.com/news/" },
				{ text: "图片", url: "http://www.mtime.com/picture/" },
				{ text: "热映", url: "http://www.mtime.com/movie/nowplaying/" },
				{ text: "排行榜", url: "http://www.mtime.com/movie_top_ten/" },
				{ text: "人物", url: "http://www.mtime.com/person/" },
				{ text: "影评", url: "http://www.mtime.com/comment/" },
				{ text: "影吧", url: "http://www.mtime.com/forum/" },
				{ text: "电影查询", url: "http://www.mtime.com/movie/section/" }
			];
			writeMtimeSecondNavigationColumn( movieColumns );
			break;
		case 1://博客
			var blogColumns = [ 
				{ text: "博客专题", url: "http://www.mtime.com/blog/special.html" },
				{ text: "特色博客", url: "http://www.mtime.com/blog/feature.html" },
				{ text: "主力博客", url: "http://www.mtime.com/blog/anchor.html" },
				{ text: "电影杂谈", url: "http://www.mtime.com/blog/movietalk.html" },
				{ text: "文娱花边", url: "http://www.mtime.com/blog/popculture.html" },
				{ text: "生活随感", url: "http://www.mtime.com/blog/lifestyle.html" },
				{ text: "相册", url: "http://www.mtime.com/photo/" }
			];
			writeMtimeSecondNavigationColumn( blogColumns );
			break;
	}
}

function writeMtimeSecondNavigationColumn( columns ) {
	for ( var i = 0, count = columns.length; i < count; i++ ) {
		var column = columns[i];
		document.writeln( "<li><a href=\""+ column.url +"\">"+ column.text +"<\/a><\/li>" );
		if ( i != count - 1 ) {
			document.writeln( "<li>|<\/li>" );
		}
	}
}

function getNavType() {
	//var navType = 0;
	//var navTypeString = getParam( "type" );
	var navTypeString = typeof navType == "undefined" ? "" : navType;
	var type = 0;
	switch( navTypeString ) {
		case "blog":
			type = 1;
			break;
		default:
			type = 0;
			break;
	}
	return type;
}
//function getParam( paramName ) {
//	var params = this.getParams();
//	if ( params == null ) {
//		return "";
//	}
//	var param = params[paramName];
//	if ( typeof param != "undefined" && param != null ) {
//		return param;
//	} else {
//		return "";
//	}
//}

//function getParams() {
//	var o = null;
//	var params = document.location.search.substr(1).split( "&" );
//	if ( typeof params != "undefined" && params != null && params.length == 0 ) {
//		return null;
//	}
//	for ( var i = 0, count = params.length; i < count; i++ ) {
//		try	{
//			var param = params[i].split( "=" );
//			if ( param.length < 2 )
//				continue;
//			o[param[0]] = param[1].Trim();

//		}
//		catch( e ){}
//	}
//	return o;
//}
	

function f_searchText(o)
{var txt=document.getElementById(o).value;if(txt!="")
{window.location.href="http://www.mtime.com/search/"+searchType+"?"+escape(txt);}}
function searchByType()
{var slt=document.getElementById("typeSearchSelect");searchType=slt.options[slt.selectedIndex].value;f_searchText("typeSearchInput");}
function cctvMovieSearch(objText, objSelect)
{
    var navSearchValue = objText.value;
    var navSearchType = objSelect;
    if(navSearchValue!='')
    window.location.href = 'http://cctv.mtime.com/search/'+ navSearchType +'?' + encodeURI(navSearchValue);
}
function f_navigationBarSearch() {
    var navSearchValue = document.getElementById( "navSearchValueInput" ).value;
    var navSearchType = document.getElementById( "navSearchTypeSelect" ).value;
    if( navSearchValue != "" ) {
		window.location.href = 'http://www.mtime.com/search/'+ navSearchType +'?' + encodeURI( navSearchValue );
    }
}