/*	sIFR 2.0.1 Official Add-ons 1.2
*/

if(typeof sIFR=="function")(function(){var j=document;var h=j.documentElement;sIFR.removeDecoyClasses=function(){function a(b){if(b&&b.className!=null)b.className=b.className.replace(/\bsIFR-hasFlash\b/,"")}return function(){a(h);a(j.getElementsByTagName("body")[0])}}();sIFR.preferenceManager={storage:{sCookieId:"sifr",set:function(a){var b=new Date();b.setFullYear(b.getFullYear()+3);j.cookie=[this.sCookieId,"=",a,";expires=",b.toGMTString(),";path=/"].join("")},get:function(){var a=j.cookie.match(new RegExp(";?"+this.sCookieId+"=([^;]+);?"));if(a!=null&&a[1]=="false")return false;else return true},reset:function(){var a=new Date();a.setFullYear(a.getFullYear()-1);j.cookie=[this.sCookieId,"=true;expires=",a.toGMTString(),";path=/"].join("")}},disable:function(){this.storage.set(false)},enable:function(){this.storage.set(true)},test:function(){return this.storage.get()}};if(sIFR.preferenceManager.test()==false){sIFR.bIsDisabled=true;sIFR.removeDecoyClasses()}sIFR.rollback=function(){function a(b){var c,d,e,f,g,h;var l=parseSelector(b);var i=l.length-1;var m=false;while(i>=0){c=l[i];l.length--;d=c.parentNode;if(c.getAttribute("sifr")=="true"){h=0;while(h<d.childNodes.length){c=d.childNodes[h];if(c.className=="sIFR-alternate"){e=c;h++;continue}d.removeChild(c)}if(e!=null){f=e.firstChild;while(f!=null){g=f.nextSibling;d.appendChild(e.removeChild(f));f=g}d.removeChild(e)}if(!sIFR.UA.bIsXML&&sIFR.UA.bUseInnerHTMLHack)d.innerHTML+="";d.className=d.className.replace(/\bsIFR\-replaced\b/,"")};m=true;i--}return m}return function(k){named.extract(arguments,{sSelector:function(a){k=a}});if(k==null)k="";else k+=">";sIFR.removeDecoyClasses();sIFR.bHideBrowserText=false;if(a(k+"embed")==false)a(k+"object")}}()})()





String.prototype.getQuery = function(name)
{
　　var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
　　var r = this.substr(this.indexOf("?")+1).match(reg);
　　if (r!=null) return unescape(r[2]); return null;
}
url = location.search; str = url.substr(1); //alert(getCookie('lg'));
if ((str=='en') || (str==null) ){ SetCookie ('lg', 'en') }else if (str=='zh-hans'){ SetCookie ('lg', 'zh-hans') }

function menu(){
	if ((getCookie('lg')==null) || (getCookie('lg')=='en')) {
document.writeln("<A href=\"\/\"><IMG ");
document.writeln("alt=\"Haining Nice-Flourish Auto Parts Co.,Ltd\" ");
document.writeln("src=\"images\/logo.jpg\"><\/A><\/DIV>");
document.writeln("<DIV class=menu><A href=\"\/\">");
document.writeln("<DIV class=home><IMG alt=\"\" ");
document.writeln("src=\"images\/menu2_01.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"aboutus.htm\">");
document.writeln("<DIV class=products><IMG alt=\"Company\" ");
document.writeln("src=\"images\/menu2_02.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"products.htm\">");
document.writeln("<DIV class=company><IMG alt=\"Products\" ");
document.writeln("src=\"images\/menu2_03.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"equipment.htm\">");
document.writeln("<DIV class=edge><IMG alt=\"Equipment\" ");
document.writeln("src=\"images\/menu2_04.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"contactus.htm\">");
document.writeln("<DIV class=news><IMG alt=\"Contact Us\" ");
document.writeln("src=\"images\/menu2_05.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"feedback.htm\">");
document.writeln("<DIV class=contact><IMG alt=\"Feedback\" ");
document.writeln("src=\"images\/menu2_06.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"/?zh-hans\">");
document.writeln("<DIV class=worldwide><IMG alt=简体中文 ");
document.writeln("src=\"images\/menu2_07.jpg\"><\/DIV><\/A>");
	}else if (getCookie('lg')=='zh-hans') {
document.writeln("<A href=\"http:\/\/www.niceflourish.com\/\"><IMG ");
document.writeln("alt=\"海宁佳盛汽车零部件有限公司\" ");
document.writeln("src=\"images\/logo_zh-hans.jpg\"><\/A><\/DIV>");
document.writeln("<DIV class=menu><A href=\"\/\">");
document.writeln("<DIV class=home1><IMG alt=\"\" ");
document.writeln("src=\"images\/menu2_01-.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"aboutus.htm\">");
document.writeln("<DIV class=products1><IMG alt=\"公司简介\" ");
document.writeln("src=\"images\/menu2_02-.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"products.htm\">");
document.writeln("<DIV class=company1><IMG alt=\"产品展示\" ");
document.writeln("src=\"images\/menu2_03-.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"equipment.htm\">");
document.writeln("<DIV class=edge1><IMG alt=\"生产设备\" ");
document.writeln("src=\"images\/menu2_04-.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"contactus.htm\">");
document.writeln("<DIV class=news1><IMG alt=\"联系我们\" ");
document.writeln("src=\"images\/menu2_05-.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"feedback.htm\">");
document.writeln("<DIV class=contact1><IMG alt=\"信息反馈\" ");
document.writeln("src=\"images\/menu2_06-.jpg\"><\/DIV><\/A><A ");
document.writeln("href=\"/?en\">");
document.writeln("<DIV class=worldwide1><IMG alt=English ");
document.writeln("src=\"images\/menu2_07-.jpg\"><\/DIV><\/A>");		
	}

}

function hlist(){
    if ((getCookie('lg')==null) || (getCookie('lg')=='en')) {
document.writeln("<TABLE width=\"100%\" border=0>");
document.writeln("  <TBODY>");
document.writeln("  <TR>");
document.writeln("    <TD style=\"PADDING-RIGHT: 25px\" vAlign=top width=\"25%\">");
document.writeln("      <P class=smalltitle>Products<\/P>");
document.writeln("      <p  class=\"ht\">It is specialized in researching, designing and manufacturing of wheel hub bearings and wheel hub units. <\/p>");
document.writeln("      <P align=right><A href=\"products.htm\">Learn ");
document.writeln("      more<\/A><\/P><\/TD>");
document.writeln("    <TD style=\"PADDING-RIGHT: 25px\" vAlign=top width=\"25%\">");
document.writeln("      <P class=smalltitle> Company<\/P>");
document.writeln("      <P class=\"ht\">It is dedicate to provide high quality and \"Zero Defect\" products to its customers.<\/P>");
document.writeln("      <P align=right><A href=\"aboutus.htm\">Learn ");
document.writeln("    more<\/A><\/P><\/TD>");
document.writeln("    <TD style=\"PADDING-RIGHT: 25px\" vAlign=top width=\"25%\">");
document.writeln("      <P class=smalltitle>Equipment<\/P>");
document.writeln("      <P  class=\"ht\">Possession of its international advanced level of equipment and apparatus for checking, its annual production capacity reaches 1.2 million sets of wheel hub units.<\/P>");
document.writeln("      <P align=right><A href=\"equipment.htm\">Learn ");
document.writeln("more<\/A><\/P><\/TD>");
document.writeln("    <TD style=\"PADDING-RIGHT: 25px\" vAlign=top width=\"25%\">");
document.writeln("      <P class=smalltitle>Contact Us<\/P>");
document.writeln("      <P  class=\"ht\">Feel free to contact us for more details on how we can help your business expand through lower costs in the aftermarket auto parts industry.<\/P>");
document.writeln("      <P align=right><A href=\"contactus.htm\">Learn ");
document.writeln("    more<\/A><\/P><\/TD><\/TR><\/TBODY><\/TABLE>");
  }else if (getCookie('lg')=='zh-hans') {
	 location.href='aboutus.htm'; //alert('Hi Luckyer At 2008.02.28'); 
  }
	
}

function foot(){
		if ((getCookie('lg')==null) || (getCookie('lg')=='en')) {
document.writeln("<DIV id=footer><A href=\"contactus.htm\">Contact Us<\/A> <A ");
document.writeln("href=\"aboutus.htm\">Company<\/A> ");
document.writeln("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2008  Haining Nice-Flourish Auto Parts Co.,Ltd </div>")
			}else if (getCookie('lg')=='zh-hans') {
document.writeln("<DIV id=footer><A href=\"contactus.htm\">联系我们<\/A> <A ");
document.writeln("href=\"aboutus.htm\">公司简介<\/A> ");
document.writeln("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2008  海宁佳盛汽车零部件有限公司 </div>")
		}
}



function lmenu(){
	if ((getCookie('lg')==null) || (getCookie('lg')=='en')) {
document.writeln("<DIV id=submenu>");
document.writeln("- <b>Products</b> -");
document.writeln("<P><A href=\"products.htm\">Double-row anqular contact ball bearing serles <\/A><\/P>");
document.writeln("<P><A href=\"products1.htm\">Double-row taper roller bearing servies <\/A> ");
document.writeln("<P><A href=\"products2.htm\">First Generation HUB Units <\/A><\/P>");
document.writeln("<P><A href=\"products3.htm\">Second Generation HUB Units <\/A><\/P>");
document.writeln("<P><A href=\"products4.htm\">Third Generation HUB Units<\/A><\/P>");
document.writeln("<P>&nbsp;<\/P><\/DIV>");
	}else if (getCookie('lg')=='zh-hans') {
document.writeln("<DIV id=submenu>");
document.writeln("- <b>产品展示</b> -");
document.writeln("<P><A href=\"products.htm\">双列球角接触轮毂轴承系列 <\/A><\/P>");
document.writeln("<P><A href=\"products1.htm\">双列圆锥滚子轴承系列 <\/A> ");
document.writeln("<P><A href=\"products2.htm\">第一代轮毂产品<\/A><\/P>");
document.writeln("<P><A href=\"products3.htm\">第二代轮毂产品<\/A><\/P>");
document.writeln("<P><A href=\"products4.htm\">第三代轮毂产品<\/A><\/P>");
document.writeln("<P>&nbsp;<\/P><\/DIV>");
	}
}

// JavaScript Menu
function CS(NumberOfItem,idName,StyleName,ShutName,DisDivName){
 for(i=2;i<=NumberOfItem;i++)
 {
 var shutdiv="mm"+i;
 var condiv="c"+i
 document.getElementById(shutdiv).className=ShutName;
 document.getElementById(condiv).style.display='none';
 }
document.getElementById(idName).className=StyleName
document.getElementById(DisDivName).style.display='block';
}
function ChangeDisplay(idName1,idName2,idName3){
document.getElementById(idName1).style.display='block';
document.getElementById(idName2).style.display='none';
document.getElementById(idName3).style.display='none';
}
function ChangeDiv(idName1,idName2,idName3,StyleName1,StyleName2,StyleName3,DisDivName1,DisDivName2,DisDivName3){

document.getElementById(idName1).className=StyleName1;
document.getElementById(idName2).className=StyleName2;
document.getElementById(idName3).className=StyleName3;
document.getElementById(DisDivName1).style.display='block';
document.getElementById(DisDivName2).style.display='none';
document.getElementById(DisDivName3).style.display='none';
}


