info = "<link href=\"\/js/roll/roll_css.css\" rel=\"stylesheet\" type=\"text/css\" media=\"all\" />" +"\n"+
"<div id=\"YNews\">" +"\n"+
 "	  <dl><dt><a href=\"http://nz120.zoossoft.com/LR/Chatpre.aspx?id=LCJ16169065&lng=cn\" title=\"温州东方妇产医院 温州妇产科第一品牌\" target=\"_blank\"><img src=\"\/js/roll/img/fk_1.jpg\" alt=\"温州东方妇产医院 温州妇产科第一品牌\" /></a></dt></dl>" +"\n"+
  "	  <dl><dt><a href=\"http://nz120.zoossoft.com/LR/Chatpre.aspx?id=LCJ16169065&lng=cn\" title=\"浙南首个水中分娩中心落户温州东方妇产医院\" target=\"_blank\"><img src=\"\/js/roll/img/fk_2.jpg\" alt=\"浙南首个水中分娩中心落户温州东方妇产医院\" /></a></dt></dl>" +"\n"+
  "      <p id=\"YNIndex\"><a href=\"http://www.fc120.org/chuzhou-7142.html\">1</a><a href=\"http://www.fc120.org/glx-6393.html\">2</a></p>" +"\n"+
  "</div>" +"\n"+
  "<script language=\"javascript\" type=\"text/javascript\">" +"\n"+
  "" +"\n"+
  "var YAO = function(){" +"\n"+
  "	var D = document, OA = \'[object Array]\', FC = \"[object Function]\", OP = Object.prototype, nt = \"nodeType\", listeners = [], webkitKeymap = {" +"\n"+
  "		63232: 38, // up" +"\n"+
  "		63233: 40, // down" +"\n"+
  "		63234: 37, // left" +"\n"+
  "		63235: 39, // right" +"\n"+
  "		63276: 33, // page up" +"\n"+
  "		63277: 34, // page down" +"\n"+
  "		25: 9 // SHIFT-TAB (Safari provides a different key code in" +"\n"+
  "	}, patterns = {" +"\n"+
  "		HYPHEN: /(-[a-z])/i," +"\n"+
  "		ROOT_TAG: /body|html/i" +"\n"+
  "	}, lastError = null;" +"\n"+
  "	" +"\n"+
  "	return {" +"\n"+
  "		isArray: function(obj){" +"\n"+
  "			return OP.toString.apply(obj) === OA;" +"\n"+
  "		}," +"\n"+
  "		isString: function(s){" +"\n"+
  "			return typeof s === \'string\';" +"\n"+
  "		}," +"\n"+
  "		isBoolean: function(b){" +"\n"+
  "			return typeof b === \'boolean\';" +"\n"+
  "		}," +"\n"+
  "		isFunction: function(func){" +"\n"+
  "			return OP.toString.apply(func) === FC;" +"\n"+
  "		}," +"\n"+
  "		isNull: function(obj){" +"\n"+
  "			return obj === null;" +"\n"+
  "		}," +"\n"+
  "		isNumber: function(num){" +"\n"+
  "			return typeof num === \'number\' && isFinite(num);" +"\n"+
  "		}," +"\n"+
  "		isObject: function(str){" +"\n"+
  "			return (str && (typeof str === \"object\" || this.isFunction(str))) || false;" +"\n"+
  "		}," +"\n"+
  "		isUndefined: function(obj){" +"\n"+
  "			return typeof obj === \'undefined\';" +"\n"+
  "		}," +"\n"+
  "		hasOwnProperty: function(obj, prper){" +"\n"+
  "			if (OP.hasOwnProperty) {" +"\n"+
  "				return obj.hasOwnProperty(prper);" +"\n"+
  "			}" +"\n"+
  "			return !this.isUndefined(obj[prper]) && obj.constructor.prototype[prper] !== obj[prper];" +"\n"+
  "		}," +"\n"+
  "		isMobile: function(mobile){" +"\n"+
  "			return /^(13|15|18)\\d{9}$/.test(YAO.trim(mobile));" +"\n"+
  "		}," +"\n"+
  "		isName: function(name){" +"\n"+
  "			return /^[\\w\\u4e00-\\u9fa5]{1}[\\w\\u4e00-\\u9fa5 \\.]{0,19}$/.test(YAO.trim(name));" +"\n"+
  "		}," +"\n"+
  "		" +"\n"+
  "        keys: function(obj){" +"\n"+
  "            var b = [];" +"\n"+
  "            for (var p in obj) {" +"\n"+
  "                b.push(p);" +"\n"+
  "            }" +"\n"+
  "            return b;" +"\n"+
  "        }," +"\n"+
  "        values: function(obj){" +"\n"+
  "            var a = [];" +"\n"+
  "            for (var p in obj) {" +"\n"+
  "                a.push(obj[p]);" +"\n"+
  "            }" +"\n"+
  "            return a;" +"\n"+
  "        }," +"\n"+
  "        isXMLDoc: function(obj){" +"\n"+
  "            return obj.documentElement && !obj.body || obj.tagName && obj.ownerDocument && !obj.ownerDocument.body;" +"\n"+
  "        }," +"\n"+
  "        formatNumber: function(b, e){" +"\n"+
  "            e = e || \'\';" +"\n"+
  "            b += \'\';" +"\n"+
  "            var d = b.split(\'.\');" +"\n"+
  "            var a = d[0];" +"\n"+
  "            var c = d.length > 1 ? \'.\' + d[1] : \'\';" +"\n"+
  "            var f = /(\\d+)(\\d{3})/;" +"\n"+
  "            while (f.test(a)) {" +"\n"+
  "                a = a.replace(f, \'$1,$2\');" +"\n"+
  "            }" +"\n"+
  "            return e + a + c;" +"\n"+
  "        }," +"\n"+
  "        unformatNumber: function(a){" +"\n"+
  "            return a.replace(/([^0-9\\.\\-])/g, \'\') * 1;" +"\n"+
  "        }," +"\n"+
  "        stringBuffer: function(){" +"\n"+
  "            var a = [];" +"\n"+
  "            for (var i = 0; i < arguments.length; ++i) {" +"\n"+
  "                a.push(arguments[i]);" +"\n"+
  "            }" +"\n"+
  "            return a.join(\'\');" +"\n"+
  "        }," +"\n"+
  "        trim: function(str){" +"\n"+
  "            try {" +"\n"+
  "                return str.replace(/^\\s+|\\s+$/g, \'\');" +"\n"+
  "            } " +"\n"+
  "            catch (a) {" +"\n"+
  "                return str;" +"\n"+
  "            }" +"\n"+
  "        }," +"\n"+
  "        stripTags: function(str){" +"\n"+
  "            return str.replace(/<\\/?[^>]+>/gi, \'\');" +"\n"+
  "        }," +"\n"+
  "        stripScripts: function(str){" +"\n"+
  "            return str.replace(/<script[^>]*>([\\\\S\\\\s]*?)<\\/script>/g, \'\');" +"\n"+
  "        }," +"\n"+
  "        isJSON: function(obj){" +"\n"+
  "            obj = obj.replace(/\\\\./g, \'@\').replace(/\"[^\"\\\\\\n\\r]*\"/g, \'\');" +"\n"+
  "            return (/^[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t]*$/).test(obj);" +"\n"+
  "        }," +"\n"+
  "        encodeHTML: function(str){" +"\n"+
  "            return str.replace(/&/g, \'&amp;\').replace(/</g, \'&lt;\').replace(/>/g, \'&gt;\');" +"\n"+
  "        }," +"\n"+
  "        decodeHTML: function(str){" +"\n"+
  "            return str.replace(/&amp;/g, \'&\').replace(/&lt;/g, \'<\').replace(/&gt;/g, \'>\');" +"\n"+
  "        }," +"\n"+
  "		toCamel: function(property){" +"\n"+
  "			if (!patterns.HYPHEN.test(property)) {" +"\n"+
  "				return property;" +"\n"+
  "			}" +"\n"+
  "			if (propertyCache[property]) {" +"\n"+
  "				return propertyCache[property];" +"\n"+
  "			}" +"\n"+
  "			var converted = property;" +"\n"+
  "			while (patterns.HYPHEN.exec(converted)) {" +"\n"+
  "				converted = converted.replace(RegExp.$1, RegExp.$1.substr(1).toUpperCase());" +"\n"+
  "			}" +"\n"+
  "			propertyCache[property] = converted;" +"\n"+
  "			return converted;" +"\n"+
  "		}," +"\n"+
  "		 " +"\n"+
  "        Cookie: {" +"\n"+
  "            set: function(g, c, f, b){" +"\n"+
  "                var e = new Date();" +"\n"+
  "                var a = new Date();" +"\n"+
  "                if (f == null || f == 0) {" +"\n"+
  "                    f = 1;" +"\n"+
  "                }" +"\n"+
  "                a.setTime(e.getTime() + 3600000 * 24 * f);" +"\n"+
  "                D.cookie = g + \'=\' + encodeURI(c) + \';expires=\' + a.toGMTString() + \';domain=\' + b + \'; path=/\';" +"\n"+
  "            }," +"\n"+
  "            get: function(e){" +"\n"+
  "                var b = D.cookie;" +"\n"+
  "                var d = e + \'=\';" +"\n"+
  "                var c = b.indexOf(\'; \' + d);" +"\n"+
  "                if (c == -1) {" +"\n"+
  "                    c = b.indexOf(d);" +"\n"+
  "                    if (c != 0) {" +"\n"+
  "                        return null;" +"\n"+
  "                    }" +"\n"+
  "                }" +"\n"+
  "                else {" +"\n"+
  "                    c += 2;" +"\n"+
  "                }" +"\n"+
  "                var a = D.cookie.indexOf(\';\', c);" +"\n"+
  "                if (a == -1) {" +"\n"+
  "                    a = b.length;" +"\n"+
  "                }" +"\n"+
  "                return decodeURI(b.substring(c + d.length, a));" +"\n"+
  "            }," +"\n"+
  "            clear: function(b, a){" +"\n"+
  "                if (this.get(b)) {" +"\n"+
  "                    D.cookie = b + \'=\' + ((domain) ? \'; domain=\' + a : \'\') + \'; expires=Thu, 01-Jan-70 00:00:01 GMT\';" +"\n"+
  "                }" +"\n"+
  "            }" +"\n"+
  "        }," +"\n"+
  "		" +"\n"+
  "		ua: function(){" +"\n"+
  "			var C = {" +"\n"+
  "				ie: 0," +"\n"+
  "				opera: 0," +"\n"+
  "				gecko: 0," +"\n"+
  "				webkit: 0," +"\n"+
  "				mobile: null," +"\n"+
  "				air: 0," +"\n"+
  "				caja: 0" +"\n"+
  "			}, B = navigator.userAgent, A;" +"\n"+
  "			if ((/KHTML/).test(B)) {" +"\n"+
  "				C.webkit = 1;" +"\n"+
  "			}" +"\n"+
  "			A = B.match(/AppleWebKit\\/([^\\s]*)/);" +"\n"+
  "			if (A && A[1]) {" +"\n"+
  "				C.webkit = parseFloat(A[1]);" +"\n"+
  "				if (/ Mobile\\//.test(B)) {" +"\n"+
  "					C.mobile = \'Apple\';" +"\n"+
  "				}" +"\n"+
  "				else {" +"\n"+
  "					A = B.match(/NokiaN[^\\/]*/);" +"\n"+
  "					if (A) {" +"\n"+
  "						C.mobile = A[0];" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "				A = B.match(/AdobeAIR\\/([^\\s]*)/);" +"\n"+
  "				if (A) {" +"\n"+
  "					C.air = A[0];" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			if (!C.webkit) {" +"\n"+
  "				A = B.match(/Opera[\\s\\/]([^\\s]*)/);" +"\n"+
  "				if (A && A[1]) {" +"\n"+
  "					C.opera = parseFloat(A[1]);" +"\n"+
  "					A = B.match(/Opera Mini[^;]*/);" +"\n"+
  "					if (A) {" +"\n"+
  "						C.mobile = A[0];" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "				else {" +"\n"+
  "					A = B.match(/MSIE\\s([^;]*)/);" +"\n"+
  "					if (A && A[1]) {" +"\n"+
  "						C.ie = parseFloat(A[1]);" +"\n"+
  "					}" +"\n"+
  "					else {" +"\n"+
  "						A = B.match(/Gecko\\/([^\\s]*)/);" +"\n"+
  "						if (A) {" +"\n"+
  "							C.gecko = 1;" +"\n"+
  "							A = B.match(/rv:([^\\s\\)]*)/);" +"\n"+
  "							if (A && A[1]) {" +"\n"+
  "								C.gecko = parseFloat(A[1]);" +"\n"+
  "							}" +"\n"+
  "						}" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			A = B.match(/Caja\\/([^\\s]*)/);" +"\n"+
  "			if (A && A[1]) {" +"\n"+
  "				C.caja = parseFloat(A[1]);" +"\n"+
  "			}" +"\n"+
  "			return C;" +"\n"+
  "		}()," +"\n"+
  "		" +"\n"+
  "        extend: function(subClass, superClass, override){" +"\n"+
  "            if (!superClass || !subClass) {" +"\n"+
  "                throw new Error(\'extend failed, please check that all dependencies are included.\');" +"\n"+
  "            }" +"\n"+
  "            var F = function(){};" +"\n"+
  "            F.prototype = superClass.prototype;" +"\n"+
  "            subClass.prototype = new F();" +"\n"+
  "            subClass.prototype.constructor = subClass;" +"\n"+
  "            subClass.superclass = superClass.prototype;" +"\n"+
  "            if (superClass.prototype.constructor == Object.prototype.constructor) {" +"\n"+
  "                superClass.prototype.constructor = superClass;" +"\n"+
  "            }" +"\n"+
  "            if (override) {" +"\n"+
  "                for (var p in override) {" +"\n"+
  "                    subClass.prototype[p] = override[p];" +"\n"+
  "                }" +"\n"+
  "            }" +"\n"+
  "        }," +"\n"+
  "        augmentProto: function(sub, sup){" +"\n"+
  "            if (!sub || !sup) {" +"\n"+
  "                throw new Error(\'augment failed, please check that all dependencies are included.\');" +"\n"+
  "            }" +"\n"+
  "            var d = sub.prototype, g = sup.prototype, b = arguments, c, h;" +"\n"+
  "            if (b[2]) {" +"\n"+
  "                for (c = 2; c < b.length; c += 1) {" +"\n"+
  "                    d[b[c]] = g[b[c]];" +"\n"+
  "                }" +"\n"+
  "            }" +"\n"+
  "            else {" +"\n"+
  "                for (h in g) {" +"\n"+
  "                    if (!d[h]) {" +"\n"+
  "                        d[h] = g[h];" +"\n"+
  "                    }" +"\n"+

  "                }" +"\n"+
  "            }" +"\n"+
  "        }," +"\n"+
  "        augmentObject: function(e, d){" +"\n"+
  "            if (!d || !e) {" +"\n"+
  "                throw new Error(\'augment failed, please check that all dependencies are included.\');" +"\n"+
  "            }" +"\n"+
  "            var b = arguments, c, f;" +"\n"+
  "            if (b[2]) {" +"\n"+
  "                if (YAO.isString(b[2])) {" +"\n"+
  "                    e[b[2]] = d[b[2]];" +"\n"+
  "                }" +"\n"+
  "                else {" +"\n"+
  "                    for (c = 0; c < b[2].length; c += 1) {" +"\n"+
  "                        e[b[2][c]] = d[b[2][c]];" +"\n"+
  "                    }" +"\n"+
  "                }" +"\n"+
  "            }" +"\n"+
  "            else {" +"\n"+
  "                for (f in d) {" +"\n"+
  "                    e[f] = d[f];" +"\n"+
  "                }" +"\n"+
  "            }" +"\n"+
  "            return e;" +"\n"+
  "        }," +"\n"+
  "        clone: function(d, f){" +"\n"+
  "            var e = function(){" +"\n"+
  "            }, b, c = arguments;" +"\n"+
  "            e.prototype = d;" +"\n"+
  "            b = new e;" +"\n"+
  "            if (f) {" +"\n"+
  "                for (p in f) {" +"\n"+
  "                    b[p] = f[p];" +"\n"+
  "                }" +"\n"+
  "            }" +"\n"+
  "            return b;" +"\n"+
  "        }," +"\n"+
  "		" +"\n"+
  "		addListener: function(el, sType, fn, obj, overrideContext, bCapture){" +"\n"+
  "			var oEl = null, context = null, wrappedFn = null;" +"\n"+
  "			if(YAO.isString(el)){" +"\n"+
  "				oEl = YAO.getEl(el);" +"\n"+
  "				el = oEl;" +"\n"+
  "			}" +"\n"+
  "			if(!el || !fn || !fn.call){" +"\n"+
  "				return false;" +"\n"+
  "			}" +"\n"+
  "			context = el;" +"\n"+
  "			if (overrideContext) {" +"\n"+
  "				if (overrideContext === true) {" +"\n"+
  "					context = obj;" +"\n"+
  "				}" +"\n"+
  "				else {" +"\n"+
  "					context = overrideContext;" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			wrappedFn = function(e){" +"\n"+
  "				return fn.call(context, YAO.getEvent(e, el), obj);" +"\n"+
  "			};" +"\n"+
  "			try {" +"\n"+
  "				try {" +"\n"+
  "					el.addEventListener(sType, wrappedFn, bCapture);" +"\n"+
  "				} " +"\n"+
  "				catch (e) {" +"\n"+
  "					try {" +"\n"+
  "						el.attachEvent(\'on\' + sType, wrappedFn);" +"\n"+
  "					} " +"\n"+
  "					catch (e) {" +"\n"+
  "						el[\'on\' + sType] = wrappedFn;" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "			} " +"\n"+
  "			catch (e) {" +"\n"+
  "				lastError = e;" +"\n"+
  "				this.removeListener(el, sType, wrappedFn, bCapture);" +"\n"+
  "				return false;" +"\n"+
  "			}" +"\n"+
  "			if (\'unload\' != sType) {" +"\n"+
  "				// cache the listener so we can try to automatically unload" +"\n"+
  "				listeners[listeners.length] = [el, sType, fn, wrappedFn, bCapture];" +"\n"+
  "			}" +"\n"+
  "			return true;" +"\n"+
  "		}," +"\n"+
  "        removeListener: function(el, sType, fn, bCapture){" +"\n"+
  "			try {" +"\n"+
  "				if (window.removeEventListener) {" +"\n"+
  "					return function(el, sType, fn, bCapture){" +"\n"+
  "						el.removeEventListener(sType, fn, (bCapture));" +"\n"+
  "					};" +"\n"+
  "				}" +"\n"+
  "				else {" +"\n"+
  "					if (window.detachEvent) {" +"\n"+
  "						return function(el, sType, fn){" +"\n"+
  "							el.detachEvent(\"on\" + sType, fn);" +"\n"+
  "						};" +"\n"+
  "					}" +"\n"+
  "					else {" +"\n"+
  "						return function(){" +"\n"+
  "						};" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "			} " +"\n"+
  "			catch (e) {" +"\n"+
  "				lastError = e;" +"\n"+
  "				return false;" +"\n"+
  "			}" +"\n"+
  "			" +"\n"+
  "			return true;" +"\n"+
  "		}," +"\n"+
  "		on: function(el, sType, fn, obj, overrideContext){" +"\n"+
  "			var oEl = obj || el, scope = overrideContext || this;" +"\n"+
  "			return YAO.addListener(el, sType, fn, oEl, scope, false);" +"\n"+
  "		}," +"\n"+
  "		stopEvent: function(evt){" +"\n"+
  "			this.stopPropagation(evt);" +"\n"+
  "			this.preventDefault(evt);" +"\n"+
  "		}," +"\n"+
  "		stopPropagation: function(evt){" +"\n"+
  "			if (evt.stopPropagation) {" +"\n"+
  "				evt.stopPropagation();" +"\n"+
  "			}" +"\n"+
  "			else {" +"\n"+
  "				evt.cancelBubble = true;" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		preventDefault: function(evt){" +"\n"+
  "			if (evt.preventDefault) {" +"\n"+
  "				evt.preventDefault();" +"\n"+
  "			}" +"\n"+
  "			else {" +"\n"+
  "				evt.returnValue = false;" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		getEvent: function(e, boundEl){" +"\n"+
  "			var ev = e || window.event;" +"\n"+
  "			" +"\n"+
  "			if (!ev) {" +"\n"+
  "				var c = this.getEvent.caller;" +"\n"+
  "				while (c) {" +"\n"+
  "					ev = c.arguments[0];" +"\n"+
  "					if (ev && Event == ev.constructor) {" +"\n"+
  "						break;" +"\n"+
  "					}" +"\n"+
  "					c = c.caller;" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			" +"\n"+
  "			return ev;" +"\n"+
  "		}," +"\n"+
  "		getCharCode: function(ev){" +"\n"+
  "			var code = ev.keyCode || ev.charCode || 0;" +"\n"+
  "			" +"\n"+
  "			// webkit key normalization" +"\n"+
  "			if (YAO.ua.webkit && (code in webkitKeymap)) {" +"\n"+
  "				code = webkitKeymap[code];" +"\n"+
  "			}" +"\n"+
  "			return code;" +"\n"+
  "		}," +"\n"+
  "		_unload: function(e){" +"\n"+
  "			var j, l;" +"\n"+
  "			if (listeners) {" +"\n"+
  "				for (j = listeners.length - 1; j > -1; j--) {" +"\n"+
  "					l = listeners[j];" +"\n"+
  "					if (l) {" +"\n"+
  "						YAO.removeListener(l[0], l[1], l[3], l[4]);" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "				l = null;" +"\n"+
  "			}" +"\n"+
  "			" +"\n"+
  "			YAO.removeListener(window, \"unload\", YAO._unload);" +"\n"+
  "		}," +"\n"+
  "		" +"\n"+
  "		getEl: function(elem){" +"\n"+
  "			var elemID, E, m, i, k, length, len;" +"\n"+
  "			if (elem) {" +"\n"+
  "				if (elem[nt] || elem.item) {" +"\n"+
  "					return elem;" +"\n"+
  "				}" +"\n"+
  "				if (YAO.isString(elem)) {" +"\n"+
  "					elemID = elem;" +"\n"+
  "					elem = D.getElementById(elem);" +"\n"+
  "					if (elem && elem.id === elemID) {" +"\n"+
  "						return elem;" +"\n"+
  "					}" +"\n"+
  "					else {" +"\n"+
  "						if (elem && elem.all) {" +"\n"+
  "							elem = null;" +"\n"+
  "							E = D.all[elemID];" +"\n"+
  "							for (i = 0, len = E.length; i < len; i += 1) {" +"\n"+
  "								if (E[i].id === elemID) {" +"\n"+
  "									return E[i];" +"\n"+
  "								}" +"\n"+
  "							}" +"\n"+
  "						}" +"\n"+
  "					}" +"\n"+
  "					return elem;" +"\n"+
  "				}" +"\n"+
  "				else {" +"\n"+
  "					if (elem.DOM_EVENTS) {" +"\n"+
  "						elem = elem.get(\"element\");" +"\n"+
  "					}" +"\n"+
  "					else {" +"\n"+
  "						if (YAO.isArray(elem)) {" +"\n"+
  "							m = [];" +"\n"+
  "							for (k = 0, length = elem.length; k < length; k += 1) {" +"\n"+
  "								m[m.length] = YAO.getEl(elem[k]);" +"\n"+
  "							}" +"\n"+
  "							return m;" +"\n"+
  "						}" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			return null;" +"\n"+
  "		}," +"\n"+
  "		hasClass: function(elem, className){" +"\n"+
  "			var has = new RegExp(\"(?:^|\\\\s+)\" + className + \"(?:\\\\s+|$)\");" +"\n"+
  "			return has.test(elem.className);" +"\n"+
  "		}," +"\n"+
  "		addClass: function(elem, className){" +"\n"+
  "			if (YAO.hasClass(elem, className)) {" +"\n"+
  "				return;" +"\n"+
  "			}" +"\n"+
  "			elem.className = [elem.className, className].join(\" \");" +"\n"+
  "		}," +"\n"+
  "		removeClass: function(elem, className){" +"\n"+
  "			var replace = new RegExp(\"(?:^|\\\\s+)\" + className + \"(?:\\\\s+|$)\", \"g\");" +"\n"+
  "			if (!YAO.hasClass(elem, className)) {" +"\n"+
  "				return;" +"\n"+
  "			}" +"\n"+
  "			var o = elem.className;" +"\n"+
  "			elem.className = o.replace(replace, \" \");" +"\n"+
  "			if (YAO.hasClass(elem, className)) {" +"\n"+
  "				YAO.removeClass(elem, className);" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		replaceClass: function(elem, newClass, oldClass){" +"\n"+
  "			if (newClass === oldClass) {" +"\n"+
  "				return false;" +"\n"+
  "			}" +"\n"+
  "			var has = new RegExp(\"(?:^|\\\\s+)\" + newClass + \"(?:\\\\s+|$)\", \"g\");" +"\n"+
  "			if (!YAO.hasClass(elem, newClass)) {" +"\n"+
  "				YAO.addClass(elem, oldClass);" +"\n"+
  "				return;" +"\n"+
  "			}" +"\n"+
  "			elem.className = elem.className.replace(has, \" \" + oldClass + \" \");" +"\n"+
  "			if (YAO.hasClass(elem, newClass)) {" +"\n"+
  "				YAO.replaceClass(elem, newClass, oldClass);" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		getElByClassName: function(className, tag, rootId){" +"\n"+
  "			var elems = [], i, tempCnt = YAO.getEl(rootId).getElementsByTagName(tag), len = tempCnt.length;" +"\n"+
  "			for (i = 0; i < len; ++i) {" +"\n"+
  "				if (YAO.hasClass(tempCnt[i], className)) {" +"\n"+
  "					elems.push(tempCnt[i]);" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			if (elems.length < 1) {" +"\n"+
  "				return false;" +"\n"+
  "			}" +"\n"+
  "			else {" +"\n"+
  "				return elems;" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		getStyle: function(el, property){" +"\n"+
  "			if (document.defaultView && document.defaultView.getComputedStyle) {" +"\n"+
  "				var value = null;" +"\n"+
  "				if (property == \'float\') {" +"\n"+
  "					property = \'cssFloat\';" +"\n"+
  "				}" +"\n"+
  "				var computed = document.defaultView.getComputedStyle(el, \'\');" +"\n"+
  "				if (computed) {" +"\n"+
  "					value = computed[YAO.toCamel(property)];" +"\n"+
  "				}" +"\n"+
  "				return el.style[property] || value;" +"\n"+
  "			}" +"\n"+
  "			else {" +"\n"+
  "				if (document.documentElement.currentStyle && YAO.ua.ie) {" +"\n"+
  "					switch (YAO.toCamel(property)) {" +"\n"+
  "						case \'opacity\':" +"\n"+
  "							var val = 100;" +"\n"+
  "							try {" +"\n"+
  "								val = el.filters[\'DXImageTransform.Microsoft.Alpha\'].opacity;" +"\n"+
  "							} " +"\n"+
  "							catch (e) {" +"\n"+
  "								try {" +"\n"+
  "									val = el.filters(\'alpha\').opacity;" +"\n"+
  "								} " +"\n"+
  "								catch (e) {" +"\n"+
  "								}" +"\n"+
  "							}" +"\n"+
  "							return val / 100;" +"\n"+
  "							break;" +"\n"+
  "						case \'float\':" +"\n"+
  "							property = \'styleFloat\';" +"\n"+
  "						default:" +"\n"+
  "							var value = el.currentStyle ? el.currentStyle[property] : null;" +"\n"+
  "							return (el.style[property] || value);" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "				else {" +"\n"+
  "					return el.style[property];" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		setStyle: function(el, property, val){" +"\n"+
  "			if (YAO.ua.ie) {" +"\n"+
  "				switch (property) {" +"\n"+
  "					case \'opacity\':" +"\n"+
  "						if (YAO.isString(el.style.filter)) {" +"\n"+
  "							el.style.filter = \'alpha(opacity=\' + val * 100 + \')\';" +"\n"+
  "							if (!el.currentStyle || !el.currentStyle.hasLayout) {" +"\n"+
  "								el.style.zoom = 1;" +"\n"+
  "							}" +"\n"+
  "						}" +"\n"+
  "						break;" +"\n"+
  "					case \'float\':" +"\n"+
  "						property = \'styleFloat\';" +"\n"+
  "					default:" +"\n"+
  "						el.style[property] = val;" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			else {" +"\n"+
  "				if (property == \'float\') {" +"\n"+
  "					property = \'cssFloat\';" +"\n"+
  "				}" +"\n"+
  "				el.style[property] = val;" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		setStyles: function(el, propertys){" +"\n"+
  "			for(var p in propertys){" +"\n"+
  "				YAO.setStyle(el,p,propertys[p]);" +"\n"+
  "			}" +"\n"+
  "			return el;" +"\n"+
  "		}," +"\n"+
  "        getElementsBy: function(method, tag, root){" +"\n"+
  "            tag = tag || \"*\";" +"\n"+
  "            var m = [];" +"\n"+
  "            if (root) {" +"\n"+
  "                root = YAO.getEl(root);" +"\n"+
  "                if (!root) {" +"\n"+
  "                    return m;" +"\n"+
  "                }" +"\n"+
  "            }" +"\n"+
  "            else {" +"\n"+
  "                root = document;" +"\n"+
  "            }" +"\n"+
  "            var oElem = root.getElementsByTagName(tag);" +"\n"+
  "            if (!oElem.length && (tag === \"*\" && root.all)) {" +"\n"+
  "                oElem = root.all;" +"\n"+
  "            }" +"\n"+
  "            for (var n = 0, j = oElem.length; n < j; ++n) {" +"\n"+
  "                if (method(oElem[n])) {" +"\n"+
  "                    m[m.length] = oElem[n];" +"\n"+
  "                }" +"\n"+
  "            }" +"\n"+
  "            return m;" +"\n"+
  "        }," +"\n"+
  "        getDocumentWidth: function(){" +"\n"+
  "            var k = YAO.getScrollWidth();" +"\n"+
  "            var j = Math.max(k, YAO.getViewportWidth());" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        getDocumentHeight: function(){" +"\n"+
  "            var k = YAO.getScrollHeight();" +"\n"+
  "            var j = Math.max(k, YAO.getViewportHeight());" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        getScrollWidth: function(){" +"\n"+
  "            var j = (D.compatMode == \"CSS1Compat\") ? D.body.scrollWidth : D.Element.scrollWidth;" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        getScrollHeight: function(){" +"\n"+
  "            var j = (D.compatMode == \"CSS1Compat\") ? D.body.scrollHeight : D.documentElement.scrollHeight;" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        getXScroll: function(){" +"\n"+
  "            var j = self.pageXOffset || D.documentElement.scrollLeft || D.body.scrollLeft;" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        getYScroll: function(){" +"\n"+
  "            var j = self.pageYOffset || D.documentElement.scrollTop || D.body.scrollTop;" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        getViewportWidth: function(){" +"\n"+
  "            var j = self.innerWidth;" +"\n"+
  "            var k = D.compatMode;" +"\n"+
  "            if (k || YAO.ua.ie) {" +"\n"+
  "                j = (k == \"CSS1Compat\") ? D.documentElement.clientWidth : D.body.clientWidth;" +"\n"+
  "            }" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        getViewportHeight: function(){" +"\n"+
  "            var j = self.innerHeight;" +"\n"+
  "            var k = D.compatMode;" +"\n"+
  "            if ((k || YAO.ua.ie) && !YAO.ua.opera) {" +"\n"+
  "                j = (k == \"CSS1Compat\") ? D.documentElement.clientHeight : D.body.clientHeight;" +"\n"+
  "            }" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        removeChildren: function(j){" +"\n"+
  "            if (!(prent = YAO.getEl(j))) {" +"\n"+
  "                return false;" +"\n"+
  "            }" +"\n"+
  "            while (j.firstChild) {" +"\n"+
  "                j.firstChild.parentNode.removeChild(j.firstChild);" +"\n"+
  "            }" +"\n"+
  "            return j;" +"\n"+
  "        }," +"\n"+
  "        prependChild: function(k, j){" +"\n"+
  "            if (!(k = YAO.getEl(k)) || !(j = YAO.getEl(j))) {" +"\n"+
  "                return false;" +"\n"+
  "            }" +"\n"+
  "            if (k.firstChild) {" +"\n"+
  "                k.insertBefore(j, k.firstChild);" +"\n"+
  "            }" +"\n"+
  "            else {" +"\n"+
  "                k.appendChild(j);" +"\n"+
  "            }" +"\n"+
  "            return k;" +"\n"+
  "        }," +"\n"+
  "        insertAfter: function(l, j){" +"\n"+
  "            var k = j.parentNode;" +"\n"+
  "            if (k.lastChild == j) {" +"\n"+
  "                k.appendChild(l);" +"\n"+
  "            }" +"\n"+
  "            else {" +"\n"+
  "                k.insertBefore(l, j.nextSibling);" +"\n"+
  "            }" +"\n"+
  "        }," +"\n"+
  "		setOpacity: function(el, val){" +"\n"+
  "			YAO.setStyle(el, \'opacity\', val);" +"\n"+
  "		}," +"\n"+
  "		Builder: {" +"\n"+
  "			nidx: 0," +"\n"+
  "			NODEMAP: {" +"\n"+
  "				AREA: \'map\'," +"\n"+
  "				CAPTION: \'table\'," +"\n"+
  "				COL: \'table\'," +"\n"+
  "				COLGROUP: \'table\'," +"\n"+
  "				LEGEND: \'fieldset\'," +"\n"+
  "				OPTGROUP: \'select\'," +"\n"+
  "				OPTION: \'select\'," +"\n"+
  "				PARAM: \'object\'," +"\n"+
  "				TBODY: \'table\'," +"\n"+
  "				TD: \'table\'," +"\n"+
  "				TFOOT: \'table\'," +"\n"+
  "				TH: \'table\'," +"\n"+
  "				THEAD: \'table\'," +"\n"+
  "				TR: \'table\'" +"\n"+
  "			}," +"\n"+
  "			ATTR_MAP: {" +"\n"+
  "				\'className\': \'class\'," +"\n"+
  "				\'htmlFor\': \'for\'," +"\n"+
  "				\'readOnly\': \'readonly\'," +"\n"+
  "				\'maxLength\': \'maxlength\'," +"\n"+
  "				\'cellSpacing\': \'cellspacing\'" +"\n"+
  "			}," +"\n"+
  "			EMPTY_TAG: /^(?:BR|FRAME|HR|IMG|INPUT|LINK|META|RANGE|SPACER|WBR|AREA|PARAM|COL)$/i," +"\n"+
  "			// 追加Link节点（添加CSS样式表）" +"\n"+
  "			linkNode: function(url, cssId, charset){" +"\n"+
  "				var c = charset || \'utf-8\', link = null;" +"\n"+
  "				var head = D.getElementsByTagName(\'head\')[0];" +"\n"+
  "				link = this.Node(\'link\', {" +"\n"+
  "					\'id\': cssId || (\'link-\' + (YAO.Builder.nidx++))," +"\n"+
  "					\'type\': \'text/css\'," +"\n"+
  "					\'charset\': c," +"\n"+
  "					\'rel\': \'stylesheet\'," +"\n"+
  "					\'href\': url" +"\n"+
  "				});" +"\n"+
  "				head.appendChild(link);" +"\n"+
  "				return link;" +"\n"+
  "			}," +"\n"+
  "			// 追加Script节点" +"\n"+
  "			scriptNode: function(url, scriptId, win, charset){" +"\n"+
  "				var d = win || document.body;" +"\n"+
  "				var c = charset || \'utf-8\';" +"\n"+
  "				return d.appendChild(this.Node(\'script\', {" +"\n"+
  "					\'id\': scriptId || (\'script-\' + (YAO.Builder.nidx++))," +"\n"+
  "					\'type\': \'text/javascript\'," +"\n"+
  "					\'charset\': c," +"\n"+
  "					\'src\': url" +"\n"+
  "				}));" +"\n"+
  "			}," +"\n"+
  "			// 创建元素节点" +"\n"+
  "			Node: function(tag, attr, children){" +"\n"+
  "				tag = tag.toUpperCase();" +"\n"+
  "				// try innerHTML approach" +"\n"+
  "				var parentTag = YAO.Builder.NODEMAP[tag] || \'div\';" +"\n"+
  "				var parentElement = D.createElement(parentTag);" +"\n"+
  "				var elem = null;" +"\n"+
  "				try { // prevent IE \"feature\": http://dev.rubyonrails.org/ticket/2707" +"\n"+
  "				    if (this.EMPTY_TAG.test(tag)) {" +"\n"+
  "						//alert(tag);" +"\n"+
  "					}" +"\n"+
  "					else {" +"\n"+
  "						parentElement.innerHTML = \"<\" + tag + \"></\" + tag + \">\";" +"\n"+
  "					}" +"\n"+
  "				} " +"\n"+
  "				catch (e) {" +"\n"+
  "				}" +"\n"+
  "				elem = parentElement.firstChild;" +"\n"+
  "				" +"\n"+
  "				// see if browser added wrapping tags" +"\n"+
  "				if (elem && (elem.tagName.toUpperCase() != tag)) {" +"\n"+
  "					elem = elem.getElementsByTagName(tag)[0];" +"\n"+
  "				}" +"\n"+
  "				// fallback to createElement approach" +"\n"+
  "				if (!elem) {" +"\n"+
  "					if (YAO.isString(tag)) {" +"\n"+
  "						elem = D.createElement(tag);" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "				// abort if nothing could be created" +"\n"+
  "				if (!elem) {" +"\n"+
  "					return;" +"\n"+
  "				}" +"\n"+
  "				else {" +"\n"+
  "					if (attr) {" +"\n"+
  "						this.Attributes(elem, attr);" +"\n"+
  "					}" +"\n"+
  "					if (children) {" +"\n"+
  "						this.Child(elem, children);" +"\n"+
  "					}" +"\n"+
  "					return elem;" +"\n"+
  "				}" +"\n"+
  "			}," +"\n"+
  "			// 给节点添加属性" +"\n"+
  "			Attributes: function(elem, attr){" +"\n"+
  "				var attrName = \'\', i;" +"\n"+
  "				for (i in attr) {" +"\n"+
  "					if (attr[i] && YAO.hasOwnProperty(attr, i)) {" +"\n"+
  "						attrName = i in YAO.Builder.ATTR_MAP ? YAO.Builder.ATTR_MAP[i] : i;" +"\n"+
  "						if (attrName === \'class\') {" +"\n"+
  "							elem.className = attr[i];" +"\n"+
  "						}" +"\n"+
  "						else {" +"\n"+
  "							elem.setAttribute(attrName, attr[i]);" +"\n"+
  "						}" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "				return elem;" +"\n"+
  "			}," +"\n"+
  "			// 追加子节点" +"\n"+
  "			Child: function(parent, child){" +"\n"+
  "				if (child.tagName) {" +"\n"+
  "					parent.appendChild(child);" +"\n"+
  "					return false;" +"\n"+
  "				}" +"\n"+
  "				if (YAO.isArray(child)) {" +"\n"+
  "					var i, length = child.length;" +"\n"+
  "					for (i = 0; i < length; i += 1) {" +"\n"+
  "						if (child[i].tagName) {" +"\n"+
  "							parent.appendChild(child[i]);" +"\n"+
  "						}" +"\n"+
  "						else {" +"\n"+
  "							if (YAO.isString(child[i])) {" +"\n"+
  "								parent.appendChild(D.createTextNode(child[i]));" +"\n"+
  "							}" +"\n"+
  "						}" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "				else {" +"\n"+
  "					if (YAO.isString(child)) {" +"\n"+
  "						parent.appendChild(D.createTextNode(child));" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		" +"\n"+
  "		batch: function(el, method, o, override){" +"\n"+
  "			var id = el;" +"\n"+
  "			el = YAO.getEl(el);" +"\n"+
  "			var scope = (override) ? o : window;" +"\n"+
  "			if (!el || el.tagName || !el.length) {" +"\n"+
  "				if (!el) {" +"\n"+
  "					return false;" +"\n"+
  "				}" +"\n"+
  "				return method.call(scope, el, o);" +"\n"+
  "			}" +"\n"+
  "			var collection = [];" +"\n"+
  "			for (var i = 0, len = el.length; i < len; ++i) {" +"\n"+
  "				if (!el[i]) {" +"\n"+
  "					id = el[i];" +"\n"+
  "				}" +"\n"+
  "				collection[collection.length] = method.call(scope, el[i], o);" +"\n"+
  "			}" +"\n"+
  "			return collection;" +"\n"+
  "		}," +"\n"+
  "" +"\n"+
  "		fadeUp: function(elem){" +"\n"+
  "			if (elem) {" +"\n"+
  "				var level = 0, fade = function(){" +"\n"+
  "					var timer = null;" +"\n"+
  "					level += 0.05;" +"\n"+
  "					if (timer) {" +"\n"+
  "						clearTimeout(timer);" +"\n"+
  "						timer = null;" +"\n"+
  "					}" +"\n"+
  "					if (level > 1) {" +"\n"+
  "						YAO.setOpacity(elem, 1);" +"\n"+
  "						return false;" +"\n"+
  "					}" +"\n"+
  "					else {" +"\n"+
  "						YAO.setOpacity(elem, level);" +"\n"+
  "					}" +"\n"+
  "					timer = setTimeout(fade, 50);" +"\n"+
  "				};" +"\n"+
  "				fade();" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		zebra: function(){" +"\n"+
  "			var j, length = arguments.length;" +"\n"+
  "			for (j = 0; j < length; ++j) {" +"\n"+
  "				(function(config){" +"\n"+
  "					var root = YAO.getEl(config.rootTag) || (config.root || null), rows = root.getElementsByTagName(config.rowTag) || (config.rows || null), i, len = rows.length, lastClass = [];" +"\n"+
  "					if (root && rows && len > 1) {" +"\n"+
  "						for (var i = 0; i < len; ++i) {" +"\n"+
  "							rows[i].className = i % 2 === 0 ? \'even\' : \'odd\';" +"\n"+
  "							lastClass[i] = rows[i].className;" +"\n"+
  "							YAO.on(rows[i],\'click\', function(index){" +"\n"+
  "								return function(){" +"\n"+
  "									YAO.replaceClass(this, lastClass[index], \'hover\');" +"\n"+
  "								}" +"\n"+
  "							}(i),rows[i],true);" +"\n"+
  "							YAO.on(rows[i], \'mouseout\', function(index){" +"\n"+
  "								return function(){" +"\n"+
  "									YAO.replaceClass(this, \'hover\', lastClass[index]);" +"\n"+
  "								}" +"\n"+
  "							}(i),rows[i],true);" +"\n"+
  "						}" +"\n"+
  "					}" +"\n"+
  "					else {" +"\n"+
  "						return false;" +"\n"+
  "					}" +"\n"+
  "				})(arguments[j]);" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		moveElement: function(element, finalX, finalY, speed){" +"\n"+
  "			var elem = YAO.isString(element) ? YAO.getEl(element) : element, style = null;" +"\n"+
  "			if (elem) {" +"\n"+
  "				if (elem.movement) {" +"\n"+
  "					clearTimeout(elem.movement);" +"\n"+
  "				}" +"\n"+
  "				if (!elem.style.left) {" +"\n"+
  "					elem.style.left = \"0\";" +"\n"+
  "				}" +"\n"+
  "				if (!elem.style.top) {" +"\n"+
  "					elem.style.top = \"0\";" +"\n"+
  "				}" +"\n"+
  "				var xpos = parseInt(elem.style.left);" +"\n"+
  "				var ypos = parseInt(elem.style.top);" +"\n"+
  "				if (xpos == finalX && ypos == finalY) {" +"\n"+
  "					return true;" +"\n"+
  "				}" +"\n"+
  "				if (xpos < finalX) {" +"\n"+
  "					var dist = Math.ceil((finalX - xpos) / 10);" +"\n"+
  "					xpos = xpos + dist;" +"\n"+
  "				}" +"\n"+
  "				if (xpos > finalX) {" +"\n"+
  "					var dist = Math.ceil((xpos - finalX) / 10);" +"\n"+
  "					xpos = xpos - dist;" +"\n"+
  "				}" +"\n"+
  "				if (ypos < finalY) {" +"\n"+
  "					var dist = Math.ceil((finalY - ypos) / 10);" +"\n"+
  "					ypos = ypos + dist;" +"\n"+
  "				}" +"\n"+
  "				if (ypos > finalY) {" +"\n"+
  "					var dist = Math.ceil((ypos - finalY) / 10);" +"\n"+
  "					ypos = ypos - dist;" +"\n"+
  "				}" +"\n"+
  "				elem.style.left = xpos + \"px\";" +"\n"+
  "				elem.style.top = ypos + \"px\";" +"\n"+
  "				elem.movement = setTimeout(function(){" +"\n"+
  "					YAO.moveElement(element, finalX, finalY, speed);" +"\n"+
  "				}, speed);" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		" +"\n"+
  "		ajax: function(config){" +"\n"+
  "			var oXhr, method = config.method ? config.method.toUpperCase() : \'GET\', url = config.url || \'\', fn = config.fn || null, postData = config.data || null, elem = config.id ? YAO.getEl(config.id) : (config.element || null), load = config.loadFn ? config.loadFn : (config.loading || \'正在获取数据，请稍后...\');" +"\n"+
  "			if (!url) {" +"\n"+
  "				return;" +"\n"+
  "			}" +"\n"+
  "			if (window.XMLHttpRequest) {" +"\n"+
  "				oXhr = new XMLHttpRequest();" +"\n"+
  "			}" +"\n"+
  "			else {" +"\n"+
  "				if (window.ActiveXObject) {" +"\n"+
  "					oXhr = new ActiveXObject(\"Microsoft.XMLHTTP\");" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			if (oXhr) {" +"\n"+
  "				try {" +"\n"+
  "					oXhr.open(method, url, true);" +"\n"+
  "					oXhr.onreadystatechange = function(){" +"\n"+
  "						if (oXhr.readyState !== 4) {" +"\n"+
  "							return false" +"\n"+
  "						}" +"\n"+
  "						if (oXhr.readyState == 4) {" +"\n"+
  "							if (oXhr.status == 200 || location.href.indexOf(\'http\') === -1) {" +"\n"+
  "								if (fn) {" +"\n"+
  "									fn.success(oXhr);" +"\n"+
  "								}" +"\n"+
  "								else {" +"\n"+
  "									elem.innerHTML = oXhr.responseText;" +"\n"+
  "								}" +"\n"+
  "							}" +"\n"+
  "							else {" +"\n"+
  "								if (fn) {" +"\n"+
  "									fn.failure(oXhr.status);" +"\n"+
  "								}" +"\n"+
  "								else {" +"\n"+
  "									if (YAO.isFunction(load)) {" +"\n"+
  "										load();" +"\n"+
  "									}" +"\n"+
  "									else {" +"\n"+
  "										elem.innerHTML = load;" +"\n"+
  "									}" +"\n"+
  "								}" +"\n"+
  "							}" +"\n"+
  "						}" +"\n"+
  "					};" +"\n"+
  "					oXhr.setRequestHeader(\'X-Requested-With\', \'XMLHttpRequest\');" +"\n"+
  "					if (postData) {" +"\n"+
  "						oXhr.setRequestHeader(\'Content-Type\', \'application/x-www-form-urlencoded; charset=UTF-8\');" +"\n"+
  "					}" +"\n"+
  "					oXhr.send(postData);" +"\n"+
  "				} " +"\n"+
  "				catch (e) {" +"\n"+
  "					throw new Error(e);" +"\n"+
  "					return false;" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			else{" +"\n"+
  "				throw new Error(\"Your browser does not support XMLHTTP.\");" +"\n"+
  "				return false;" +"\n"+
  "			}" +"\n"+
  "		}," +"\n"+
  "		JSON: function(){" +"\n"+
  "			function f(n){" +"\n"+
  "				return n < 10 ? \'0\' + n : n;" +"\n"+
  "			}" +"\n"+
  "			" +"\n"+
  "			Date.prototype.toJSON = function(){" +"\n"+
  "				return this.getUTCFullYear() + \'-\' + f(this.getUTCMonth() + 1) + \'-\' + f(this.getUTCDate()) + \'T\' + f(this.getUTCHours()) + \':\' + f(this.getUTCMinutes()) + \':\' + f(this.getUTCSeconds()) + \'Z\';" +"\n"+
  "			};" +"\n"+
  "			" +"\n"+
  "			var m = {" +"\n"+
  "				\'\\b\': \'\\\\b\'," +"\n"+
  "				\'\\t\': \'\\\\t\'," +"\n"+
  "				\'\\n\': \'\\\\n\'," +"\n"+
  "				\'\\f\': \'\\\\f\'," +"\n"+
  "				\'\\r\': \'\\\\r\'," +"\n"+
  "				\'\"\': \'\\\\\"\'," +"\n"+
  "				\'\\\\\': \'\\\\\\\\\'" +"\n"+
  "			};" +"\n"+
  "			" +"\n"+
  "			function stringify(value, whitelist){" +"\n"+
  "				var a, i, k, l, r = /[\"\\\\\\x00-\\x1f\\x7f-\\x9f]/g, v;" +"\n"+
  "				switch (typeof value) {" +"\n"+
  "					case \'string\':" +"\n"+
  "						return r.test(value) ? \'\"\' +" +"\n"+
  "						value.replace(r, function(a){" +"\n"+
  "							var c = m[a];" +"\n"+
  "							if (c) {" +"\n"+
  "								return c;" +"\n"+
  "							}" +"\n"+
  "							c = a.charCodeAt();" +"\n"+
  "							return \'\\\\u00\' + Math.floor(c / 16).toString(16) + (c % 16).toString(16);" +"\n"+
  "						}) +" +"\n"+
  "						\'\"\' : \'\"\' + value + \'\"\';" +"\n"+
  "					case \'number\':" +"\n"+
  "						return isFinite(value) ? String(value) : \'null\';" +"\n"+
  "					case \'boolean\':" +"\n"+
  "					case \'null\':" +"\n"+
  "						return String(value);" +"\n"+
  "					case \'object\':" +"\n"+
  "						if (!value) {" +"\n"+
  "							return \'null\';" +"\n"+
  "						}" +"\n"+
  "						" +"\n"+
  "						if (typeof value.toJSON === \'function\') {" +"\n"+
  "							return stringify(value.toJSON());" +"\n"+
  "						}" +"\n"+
  "						a = [];" +"\n"+
  "						if (typeof value.length === \'number\' && !(value.propertyIsEnumerable(\'length\'))) {" +"\n"+
  "						" +"\n"+
  "							l = value.length;" +"\n"+
  "							for (i = 0; i < l; i += 1) {" +"\n"+
  "								a.push(stringify(value[i], whitelist) || \'null\');" +"\n"+
  "							}" +"\n"+
  "							" +"\n"+
  "							return \'[\' + a.join(\',\') + \']\';" +"\n"+
  "						}" +"\n"+
  "						if (whitelist) {" +"\n"+
  "							l = whitelist.length;" +"\n"+
  "							for (i = 0; i < l; i += 1) {" +"\n"+
  "								k = whitelist[i];" +"\n"+
  "								if (typeof k === \'string\') {" +"\n"+
  "									v = stringify(value[k], whitelist);" +"\n"+
  "									if (v) {" +"\n"+
  "										a.push(stringify(k) + \':\' + v);" +"\n"+
  "									}" +"\n"+
  "								}" +"\n"+
  "							}" +"\n"+
  "						}" +"\n"+
  "						else {" +"\n"+
  "							for (k in value) {" +"\n"+
  "								if (typeof k === \'string\') {" +"\n"+
  "									v = stringify(value[k], whitelist);" +"\n"+
  "									if (v) {" +"\n"+
  "										a.push(stringify(k) + \':\' + v);" +"\n"+
  "									}" +"\n"+
  "								}" +"\n"+
  "							}" +"\n"+
  "						}" +"\n"+
  "						return \'{\' + a.join(\',\') + \'}\';" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			" +"\n"+
  "			return {" +"\n"+
  "				stringify: stringify," +"\n"+
  "				parse: function(text, filter){" +"\n"+
  "					var j;" +"\n"+
  "					" +"\n"+
  "					function walk(k, v){" +"\n"+
  "						var i, n;" +"\n"+
  "						if (v && typeof v === \'object\') {" +"\n"+
  "							for (i in v) {" +"\n"+
  "								if (OP.hasOwnProperty.apply(v, [i])) {" +"\n"+
  "									n = walk(i, v[i]);" +"\n"+
  "									if (n !== undefined) {" +"\n"+
  "										v[i] = n;" +"\n"+
  "									}" +"\n"+
  "									else {" +"\n"+
  "										delete v[i];" +"\n"+
  "									}" +"\n"+
  "								}" +"\n"+
  "							}" +"\n"+
  "						}" +"\n"+
  "						return filter(k, v);" +"\n"+
  "					}" +"\n"+
  "					" +"\n"+
  "					if (/^[\\],:{}\\s]*$/.test(text.replace(/\\\\./g, \'@\').replace(/\"[^\"\\\\\\n\\r]*\"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g, \']\').replace(/(?:^|:|,)(?:\\s*\\[)+/g, \'\'))) {" +"\n"+
  "						j = eval(\'(\' + text + \')\');" +"\n"+
  "						" +"\n"+
  "						return typeof filter === \'function\' ? walk(\'\', j) : j;" +"\n"+
  "					}" +"\n"+
  "					" +"\n"+
  "					throw new SyntaxError(\'parseJSON\');" +"\n"+
  "				}" +"\n"+
  "			};" +"\n"+
  "		}()," +"\n"+
  "		" +"\n"+
  "		YTabs: function(){" +"\n"+
  "			var j, len = arguments.length, Tabs = [];" +"\n"+
  "			for (j = 0; j < len; ++j) {" +"\n"+
  "				Tabs[j] = new YAO.singleTab(arguments[j]);" +"\n"+
  "			}" +"\n"+
  "			return Tabs;" +"\n"+
  "		}," +"\n"+
  "		scrollNews: function(S, SI, RT, CT){" +"\n"+
  "            var SN = new YAO.scrollVertical(S, SI, RT, CT);" +"\n"+
  "            SN.speed = 4000;" +"\n"+
  "            SN.isPause = true;" +"\n"+
  "            var TM = setTimeout(function(){" +"\n"+
  "                if (TM) {" +"\n"+
  "                    clearTimeout(TM);" +"\n"+
  "                }" +"\n"+
  "                SN.isPause = false;" +"\n"+
  "            }, 2000);" +"\n"+
  "            YAO.on(SN.scrollArea, \'click\', function(){" +"\n"+
  "                SN.isPause = true;" +"\n"+
  "            });" +"\n"+
  "            YAO.on(SN.scrollArea, \'mouseout\', function(){" +"\n"+
  "                SN.isPause = false;" +"\n"+
  "            });" +"\n"+
  "        }" +"\n"+
  "	};" +"\n"+
  "	" +"\n"+
  "	YAO.on(window, \"unload\", YAO._unload);" +"\n"+
  "}();" +"\n"+
  "" +"\n"+
  "YAO.singleTab = function(oConfigs){" +"\n"+
  "	this.tabRoot = YAO.isString(oConfigs.tabRoot) ? YAO.getEl(oConfigs.tabRoot) : (oConfigs.tabRoot || null);" +"\n"+
  "	this.tabs = YAO.isString(oConfigs.tabs) ? this.tabRoot.getElementsByTagName(oConfigs.tabs) : (oConfigs.tabs || null);" +"\n"+
  "	this.contents = YAO.isString(oConfigs.contents) ? this.tabRoot.getElementsByTagName(oConfigs.contents) : (oConfigs.contents || null);" +"\n"+
  "	" +"\n"+
  "	if(!this.tabs || !this.contents){" +"\n"+
  "		return false;" +"\n"+
  "	}" +"\n"+
  "	" +"\n"+
  "	this.length = this.tabs.length || 0;" +"\n"+
  "	this.defaultIndex = oConfigs.defaultIndex || 0;" +"\n"+
  "	this.lastIndex = this.defaultIndex;" +"\n"+
  "	this.lastTab = this.tabs[this.lastIndex] || null;" +"\n"+
  "	this.lastContent = this.contents[this.lastIndex] || null;" +"\n"+
  "	this.evtName = oConfigs.evt || \'click\';" +"\n"+
  "	this.defaultClass = oConfigs.defaultClass || this.CURRENT_TAB_CLASS;" +"\n"+
  "	this.previousClass = oConfigs.previousClass || \'\';" +"\n"+
  "	this.hideAll = oConfigs.hideAll || false;" +"\n"+
  "	this.auto = oConfigs.auto || false;" +"\n"+
  "	this.autoSpeed = oConfigs.autoSpeed || 6000;" +"\n"+
  "	this.fadeUp = oConfigs.fadeUp || false;" +"\n"+
  "	this.scroll = oConfigs.scroll || false;" +"\n"+
  "	this.scrollId = oConfigs.scrollId || null;" +"\n"+
  "	this.scrollSpeed = oConfigs.scrollSpeed || 5;" +"\n"+
  "    this.direction = oConfigs.direction || \'V\';" +"\n"+
  "	this.activeTag = oConfigs.activeTag || \'IMG\';" +"\n"+
  "	this.stepHeight = oConfigs.stepHeight || 0;" +"\n"+
  "	this.stepWidth = oConfigs.stepWidth || 0;" +"\n"+
  "	this.ajax = oConfigs.ajax || false;" +"\n"+
  "	this.ajaxDefaultInfo = this.contents.innerHTML;" +"\n"+
  "	this.aPath = oConfigs.aPath || \'\';" +"\n"+
  "	" +"\n"+
  "	this.init();" +"\n"+
  "};" +"\n"+
  "YAO.singleTab.prototype.timer = null;" +"\n"+
  "YAO.singleTab.prototype.isPause = false;" +"\n"+
  "YAO.singleTab.prototype.CURRENT_TAB_CLASS = \'current\';" +"\n"+
  "YAO.singleTab.prototype.init = function(){" +"\n"+
  "	var i, that = this;" +"\n"+
  "	if (this.tabs && this.contents) {" +"\n"+
  "		if (this.auto) {" +"\n"+
  "			this.timer = setTimeout(function(){" +"\n"+
  "				that.autoChange();" +"\n"+
  "			}, that.autoSpeed);" +"\n"+
  "		}" +"\n"+
  "		if (!this.hideAll) {" +"\n"+
  "			YAO.addClass(this.lastTab, this.defaultClass);" +"\n"+
  "			if (!this.ajax && !this.scroll) {" +"\n"+
  "				if (this.lastContent) {" +"\n"+
  "					this.lastContent.style.display = \'block\';" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			if (this.ajax) {" +"\n"+
  "				this.ajaxTab(this.lastTab);" +"\n"+
  "			}" +"\n"+
  "			if (this.scroll) {" +"\n"+
  "				this.scrollCnt((this.lastContent || this.contents), this.defaultIndex);" +"\n"+
  "			}" +"\n"+
  "		}" +"\n"+
  "		else {" +"\n"+
  "			YAO.removeClass(this.lastTab, this.defaultClass);" +"\n"+
  "		}" +"\n"+
  "		for (i = 0; i < this.length; ++i) {" +"\n"+
  "			if (i !== this.defaultIndex) {" +"\n"+
  "				YAO.removeClass(this.tabs[i], this.CURRENT_TAB_CLASS);" +"\n"+
  "				if (!this.ajax && !this.scroll) {" +"\n"+
  "					this.contents[i].style.display = \'none\';" +"\n"+
  "				}" +"\n"+
  "			}" +"\n"+
  "			YAO.on(this.tabs[i], this.evtName, function(index){" +"\n"+
  "				return function(event){" +"\n"+
  "					var evt = null, curClass = (this.tabs[index] === this.tabs[this.defaultIndex]) ? this.defaultClass : this.CURRENT_TAB_CLASS;" +"\n"+
  "					if (!YAO.hasClass(this.tabs[index], curClass)) {" +"\n"+
  "						var currentContent = (this.ajax || (this.scroll && (this.stepHeight || this.stepWidth))) ? this.contents : (this.contents[index] || null);" +"\n"+
  "						" +"\n"+
  "						this.setCurrent(currentContent, index);" +"\n"+
  "						this.lastIndex = index;" +"\n"+
  "					}" +"\n"+
  "					if (this.auto) {" +"\n"+
  "						this.isPause = true;" +"\n"+
  "					}" +"\n"+
  "					evt = event || window.event;" +"\n"+
  "					YAO.stopEvent(evt);" +"\n"+
  "				}" +"\n"+
  "			}(i), this.tabs[i], that);" +"\n"+
  "			YAO.on(this.tabs[i], \'mouseout\', function(index){" +"\n"+
  "				return function(){" +"\n"+
  "					var curTab = this.tabs[index];" +"\n"+
  "					if (this.hideAll && this.evtName === \'click\') {" +"\n"+
  "						if (this.lastTab === curTab) {" +"\n"+
  "							YAO.removeClass(curTab, (YAO.hasClass(curTab, that.defaultClass) ? this.defaultClass : this.CURRENT_TAB_CLASS));" +"\n"+
  "						}" +"\n"+
  "						if (this.previousClassTab) {" +"\n"+
  "							YAO.removeClass(this.previousClassTab, this.previousClass);" +"\n"+
  "						}" +"\n"+
  "						if (!this.scroll && !this.ajax) {" +"\n"+
  "							this.contents[index].style.display = \'none\';" +"\n"+
  "						}" +"\n"+
  "					}" +"\n"+
  "					else {" +"\n"+
  "						if (this.auto) {" +"\n"+
  "							this.isPause = false;" +"\n"+
  "						}" +"\n"+
  "					}" +"\n"+
  "				}" +"\n"+
  "			}(i), this.tabs[i], that);" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "YAO.singleTab.prototype.autoChange = function(){" +"\n"+
  "	var that = this;" +"\n"+
  "	if (!this.isPause) {" +"\n"+
  "		var currentContent = null, currentTab = null;" +"\n"+
  "		if (this.timer) {" +"\n"+
  "			clearTimeout(this.timer);" +"\n"+
  "			this.timer = null;" +"\n"+
  "		}" +"\n"+
  "		this.lastIndex = this.lastIndex + 1;" +"\n"+
  "		if (this.lastIndex === this.length) {" +"\n"+
  "			this.lastIndex = 0;" +"\n"+
  "		}" +"\n"+
  "		currentContent = this.ajax ? this.contents : (this.contents[this.lastIndex] || null);" +"\n"+
  "		this.setCurrent(currentContent, this.lastIndex);" +"\n"+
  "		this.timer = setTimeout(function(){" +"\n"+
  "			that.autoChange();" +"\n"+
  "		}, this.autoSpeed);" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		this.timer = setTimeout(function(){" +"\n"+
  "			that.autoChange()" +"\n"+
  "		}, this.autoSpeed);" +"\n"+
  "		return false;" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "YAO.singleTab.prototype.setCurrent = function(curCnt, index){" +"\n"+
  "	var activeObj = null;" +"\n"+
  "	curTab = this.tabs[index];" +"\n"+
  "	YAO.removeClass(this.lastTab, (YAO.hasClass(this.lastTab, this.defaultClass) ? this.defaultClass : this.CURRENT_TAB_CLASS));" +"\n"+
  "	if (curTab === this.tabs[this.defaultIndex]) {" +"\n"+
  "		YAO.addClass(curTab, this.defaultClass);" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		YAO.addClass(curTab, this.CURRENT_TAB_CLASS);" +"\n"+
  "	}" +"\n"+
  "	if (this.previousClass) {" +"\n"+
  "		if (this.previousClassTab) {" +"\n"+
  "			YAO.removeClass(this.previousClassTab, this.previousClass);" +"\n"+
  "		}" +"\n"+
  "		if (index !== 0) {" +"\n"+
  "			YAO.addClass(this.tabs[index - 1], this.previousClass);" +"\n"+
  "			if ((index - 1) === this.defaultIndex) {" +"\n"+
  "				YAO.removeClass(this.tabs[index - 1], this.defaultClass);" +"\n"+
  "			}" +"\n"+
  "			this.previousClassTab = (this.tabs[index - 1]);" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	if (!this.scroll && !this.ajax) {" +"\n"+
  "		if (this.lastContent) {" +"\n"+
  "			this.lastContent.style.display = \"none\";" +"\n"+
  "		}" +"\n"+
  "		if (curCnt) {" +"\n"+
  "			curCnt.style.display = \"block\";" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	" +"\n"+
  "	if (this.fadeUp) {" +"\n"+
  "		activeObj = (curCnt.tagName.toUpperCase() === \'IMG\') ? curCnt : curCnt.getElementsByTagName(\'img\')[0];" +"\n"+
  "		if (this.lastContent !== curCnt) {" +"\n"+
  "			YAO.fadeUp(activeObj);" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		if (this.scroll) {" +"\n"+
  "			this.scrollCnt(curCnt, index);" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	if (!this.ajax) {" +"\n"+
  "		this.lastContent = curCnt;" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		if (this.ajax) {" +"\n"+
  "			this.ajaxTab(curTab);" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	this.lastTab = curTab;" +"\n"+
  "};" +"\n"+
  "YAO.singleTab.prototype.scrollCnt = function(curCnt, index){" +"\n"+
  "	var activeObj = null, itemHeight = 0, itemWidth = 0, scrollWidth = 0, scrollHeight = 0;" +"\n"+
  "	if (this.activeTag) {" +"\n"+
  "		activeObj = (curCnt.tagName.toUpperCase() === this.activeTag) ? curCnt : curCnt.getElementsByTagName(this.activeTag)[0];" +"\n"+
  "	}" +"\n"+
  "	if (this.direction === \'V\') {" +"\n"+
  "		itemHeight = activeObj ? activeObj.offsetHeight : this.stepHeight;" +"\n"+
  "		scrollHeight = -(index * itemHeight);" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		itemWidth = activeObj ? activeObj.offsetWidth : this.stepWidth;" +"\n"+
  "		scrollWidth = -(index * itemWidth);" +"\n"+
  "	}" +"\n"+
  "	YAO.moveElement(this.scrollId, scrollWidth, scrollHeight, this.scrollSpeed);" +"\n"+
  "};" +"\n"+
  "YAO.singleTab.prototype.ajaxTab = function(curTab){" +"\n"+
  "	var url = \'\', ajaxLink = null, cnt = this.contents, uriData = this.aPath.split(\'/\');" +"\n"+
  "	ajaxLink = (curTab.tagName.toUpperCase() === \'A\') ? curTab : curTab.getElementsByTagName(\'a\')[0];" +"\n"+
  "	url = uriData[0] + \'/\' + ajaxLink.rel + uriData[1] + uriData[2] + ajaxLink.rel;" +"\n"+
  "	" +"\n"+
  "	if (curTab === this.tabs[this.defaultIndex]) {" +"\n"+
  "		cnt.innerHTML = this.ajaxDefaultInfo;" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		YAO.ajax({" +"\n"+
  "			url: url," +"\n"+
  "			element: cnt," +"\n"+
  "			load: cnt.innerHTML" +"\n"+
  "		});" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "" +"\n"+
  "YAO.scrollVertical = function(disp, msg, tg, stg){" +"\n"+
  "	var D = document;" +"\n"+
  "	if (YAO.isString(disp)) {" +"\n"+
  "		this.scrollArea = D.getElementById(disp);" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		this.scrollArea == disp;" +"\n"+
  "	}" +"\n"+
  "	if (YAO.isString(msg)) {" +"\n"+
  "		this.scrollMsg = D.getElementById(msg);" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		this.scrollMsg = msg;" +"\n"+
  "	}" +"\n"+
  "	var s_msg = this.scrollMsg;" +"\n"+
  "	var s_area = this.scrollArea;" +"\n"+
  "	if (!tg) {" +"\n"+
  "		var tg = \'li\';" +"\n"+
  "	}" +"\n"+
  "	this.unitHeight = s_msg.getElementsByTagName(tg)[0].offsetHeight;" +"\n"+
  "	this.msgHeight = this.unitHeight * s_msg.getElementsByTagName(tg).length;" +"\n"+
  "	s_msg.style.position = \"absolute\";" +"\n"+
  "	s_msg.style.top = \"0\";" +"\n"+
  "	s_msg.style.left = \"0\";" +"\n"+
  "	var copydiv = D.createElement(stg || \'div\');" +"\n"+
  "	copydiv.id = s_area.id + \"_copymsgid\";" +"\n"+
  "	copydiv.innerHTML = s_msg.innerHTML;" +"\n"+
  "	copydiv.style.height = this.msgHeight + \"px\";" +"\n"+
  "	s_area.appendChild(copydiv);" +"\n"+
  "	copydiv.style.position = \"absolute\";" +"\n"+
  "	copydiv.style.left = \"0\";" +"\n"+
  "	copydiv.style.top = this.msgHeight + \"px\";" +"\n"+
  "	this.copyMsg = copydiv;" +"\n"+
  "	this.play(this);" +"\n"+
  "};" +"\n"+
  "YAO.scrollVertical.prototype.scrollArea = null;" +"\n"+
  "YAO.scrollVertical.prototype.scrollMsg = null;" +"\n"+
  "YAO.scrollVertical.prototype.unitHeight = 0;" +"\n"+
  "YAO.scrollVertical.prototype.msgHeight = 0;" +"\n"+
  "YAO.scrollVertical.prototype.copyMsg = null;" +"\n"+
  "YAO.scrollVertical.prototype.scrollValue = 0;" +"\n"+
  "YAO.scrollVertical.prototype.scrollHeight = 0;" +"\n"+
  "YAO.scrollVertical.prototype.isStop = true;" +"\n"+
  "YAO.scrollVertical.prototype.isPause = false;" +"\n"+
  "YAO.scrollVertical.prototype.scrollTimer = null;" +"\n"+
  "YAO.scrollVertical.prototype.speed = 2000;" +"\n"+
  "YAO.scrollVertical.prototype.play = function(o){" +"\n"+
  "	var s_msg = o.scrollMsg, c_msg = o.copyMsg, s_area = o.scrollArea, msg_h = o.msgHeight, isMoz = function(){" +"\n"+
  "		if (navigator.userAgent.toLowerCase().match(/mozilla/)) {" +"\n"+
  "			return 1;" +"\n"+
  "		}" +"\n"+
  "	}, anim = function(){" +"\n"+
  "		if (o.scrollTimer) {" +"\n"+
  "			clearTimeout(o.scrollTimer);" +"\n"+
  "		}" +"\n"+
  "		if (o.isPause) {" +"\n"+
  "			o.scrollTimer = setTimeout(anim, 50);" +"\n"+
  "			return;" +"\n"+
  "		}" +"\n"+
  "		if (msg_h - o.scrollValue <= 0) {" +"\n"+
  "			o.scrollValue = 0;" +"\n"+
  "		}" +"\n"+
  "		else {" +"\n"+
  "			o.scrollValue += 1;" +"\n"+
  "			o.scrollHeight += 1;" +"\n"+
  "		}" +"\n"+
  "		if (isMoz) {" +"\n"+
  "			s_area.scrollTop = o.scrollValue;" +"\n"+
  "		}" +"\n"+
  "		else {" +"\n"+
  "			s_msg.style.top = -1 * o.scrollValue + \"px\";" +"\n"+
  "			c_msg.style.top = (msg_h - o.scrollValue) + \"px\";" +"\n"+
  "		}" +"\n"+
  "		if (o.scrollHeight % s_area.offsetHeight == 0) {" +"\n"+
  "			o.scrollTimer = setTimeout(anim, o.speed);" +"\n"+
  "		}" +"\n"+
  "		else {" +"\n"+
  "			o.scrollTimer = setTimeout(anim, 50);" +"\n"+
  "		}" +"\n"+
  "	};" +"\n"+
  "	anim();" +"\n"+
  "};" +"\n"+
  "" +"\n"+
  "YAO.chkAll = function(config){" +"\n"+
  "	this.chkAllItem = YAO.isString(config.chkAllItem) ? YAO.getEl(config.chkAllItem) : (config.chkAllItem || null);" +"\n"+
  "	this.list = YAO.isString(config.list) ? YAO.getEl(config.list) : (config.list || null);" +"\n"+
  "	this.items = YAO.isString(config.items) ? this.list.getElementsByTagName(config.items) : (config.items || null);" +"\n"+
  "	" +"\n"+
  "	if(!this.chkAllItem || !this.list || !this.items){" +"\n"+
  "		return false;" +"\n"+
  "	}" +"\n"+
  "	" +"\n"+
  "	this.length = this.items.length;" +"\n"+
  "	this.itemsNumPerPage = config.itemsNumPerPage || this.length;" +"\n"+
  "    this.pages = Math.ceil(this.length/this.itemsNumPerPage); " +"\n"+
  "	this.curPage = (this.itemsNumPerPage !== this.length && config.curPage) ? config.curPage : 0;" +"\n"+
  "	" +"\n"+
  "	this.init();" +"\n"+
  "};" +"\n"+
  "YAO.chkAll.prototype.chkNum = 0;" +"\n"+
  "YAO.chkAll.prototype.CHKED_ROW_CLASS = \'chked\';" +"\n"+
  "YAO.chkAll.prototype.init = function(){" +"\n"+
  "	if (this.chkAllItem && this.items) {" +"\n"+
  "		var i, oSelf = this;" +"\n"+
  "		for (i = 0; i < this.length; ++i) {" +"\n"+
  "			YAO.on(this.items[i], \'mouseout\', function(){" +"\n"+
  "				oSelf.chgItemBg.call(oSelf,this);" +"\n"+
  "			},this.items[i],true);" +"\n"+
  "		}" +"\n"+
  "		YAO.on(this.chkAllItem, \'mouseout\', function(){" +"\n"+
  "			oSelf.all.call(oSelf);" +"\n"+
  "		},this.chkAllItem,true);" +"\n"+
  "	}" +"\n"+
  "};	" +"\n"+
  "YAO.chkAll.prototype.all = function(){" +"\n"+
  "	var i, startNum = this.curPage * this.itemsNumPerPage, len = (this.length < startNum + this.itemsNumPerPage) ? this.length : (startNum + this.itemsNumPerPage);" +"\n"+
  "	for (i = startNum; i < len; ++i) {" +"\n"+
  "		this.items[i].checked = this.chkAllItem.checked;" +"\n"+
  "		this.chgItemBg(this.items[i]);" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "YAO.chkAll.prototype.chgItemBg = function(item){" +"\n"+
  "	var i, row = item.parentNode, curAllItemLength = (this.length < ((this.curPage+1) * this.itemsNumPerPage)) ? (this.length - (this.curPage * this.itemsNumPerPage)) : this.itemsNumPerPage;" +"\n"+
  "	" +"\n"+
  "	if (item.checked) {" +"\n"+
  "		YAO.addClass(row, this.CHKED_ROW_CLASS);" +"\n"+
  "		this.chkNum += 1;" +"\n"+
  "		if (this.chkNum >=  curAllItemLength) {" +"\n"+
  "			this.chkNum =  curAllItemLength;" +"\n"+
  "			this.chkAllItem.checked = true;" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		YAO.removeClass(row, this.CHKED_ROW_CLASS);" +"\n"+
  "		if(this.chkAllItem.checked){" +"\n"+
  "			this.chkAllItem.checked = false;" +"\n"+
  "		}" +"\n"+
  "		this.chkNum -= 1;" +"\n"+
  "		if (this.chkNum < 0) {" +"\n"+
  "			this.chkNum = 0;" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "" +"\n"+
  "YAO.Carousel = function(oConfig){" +"\n"+
  "	this.btnPrevious = YAO.isString(oConfig.btnPrevious) ? YAO.getEl(oConfig.btnPrevious) : (oConfig.btnPrevious || null);" +"\n"+
  "	this.lnkBtnPrevious = this.btnPrevious.getElementsByTagName(\'a\')[0] || null;" +"\n"+
  "	this.Container = YAO.isString(oConfig.Container) ? YAO.getEl(oConfig.Container) : (oConfig.Container || null);" +"\n"+
  "	this.Scroller = YAO.isString(oConfig.Scroller) ? YAO.getEl(oConfig.Scroller) : (oConfig.Scroller || null);" +"\n"+
  "	this.btnNext = YAO.isString(oConfig.btnNext) ? YAO.getEl(oConfig.btnNext) : (oConfig.btnNext || null);" +"\n"+
  "	this.lnkBtnNext = this.btnNext.getElementsByTagName(\'a\')[0] || null;" +"\n"+
  "	this.items = YAO.isString(oConfig.items) ? this.Container.getElementsByTagName(oConfig.items) : (oConfig.items || null);" +"\n"+
  "	" +"\n"+
  "	if(!this.btnPrevious || !this.lnkBtnPrevious || !this.Container || !this.Scroller || !this.btnNext || !this.lnkBtnNext || !this.items){" +"\n"+
  "		return false;" +"\n"+
  "	}" +"\n"+
  "	" +"\n"+
  "	this.length = this.items.length;" +"\n"+
  "	this.itemWidth = this.items[0].offsetWidth;" +"\n"+
  "	this.itemHeight = this.items[0].offsetHeight;" +"\n"+
  "	this.scrollerWidth = this.itemWidth * this.length;" +"\n"+
  "	this.scrollHeight = this.itemHeight * this.length;" +"\n"+
  "	this.derection = oConfig.derection || \'H\';" +"\n"+
  "	this.stepHeight = oConfig.stepHeight || this.itemHeight;" +"\n"+
  "	this.stepWidth = oConfig.stepWidth || this.itemWidth;" +"\n"+
  "	this.groups = this.derection === \'H\' ? Math.ceil(this.scrollerWidth / this.stepWidth) : Math.ceil(this.scrollHeight / this.stepHeight);" +"\n"+
  "	this.maxMovedNum = this.derection === \'H\' ? (this.groups - (this.Container.offsetWidth / this.stepWidth)) : (this.groups - (this.Container.offsetHeight / this.stepHeight));" +"\n"+
  "	this.scrollSpeed = oConfig.speed || 50;" +"\n"+
  "	" +"\n"+
  "	this.init();" +"\n"+
  "};" +"\n"+
  "YAO.Carousel.prototype.movedNum = 0;" +"\n"+
  "YAO.Carousel.prototype.LNK_BTNS_DISABLED_CLASS = \'dis\'; " +"\n"+
  "YAO.Carousel.prototype.init = function(){" +"\n"+
  "	var oSelf = this;" +"\n"+
  "	if (this.derection === \'H\') {" +"\n"+
  "		this.Scroller.style.width = this.scrollerWidth + \'px\';" +"\n"+
  "" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		this.Scroller.style.height = this.scrollerHeight + \'px\';" +"\n"+
  "	}" +"\n"+
  "	this.Container.style.overflow = \'hidden\';" +"\n"+
  "	if (this.lnkBtnNext && this.movedNum === this.maxMovedNum) {" +"\n"+
  "		YAO.addClass(this.lnkBtnNext, this.LNK_BTNS_DISABLED_CLASS);" +"\n"+
  "	}" +"\n"+
  "	if (this.lnkBtnPrevious && this.movedNum === 0) {" +"\n"+
  "		YAO.addClass(this.lnkBtnPrevious, this.LNK_BTNS_DISABLED_CLASS);" +"\n"+
  "	}" +"\n"+
  "	YAO.on(this.btnPrevious, \'mouseout\', this.scrollPrevious, this.btnPrevious, oSelf);" +"\n"+
  "	YAO.on(this.btnNext, \'mouseout\', this.scrollNext, this.btnNext, oSelf);" +"\n"+
  "};" +"\n"+
  "YAO.Carousel.prototype.scrollPrevious = function(event){" +"\n"+
  "	var evt = event || window.event;" +"\n"+
  "	if (this.movedNum > 0) {" +"\n"+
  "		this.movedNum -= 1;" +"\n"+
  "		if (this.lnkBtnNext && YAO.hasClass(this.lnkBtnNext, this.LNK_BTNS_DISABLED_CLASS)) {" +"\n"+
  "			YAO.removeClass(this.lnkBtnNext, this.LNK_BTNS_DISABLED_CLASS);" +"\n"+
  "		}" +"\n"+
  "		if (this.movedNum <= 0) {" +"\n"+
  "			this.movedNum = 0;" +"\n"+
  "			if (this.lnkBtnPrevious) {" +"\n"+
  "				YAO.addClass(this.lnkBtnPrevious, this.LNK_BTNS_DISABLED_CLASS);" +"\n"+
  "			}" +"\n"+
  "		}" +"\n"+
  "		this.scroll(this.movedNum);" +"\n"+
  "	}" +"\n"+
  "	YAO.stopEvent(evt);" +"\n"+
  "};" +"\n"+
  "YAO.Carousel.prototype.scrollNext = function(event){" +"\n"+
  "	var evt = event || window.event;" +"\n"+
  "	if (this.movedNum < this.maxMovedNum) {" +"\n"+
  "		this.movedNum += 1;" +"\n"+
  "		if (this.lnkBtnPrevious && YAO.hasClass(this.lnkBtnPrevious, this.LNK_BTNS_DISABLED_CLASS)) {" +"\n"+
  "			YAO.removeClass(this.lnkBtnPrevious, this.LNK_BTNS_DISABLED_CLASS);" +"\n"+
  "		}" +"\n"+
  "		if (this.movedNum >= this.maxMovedNum) {" +"\n"+
  "			this.movedNum = this.maxMovedNum;" +"\n"+
  "			if (this.lnkBtnNext) {" +"\n"+
  "				YAO.addClass(this.lnkBtnNext, this.LNK_BTNS_DISABLED_CLASS);" +"\n"+
  "			}" +"\n"+
  "		}" +"\n"+
  "		this.scroll(this.movedNum);" +"\n"+
  "	}" +"\n"+
  "	YAO.stopEvent(evt);" +"\n"+
  "}; " +"\n"+
  "YAO.Carousel.prototype.scroll = function(steps){" +"\n"+
  "	var scrollWidth = 0, scrollHeight = 0;" +"\n"+
  "	if (this.derection === \'H\') {" +"\n"+
  "		if (this.stepWidth) {" +"\n"+
  "			scrollWidth = -(this.stepWidth * steps);" +"\n"+
  "		}" +"\n"+
  "		else {" +"\n"+
  "			scrollWidth = -(this.itemWidth * steps);" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		if (this.stepHeight) {" +"\n"+
  "			scrollHeight = -(this.stepHeight * steps);" +"\n"+
  "		}" +"\n"+
  "		else {" +"\n"+
  "			scrollHeight = -(this.itemHeight * steps);" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	YAO.moveElement(this.Scroller, scrollWidth, scrollHeight, this.scrollSpeed);" +"\n"+
  "};" +"\n"+
  "" +"\n"+
  "YAO.YAlbum = function(){" +"\n"+
  "	var oSelf = this;" +"\n"+
  "	this.oCarousel = new YAO.Carousel({" +"\n"+
  "		btnPrevious: oSelf.CARSOUEL_BTN_PREVIOUS," +"\n"+
  "		Container: oSelf.CARSOUEL_CONTAINER," +"\n"+
  "		Scroller: oSelf.CARSOUEL_SCROLLER," +"\n"+
  "		btnNext: oSelf.CARSOUEL_BTN_NEXT," +"\n"+
  "		items: oSelf.CARSOUEL_ITEM_TAG," +"\n"+
  "		stepWidth: oSelf.CARSOUEL_STEP_WIDTH" +"\n"+
  "	}) || null;" +"\n"+
  "	this.oSamples = this.oCarousel.Scroller.getElementsByTagName(\'a\') || null;" +"\n"+
  "	this.length = this.oSamples.length || 0;" +"\n"+
  "	this.lastSample = this.oSamples[0] || null;" +"\n"+
  "	this.photoContainer = YAO.getEl(this.PHOTO_CONTAINER_ID) || null;" +"\n"+
  "	this.photo = YAO.getEl(this.PHOTO_ID) || null;" +"\n"+
  "	this.photoIntro = YAO.getEl(this.PHOTO_INTRO_ID) || null;" +"\n"+
  "	this.sIntro = this.photo.alt || \'\';" +"\n"+
  "	" +"\n"+
  "	this.init();" +"\n"+
  "};" +"\n"+
  "" +"\n"+
  "YAO.YAlbum.prototype.lastIndex = 0;" +"\n"+
  "YAO.YAlbum.prototype.isLoading = false;" +"\n"+
  "YAO.YAlbum.prototype.lastPhotoHeight = 0;" +"\n"+
  "YAO.YAlbum.prototype.loadShardow = null;" +"\n"+
  "YAO.YAlbum.prototype.loadImg = null;" +"\n"+
  "" +"\n"+
  "YAO.YAlbum.prototype.CARSOUEL_BTN_PREVIOUS = YAO.getEl(\'carousel_btn_lastgroup\');" +"\n"+
  "YAO.YAlbum.prototype.CARSOUEL_CONTAINER = YAO.getEl(\'carousel_container\');" +"\n"+
  "YAO.YAlbum.prototype.CARSOUEL_SCROLLER = YAO.getEl(\'samples_list\');" +"\n"+
  "YAO.YAlbum.prototype.CARSOUEL_BTN_NEXT = YAO.getEl(\'carousel_btn_nextgroup\');" +"\n"+
  "YAO.YAlbum.prototype.CARSOUEL_ITEM_TAG = \'li\';" +"\n"+
  "YAO.YAlbum.prototype.CARSOUEL_STEP_WIDTH = 672;" +"\n"+
  "YAO.YAlbum.prototype.PHOTO_MAX_WIDTH = 800;" +"\n"+
  "YAO.YAlbum.prototype.PHOTO_CONTAINER_ID = \'carousel_photo_container\';" +"\n"+
  "YAO.YAlbum.prototype.PHOTO_ID = \'carousel_photo\';" +"\n"+
  "YAO.YAlbum.prototype.PHOTO_INTRO_ID = \'carousel_photo_intro\';" +"\n"+
  "YAO.YAlbum.prototype.BTN_NEXT_ID = \'carousel_next_photo\';" +"\n"+
  "YAO.YAlbum.prototype.BTN_NEXT_CLASS = \'next\';" +"\n"+
  "YAO.YAlbum.prototype.BTN_PREVIOUS_ID = \'carousel_previous_photo\';" +"\n"+
  "YAO.YAlbum.prototype.BTN_PREVIOUS_CLASS = \'previous\';" +"\n"+
  "YAO.YAlbum.prototype.BTN_DISABLED_CLASS = \'dis\';" +"\n"+
  "YAO.YAlbum.prototype.IMG_BTN_PREVIOUS = \'url(img/last-photo.gif)\';" +"\n"+
  "YAO.YAlbum.prototype.IMG_BTN_NEXT = \'url(img/next-photo.gif)\';" +"\n"+
  "YAO.YAlbum.prototype.SHARDOW_ID = \'carousel_photo_shardow\';" +"\n"+
  "YAO.YAlbum.prototype.LOAD_IMG_PATH = \'img/loading.gif\';" +"\n"+
  "YAO.YAlbum.prototype.LOAD_IMG_ID = \'carousel_photo_loading\';" +"\n"+
  "" +"\n"+
  "YAO.YAlbum.prototype.init = function(){" +"\n"+
  "	var oSelf = this, i;" +"\n"+
  "	" +"\n"+
  "	YAO.addClass(this.lastSample, \'current\');" +"\n"+
  "	this.btnPrevious = YAO.Builder.Node(\'a\', {" +"\n"+
  "		href: oSelf.oSamples[oSelf.lastIndex].href," +"\n"+
  "		id: oSelf.BTN_PREVIOUS_ID," +"\n"+
  "		className: oSelf.BTN_PREVIOUS_CLASS," +"\n"+
  "		title: \'上一张\'" +"\n"+
  "	}, \'上一张\');" +"\n"+
  "	this.photoContainer.appendChild(this.btnPrevious);" +"\n"+
  "	this.btnNext = YAO.Builder.Node(\'a\', {" +"\n"+
  "		href: oSelf.oSamples[oSelf.lastIndex + 1].href," +"\n"+
  "		id: oSelf.BTN_NEXT_ID," +"\n"+
  "		className: oSelf.BTN_NEXT_CLASS," +"\n"+
  "		title: \'下一张\'" +"\n"+
  "	}, \'下一张\');" +"\n"+
  "	this.photoContainer.appendChild(this.btnNext);" +"\n"+
  "	this.load(this.photo.src);" +"\n"+
  "	" +"\n"+
  "	YAO.on(this.btnPrevious, \'mouseout\', function(event){" +"\n"+
  "		var evt = event || window.event;" +"\n"+
  "		this.Previous();" +"\n"+
  "		YAO.stopEvent(evt);" +"\n"+
  "	}, this.btnPrevious, oSelf);" +"\n"+
  "	YAO.on(this.btnNext, \'mouseout\', function(event){" +"\n"+
  "		var evt = event || window.event;" +"\n"+
  "		this.Next();" +"\n"+
  "		YAO.stopEvent(evt);" +"\n"+
  "	}, this.btnNext, oSelf);" +"\n"+
  "	" +"\n"+
  "	for (i = 0; i < this.length; ++i) {" +"\n"+
  "		YAO.on(this.oSamples[i], \'mouseout\', function(index){" +"\n"+
  "			return function(event){" +"\n"+
  "				var evt = event || window.event, curSample = this.oSamples[index];" +"\n"+
  "				if (this.lastSample !== curSample && !this.isLoading) {" +"\n"+
  "					this.lastIndex = index;" +"\n"+
  "					this.btnsEnabled();" +"\n"+
  "					this.chgPhoto();" +"\n"+
  "				}" +"\n"+
  "				YAO.stopEvent(evt);" +"\n"+
  "			}" +"\n"+
  "		}(i), this.oSamples[i], oSelf);" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "YAO.YAlbum.prototype.btnsEnabled = function(){" +"\n"+
  "	if (this.lastIndex !== 0 && YAO.hasClass(this.btnPrevious, this.BTN_DISABLED_CLASS)) {" +"\n"+
  "		YAO.removeClass(this.btnPrevious, this.BTN_DISABLED_CLASS);" +"\n"+
  "		if (YAO.ua.ie) {" +"\n"+
  "			this.btnPrevious.style.backgroundImage = this.IMG_BTN_PREVIOUS;" +"\n"+
  "		}" +"\n"+
  "		this.btnPrevious.href = this.oSamples[this.lastIndex - 1];" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		if (this.lastIndex === 0) {" +"\n"+
  "			YAO.addClass(this.btnPrevious, this.BTN_DISABLED_CLASS);" +"\n"+
  "			if (YAO.ua.ie) {" +"\n"+
  "				this.btnPrevious.style.backgroundImage = \'none\';" +"\n"+
  "			}" +"\n"+
  "			this.btnPrevious.href = this.oSamples[this.lastIndex];" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	if (this.lastIndex !== (this.length - 1) && YAO.hasClass(this.btnNext, this.BTN_DISABLED_CLASS)) {" +"\n"+
  "		YAO.removeClass(this.btnNext, this.BTN_DISABLED_CLASS);" +"\n"+
  "		if (YAO.ua.ie) {" +"\n"+
  "			this.btnNext.style.backgroundImage = this.IMG_BTN_NEXT;" +"\n"+
  "		}" +"\n"+
  "		this.btnNext.href = this.oSamples[this.lastIndex + 1];" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		if (this.lastIndex === (this.length - 1)) {" +"\n"+
  "			YAO.addClass(this.btnNext, this.BTN_DISABLED_CLASS);" +"\n"+
  "			if (YAO.ua.ie) {" +"\n"+
  "				this.btnNext.style.backgroundImage = \'none\';" +"\n"+
  "			}" +"\n"+
  "			this.btnNext.href = this.oSamples[this.lastIndex];" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "};					" +"\n"+
  "YAO.YAlbum.prototype.load = function(path){" +"\n"+
  "	var oImage = new Image(), oDf = document.createDocumentFragment();" +"\n"+
  "	oImage.src = path;" +"\n"+
  "	" +"\n"+
  "	if (oImage.complete) {" +"\n"+
  "		this.resize(oImage);" +"\n"+
  "	}" +"\n"+
  "	else {" +"\n"+
  "		this.isLoading = true;" +"\n"+
  "		this.loadShardow = YAO.Builder.Node(\'div\', {" +"\n"+
  "			id: this.SHARDOW_ID" +"\n"+
  "		});" +"\n"+
  "		this.loadImg = YAO.Builder.Node(\'img\', {" +"\n"+
  "			src: this.LOAD_IMG_PATH," +"\n"+
  "			id: this.LOAD_IMG_ID" +"\n"+
  "		});" +"\n"+
  "		oDf.appendChild(this.loadShardow);" +"\n"+
  "		if (YAO.ua.ie) {" +"\n"+

  "			this.loadShardow.style.height = this.lastPhotoHeight ? this.lastPhotoHeight + \'px\' : this.photoContainer.offsetHeight + \'px\';" +"\n"+
  "		}" +"\n"+
  "		oDf.appendChild(this.loadImg);" +"\n"+
  "		this.photoContainer.appendChild(oDf);" +"\n"+
  "		YAO.on(oImage, \'load\', function(){" +"\n"+
  "			this.resize(oImage);" +"\n"+
  "		}, oImage, this);" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "YAO.YAlbum.prototype.resize = function(oImage){" +"\n"+
  "	var oSelf = this;" +"\n"+
  "	var width = oImage.width;" +"\n"+
  "	var height = oImage.height;" +"\n"+
  "	var percent = width / height;" +"\n"+
  "	if (width > this.PHOTO_MAX_WIDTH) {" +"\n"+
  "		width = this.PHOTO_MAX_WIDTH;" +"\n"+
  "		height = width / percent;" +"\n"+
  "	}" +"\n"+
  "	if (YAO.ua.ie) {" +"\n"+
  "		this.lastPhotoHeight = height;" +"\n"+
  "		YAO.setStyles(this.btnPrevious, {" +"\n"+
  "			height: height + \'px\'," +"\n"+
  "			backgroundImage: oSelf.IMG_BTN_PREVIOUS" +"\n"+
  "		});" +"\n"+
  "		YAO.setStyles(this.btnNext, {" +"\n"+
  "			height: height + \'px\'," +"\n"+
  "			backgroundImage: oSelf.IMG_BTN_NEXT" +"\n"+
  "		});" +"\n"+
  "	}" +"\n"+
  "	if (this.lastIndex === 0) {" +"\n"+
  "		YAO.addClass(this.btnPrevious, this.BTN_DISABLED_CLASS);" +"\n"+
  "		if (YAO.ua.ie) {" +"\n"+
  "			this.btnPrevious.style.backgroundImage = \'none\';" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	if (this.lastIndex === (this.length - 1)) {" +"\n"+
  "		YAO.addClass(this.btnNext, this.BTN_DISABLED_CLASS);" +"\n"+
  "		if (YAO.ua.ie) {" +"\n"+
  "			this.btnNext.style.backgroundImage = \'none\';" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "	this.photoIntro.innerHTML = this.sIntro;" +"\n"+
  "	YAO.setStyle(this.photoContainer, \'width\', (width + \'px\'));" +"\n"+
  "	YAO.setStyles(this.photo, {" +"\n"+
  "		width: width + \'px\'," +"\n"+
  "		height: height + \'px\'" +"\n"+
  "	});" +"\n"+
  "	if (this.loadImg && this.loadShardow) {" +"\n"+
  "		this.isLoading = false;" +"\n"+
  "		this.photoContainer.removeChild(this.loadImg);" +"\n"+
  "		this.loadImg = null;" +"\n"+
  "		this.photoContainer.removeChild(this.loadShardow);" +"\n"+
  "		this.loadShardow = null;" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "YAO.YAlbum.prototype.Previous = function(){" +"\n"+
  "	if (this.lastIndex !== 0) {" +"\n"+
  "		this.lastIndex -= 1;" +"\n"+
  "		if (YAO.hasClass(this.btnNext, this.BTN_DISABLED_CLASS)) {" +"\n"+
  "			YAO.removeClass(this.btnNext, this.BTN_DISABLED_CLASS);" +"\n"+
  "		}" +"\n"+
  "		if (this.lastIndex >= 1) {" +"\n"+
  "			this.btnPrevious.href = this.oSamples[this.lastIndex - 1].href;" +"\n"+
  "		}" +"\n"+
  "		if (this.lastIndex < 0) {" +"\n"+
  "			this.lastIndex = 0;" +"\n"+
  "			YAO.addClass(this.btnPrevious, this.BTN_DISABLED_CLASS);" +"\n"+
  "		    this.btnPrevious.href = this.oSamples[this.lastIndex].href;" +"\n"+
  "		}" +"\n"+
  "		this.btnNext.href = this.oSamples[this.lastIndex+1].href;" +"\n"+
  "		this.chgPhoto();" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "YAO.YAlbum.prototype.Next = function(){" +"\n"+
  "	if (this.lastIndex < (this.length - 1)) {" +"\n"+
  "		this.lastIndex += 1;" +"\n"+
  "		if (YAO.hasClass(this.btnPrevious, this.BTN_DISABLED_CLASS)) {" +"\n"+
  "			YAO.removeClass(this.btnPrevious, this.BTN_DISABLED_CLASS);" +"\n"+
  "		}" +"\n"+
  "		if (this.lastIndex <= (this.length - 2)) {" +"\n"+
  "			this.btnNext.href = this.oSamples[this.lastIndex + 1].href;" +"\n"+
  "		}" +"\n"+
  "		if (this.lastIndex > (this.length - 1)) {" +"\n"+
  "			this.lastIndex = (this.length - 1);" +"\n"+
  "			YAO.addClass(this.btnNext, this.BTN_DISABLED_CLASS);" +"\n"+
  "			this.btnNext.href = this.oSamples[this.lastIndex].href;" +"\n"+
  "		}" +"\n"+
  "		this.btnPrevious.href = this.oSamples[this.lastIndex-1].href;" +"\n"+
  "		this.chgPhoto();" +"\n"+
  "	}" +"\n"+
  "};" +"\n"+
  "YAO.YAlbum.prototype.chgPhoto = function(){" +"\n"+
  "	var path = \'\';" +"\n"+
  "	this.sIntro = this.oSamples[this.lastIndex].title;" +"\n"+
  "	path = this.oSamples[this.lastIndex].href;" +"\n"+
  "	YAO.removeClass(this.lastSample, \'current\');" +"\n"+
  "	YAO.addClass(this.oSamples[this.lastIndex], \'current\');" +"\n"+
  "	this.lastSample = this.oSamples[this.lastIndex];" +"\n"+
  "	this.photo.src = path;" +"\n"+
  "	this.load(path);" +"\n"+
  "	this.scroll();" +"\n"+
  "};" +"\n"+
  "YAO.YAlbum.prototype.scroll = function(){" +"\n"+
  "	var curScreen = Math.ceil(((this.lastIndex + 1) * this.oCarousel.itemWidth) / this.oCarousel.stepWidth) - 1;" +"\n"+
  "	if (curScreen != this.oCarousel.movedNum) {" +"\n"+
  "		this.oCarousel.scroll(curScreen);" +"\n"+
  "		this.oCarousel.movedNum = curScreen;" +"\n"+
  "		if (this.oCarousel.movedNum !== 0 && YAO.hasClass(this.oCarousel.lnkBtnPrevious, this.BTN_DISABLED_CLASS)) {" +"\n"+
  "			YAO.removeClass(this.oCarousel.lnkBtnPrevious, this.BTN_DISABLED_CLASS);" +"\n"+
  "		}" +"\n"+
  "		else {" +"\n"+
  "			if (this.oCarousel.movedNum === 0) {" +"\n"+
  "				YAO.addClass(this.oCarousel.lnkBtnPrevious, this.BTN_DISABLED_CLASS);" +"\n"+
  "			}" +"\n"+
  "		}" +"\n"+
  "		if (this.oCarousel.movedNum !== this.oCarousel.maxMovedNum && YAO.hasClass(this.oCarousel.lnkBtnNext, this.BTN_DISABLED_CLASS)) {" +"\n"+
  "			YAO.removeClass(this.oCarousel.lnkBtnNext, this.BTN_DISABLED_CLASS);" +"\n"+
  "		}" +"\n"+
  "		else {" +"\n"+
  "			if (this.oCarousel.movedNum === this.oCarousel.maxMovedNum) {" +"\n"+
  "				YAO.addClass(this.oCarousel.lnkBtnNext, this.BTN_DISABLED_CLASS);" +"\n"+
  "			}" +"\n"+
  "		}" +"\n"+
  "	}" +"\n"+
  "}" +"\n"+
  "" +"\n"+
  "YAO.YTabs({" +"\n"+
  "		tabs: YAO.getEl(\'YNIndex\').getElementsByTagName(\'a\')," +"\n"+
  "		contents: YAO.getEl(\'YNews\').getElementsByTagName(\'dl\')," +"\n"+
  "		auto: true," +"\n"+
  "		fadeUp: true" +"\n"+
  "});" +"\n"+
  "" +"\n"+
  "</script>"

document.write(info)
