﻿function e(){
if(arguments[0]==0)document.write('<a title="给飞煌发送邮件" class="Email" href="mailto:kefu&#064;fhuang.com"></a>');
else if(arguments[0]==1)document.write('<a class="u" title="给飞煌发送邮件" href="mailto:kefu&#064;fhuang.com">kefu&#064;fhuang.com</a>');
else document.write('Email:<a style="font-size:8pt" title="给飞煌发送邮件" href="mailto:kefu&#064;fhuang.com">kefu&#064;fhuang.com</a>');
}
function toHome(){window.location.href="http://www.fhuang.com/"}
function checkGBForm(f){
if($("BLDname").value==""){$("MsgName").innerHTML="请填写您的称呼！";return false;}
else if($("BLDcontent").value==""){$("MsgContent").innerHTML="请填写留言的内容！";return false;}
else {$("MsgName").innerHTML="";$("MsgContent").innerHTML="";return true}
}
function AccordionInit(Banner,Content) {
var accTitle = $$(Banner);
var accContent = $$(Content);
var pwAccordion = new Accordion(
	accTitle, accContent, {
		onActive: function(tog){
			tog.addClass('selected');
			var accTitleOnOff = new Fx.Styles(tog, {wait: false, duration: 400});
			accTitleOnOff.start({});},
		onBackground: function(tog){
			tog.removeClass('selected');
			var accTitleOnOff = new Fx.Styles(tog, {wait: false, duration: 400});
			accTitleOnOff.start({});},
		alwaysHide: true,
		start: 'all-closed',
		duration: 700
	});}
function externalLinks() {
if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
			anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}
}	

function BLDResize(img){
if(img.width>550)img.width=550;
}
function messageSuccess(){$("MsgOk").style.display="block";$("MsgOk").innerHTML="<b>"+$("BLDname").value+":</b><br>　　谢谢！您的留言已经成功保存。如果您留下了联系方式，我们会尽快和您取得联系！";$("gbookform").reset()}
