
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


activateMenu = function(nav) {

    /* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    activateMenu('nav'); 
   // activateMenu('vertnav'); 
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
	if(selObj.options[selObj.selectedIndex].value){
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
}
function search_form(){ 
	//alert(document.domain);
	document.write("<form action=\"http://www2.canon.com.cn/front/search/search_index.jsp\" name=\"search\" method=\"post\">\n");
	document.write("<INPUT name=\"key_word\" value=\"请输入关键字搜索\" size=\"10\"><INPUT name=\"搜索\" type=\"submit\" value=\"搜索\"></form>\n");
}

/* ===== cookies process ===== */
startCookie = -1;
//setup cookie
function setupCookie(cookieName) {
	theNameCookie = cookieName + '=';
	theCookie = document.cookie + ";";
	startCookie = theCookie.indexOf(theNameCookie);
}
//read cookie (need to execute setupCookie FUNCTION)
function readCookie() {
	if (startCookie != -1) {
		endCookie = theCookie.indexOf(";", startCookie);
		var cookieValue = unescape(theCookie.substring(startCookie+theNameCookie.length, endCookie));
		return cookieValue;
	} else {
		return false;
	}
}
//write cookie
function writeCookie(cookieName, cookieValue, cookieExpire, cookiePath) {	//set cookieExpire for Minitues
	var theDay = cookieExpire;
	var setDay = new Date();
	setDay.setTime(setDay.getTime() + (theDay * 1000 * 60));
	var expDay = setDay.toGMTString();
	document.cookie = cookieName + escape(cookieValue) + ";expires=" + expDay + ";path=" + cookiePath + ";";
}
//delete cookie 
function deleteCookie(cookieName) {
	writeCookie(cookieName+'=', '', -60*24*365, '/');
	//alert('DELETE:cookie_value --> '+document.cookie);
}
/* ==================== */

/* ===== bread crumb process ===== */
var urlID = (location.search).substr(1);
var cookieStatus = (location.pathname).indexOf('products');
//alert('00:cookieStatus --> '+cookieStatus);

if (cookieStatus == -1) {
	deleteCookie('productURLid');
}

var crumb_typeID = new Array();
var crumb_type = new Object();

//set category
crumb_type["printer"] = "打印机";
crumb_type["aio"] = "一体机";
crumb_type["copier"] = "复印机";
crumb_type["scaner"] = "扫描仪";
crumb_type["fax"] = "传真机";
crumb_type["pro-printer"] = "专业打印设备";
crumb_type["production"] = "数码印刷设备";

//set product
crumb_type["xlh1s"] = "XL H1S";
crumb_type["xlh1a"] = "XL H1A";

function breadcrumb(cDir, dType) {	//First:urlID  Second:cookieValue  Last:dType
	setupCookie('productURLid');	//setup cookies
	//alert('01:startCookie_value --> '+startCookie);	alert('02:[before] urlID_value --> '+urlID);
	if (urlID == '') {	//if urlID is NULL
		if (startCookie != -1) {	//if cookies exist
			urlID = readCookie();	//read cookie and set value
			//alert('03:[cookies exist] urlID --> '+urlID);
		} else {	//if cookies do not exist
			urlID = dType;
		}
	}
	writeCookie(theNameCookie, urlID, 60, '/');	//write cookies
	//alert('04:cookie_value --> '+document.cookie);	alert('05:[after] urlID_value --> '+urlID);

	urlID = urlID.split("_");	dType = dType.split("_");
	//alert('urlID.split : ' + urlID);	alert('dType.split : ' + dType);
	if ((urlID[0] == 'pN') || (dType[0] == 'pN')) {	//Products Name
		//if (urlID == '') { urlID = dType; }
		var titleTag = (document.title).split("//");
		document.write('<a href="' + cDir + 'index.html?' + urlID[0] + '_' + urlID[1] + '">' + crumb_type[urlID[1]] + '</a>');
		document.title = titleTag[0] + '-' + crumb_type[urlID[1]] + '-' + titleTag[1];
	} else if ((urlID[0] == 'cN') || (dType[0] == 'cN')) {	//Contents Name
		
	} else {	//CSP,BIS category name
		document.write('<a href="' + cDir + 'products/' + urlID + '/index.html">' + crumb_type[urlID] + '</a>');
	}
}
/* ==================== */

function minisite(){
document.write("<select name=\"select\" onChange=\"MM_jumpMenu('window.open()',this,0)\">");
document.write("<option selected>--- 合作伙伴 ---</option>");
document.write("<option value=\"http://www.ahfesco.com.cn\">某某公司</option>");
document.write("<option value=\"http://www.ahfesco.com.cn\">某某公司</option>");
document.write("<option value=\"http://www.ahfesco.com.cn\">某某公司</option>");
document.write("</select>");
}

function make_footer(){
document.write("<table width=\"898\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"bgcolor_gray4\">");
document.write("<tr><td colspan=\"20\" class=\"bgcolor_white\" valign=\"bottom\" height=\"10\"><img src=\"/images/red-dot.gif\" width=\"898\" height=\"1\" /></td></tr>");
document.write("<tr valign=\"middle\" align=\"left\">");
document.write("<td><img src=\"/images/spacer.gif\" width=\"120\" height=\"30\" /></td>");
document.write("<td><img src=\"/images/bottom_line_002.gif\" width=\"1\" height=\"14\"/></td>");
document.write("<td><a href=\"#\"><img src=\"/images/bottom_menu_001.gif\" alt=\"下载与支持\" border=\"0\" width=\"92\" height=\"13\" /></a></td>");
document.write("<td><img src=\"/images/bottom_line_002.gif\" width=\"1\" height=\"14\" /></td>");
document.write("<td><a href=\"#\"><img src=\"/images/bottom_menu_002.gif\" alt=\"招聘中心\" border=\"0\" width=\"92\" height=\"13\" /></a></td>");
document.write("<td><img src=\"/images/bottom_line_002.gif\" width=\"1\" height=\"14\" /></td>");
document.write("<td><a href=\"#\"><img src=\"/images/bottom_menu_003.gif\" alt=\"网站地图\" border=\"0\" width=\"92\" height=\"13\" /></a></td>");
document.write("<td><img src=\"/images/bottom_line_002.gif\" width=\"1\" height=\"14\" /></td>");
document.write("<td><a href=\"#\"><img src=\"/images/bottom_menu_004.gif\" alt=\"联系我们\" border=\"0\" width=\"92\" height=\"13\" /></a></td>");
document.write("<td><img src=\"/images/bottom_line_002.gif\" width=\"1\" height=\"14\" /></td>");
document.write("<td><a href=\"#\"><img src=\"/images/bottom_menu_005.gif\" alt=\"使用条款\" border=\"0\" width=\"92\" height=\"13\" /></a></td>");
document.write("<td><img src=\"/images/bottom_line_002.gif\" width=\"1\" height=\"14\" /></td>");
document.write("<td><a href=\"#\"><img src=\"/images/bottom_menu_006.gif\" alt=\"佳能全球\" border=\"0\" width=\"92\" height=\"13\" /></a></td>");
document.write("<td><select name=\"select\" onChange=\"MM_jumpMenu('window.open()',this,0)\">");
document.write("<option selected>- 合作伙伴 -</option>");
document.write("<option value=\"http://www.hefei.gov.cn/\">合肥市政府</option>");
document.write("<option value=\"http://www.metro.com.cn/\">麦德龙公司</option>");
document.write("<option value=\"http://www.ahau.edu.cn/\">安徽农业大学</option>");
document.write("<option value=\"#\">合肥三十岗乡</option>");
document.write("<option value=\"#\">万青蔬菜协会</option>");
document.write("<option value=\"#\">长丰草莓协会</option>");
document.write("</select></td>");
document.write("</tr>");
document.write("</table>");
}
function make_copyright(){
document.write("<table width=\"898\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" summary=\"共通底部\">");
document.write("<tr>");
document.write("<td align=\"right\"><img src=\"/images/copyright.gif\" alt=\"佳能(中国)有限公司版权所有，未经许可不得转载。\" width=\"225\" height=\"18\">");
document.write("<a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\"><img src=\"/images/icp.gif\" alt=\"京ICP备05038060号\" width=\"98\" height=\"18\" border=\"0\"></a></td></tr></table>");
}

//-->
