﻿/*
* JQuery Rolling 
* songsungkyun@naver.com
* 2008/03/16
*/
(function(b) { var a = {}; b.fn.rolling = function(f, h, d, e) { var c = new Date().getTime(); var i = this.attr("id"); a[c] = { id: i, rollingIsStarted: false, rollingItemCount: 0, rollingAnimationIndex: 0, rollingItemWidth: 0, rollingItemHeight: 0, viewingItemCount: 0, rollingTime: 0, viewingTime: 0, rollingAnimationFrame: 0, rollingDirection: null, rollingLeft: 0, rollingTop: 0, requestReverse: false, newRollingAnimationFrame: 0 }; var g = a[c]; g.rollingDirection = f; g.rollingItemWidth = h; g.rollingItemHeight = d; if (e == undefined) { g.viewingItemCount = 1 } else { g.viewingItemCount = e } if (g.rollingDirection == "left" || g.rollingDirection == "right") { this.css("width", g.rollingItemWidth * g.viewingItemCount); this.css("height", g.rollingItemHeight) } else { if (g.rollingDirection == "up" || g.rollingDirection == "down") { this.css("width", g.rollingItemWidth); this.css("height", g.rollingItemHeight * g.viewingItemCount) } } this.css("position", "relative"); this.css("overflow", "hidden"); this.attr("rollingId", c); this.empty(); rollingContentDiv = b("<div/>").appendTo(this); rollingContentDiv.attr("id", c); rollingContentDiv.css("position", "absolute"); rollingContentDiv.attr("align", "left"); rollingContentDiv.css("left", "0"); rollingContentDiv.css("top", "0"); return this }; b.fn.addRollingItem = function(d) { var f = a[this.attr("rollingId")]; var e = b("#" + this.attr("rollingId")); f.rollingItemCount++; var c = null; if (f.rollingDirection == "up") { c = b("<div class='item'/>").appendTo(e) } else { if (f.rollingDirection == "right") { c = b("<div class='item'/>").prependTo(e); c.css("display", "inline"); e.css("width", f.rollingItemCount * f.rollingItemWidth); e.css("left", -(f.rollingItemCount - f.viewingItemCount) * f.rollingItemWidth); f.rollingLeft = -(f.rollingItemCount - f.viewingItemCount) * f.rollingItemWidth } else { if (f.rollingDirection == "down") { c = b("<div class='item'/>").prependTo(e); f.rollingTop = -(f.rollingItemCount - f.viewingItemCount) * f.rollingItemHeight; e.css("top", -(f.rollingItemCount - f.viewingItemCount) * f.rollingItemHeight) } else { if (f.rollingDirection == "left") { c = b("<div class='item'/>").appendTo(e); c.css("display", "inline"); e.css("width", f.rollingItemCount * f.rollingItemWidth) } } } } c.css("overflow", "hidden"); c.css("width", f.rollingItemWidth); c.css("height", f.rollingItemHeight); c.html(d); return this }; rollingAnimation = function(d) { var e = a[d]; var i = b("#" + d); if (i.size() == 0) { return } var h = e.rollingTime; if (e.rollingIsStarted == false) { setTimeout("rollingAnimation('" + d + "')", h); return } if (e.rollingAnimationIndex == 0) { if (e.newRollingAnimationFrame != e.rollingAnimationFrame) { e.rollingAnimationFrame = e.newRollingAnimationFrame } } var c = false; if (e.requestReverse == true) { c = true; e.requestReverse = false; e.rollingAnimationIndex = e.rollingAnimationFrame - e.rollingAnimationIndex; if (e.rollingDirection == "left") { e.rollingDirection = "right" } else { if (e.rollingDirection == "right") { e.rollingDirection = "left" } else { if (e.rollingDirection == "down") { e.rollingDirection = "up" } else { if (e.rollingDirection == "up") { e.rollingDirection = "down" } } } } b("#" + e.id).trigger("reverse") } else { if (e.rollingDirection == "up") { e.rollingTop -= e.rollingItemHeight / e.rollingAnimationFrame; if (-e.rollingTop > parseFloat(e.rollingItemHeight) * e.rollingItemCount) { e.rollingTop = -parseFloat(e.rollingItemHeight) * e.rollingItemCount } i.css("top", e.rollingTop) } else { if (e.rollingDirection == "right") { e.rollingLeft += e.rollingItemWidth / e.rollingAnimationFrame; if (e.rollingLeft > parseFloat(e.rollingItemWidth)) { e.rollingLeft = parseFloat(e.rollingItemWidth) } i.css("left", e.rollingLeft) } else { if (e.rollingDirection == "down") { e.rollingTop += e.rollingItemHeight / e.rollingAnimationFrame; if (e.rollingTop > parseFloat(e.rollingItemHeight)) { e.rollingTop = parseFloat(e.rollingItemHeight) } i.css("top", e.rollingTop) } else { if (e.rollingDirection == "left") { e.rollingLeft -= e.rollingItemWidth / e.rollingAnimationFrame; if (-e.rollingLeft > parseFloat(e.rollingItemWidth) * e.rollingItemCount) { e.rollingLeft = -parseFloat(e.rollingItemWidth) * e.rollingItemCount } i.css("left", e.rollingLeft) } } } } e.rollingAnimationIndex++ } if (e.rollingAnimationIndex != 0 && e.rollingAnimationIndex % e.rollingAnimationFrame == 0) { var j = 0; if (e.rollingDirection == "up" || e.rollingDirection == "left") { j = 0 } else { if (e.rollingDirection == "right" || e.rollingDirection == "down") { j = e.rollingItemCount - 1 } } var g = b("div[class='item']:eq(" + j + ")", i); var f = null; if (e.rollingDirection == "up") { f = g.clone(true).appendTo(i); e.rollingTop += parseFloat(e.rollingItemHeight); e.rollingTop = e.rollingItemHeight * Math.round(e.rollingTop / e.rollingItemHeight); i.css("top", e.rollingTop) } else { if (e.rollingDirection == "right") { f = g.clone(true).prependTo(i); e.rollingLeft -= parseFloat(e.rollingItemWidth); e.rollingLeft = e.rollingItemWidth * Math.round(e.rollingLeft / e.rollingItemWidth); b("#debug").html("rollingLeft:" + e.rollingLeft); f.css("display", "inline"); i.css("left", e.rollingLeft) } else { if (e.rollingDirection == "down") { f = g.clone(true).prependTo(i); e.rollingTop -= parseFloat(e.rollingItemHeight); e.rollingTop = e.rollingItemHeight * Math.round(e.rollingTop / e.rollingItemHeight); i.css("top", e.rollingTop) } else { if (e.rollingDirection == "left") { f = g.clone(true).appendTo(i); e.rollingLeft += parseFloat(e.rollingItemWidth); e.rollingLeft = e.rollingItemWidth * Math.round(e.rollingLeft / e.rollingItemWidth); b("#debug").html("rollingLeft:" + e.rollingLeft); f.css("display", "inline"); i.css("left", e.rollingLeft) } } } } g.remove(); if (!c) { h = e.viewingTime } else { h = 0 } var k = b("div[class='item']:eq(" + j + ")", i); b("#" + e.id).trigger("viewing", [k]); e.rollingAnimationIndex = 0 } if (e.rollingAnimationIndex != 0) { var g = b("div[class='item']:eq(0)", i); b("#" + e.id).trigger("rolling", [g]) } setTimeout("rollingAnimation('" + d + "')", h) }; b.fn.startRolling = function(f, c, e) { var h = a[this.attr("rollingId")]; var g = b("#" + this.attr("rollingId")); var i = 0; if (h.rollingDirection == "up" || h.rollingDirection == "left") { i = 0 } else { if (h.rollingDirection == "right" || h.rollingDirection == "down") { i = h.rollingItemCount - 1 } } var d = b("div[class='item']:eq(" + i + ")", g); this.trigger("viewing", [d]); h.rollingTime = f; h.viewingTime = c; h.rollingAnimationFrame = e; h.newRollingAnimationFrame = e; h.rollingIsStarted = true; this.trigger("start"); setTimeout("rollingAnimation('" + this.attr("rollingId") + "')", h.viewingTime); return this }; b.fn.stopRolling = function() { this.trigger("stop"); a[this.attr("rollingId")].rollingIsStarted = false; return this }; b.fn.resumeRolling = function() { if (a[this.attr("rollingId")].rollingIsStarted != true) { a[this.attr("rollingId")].rollingIsStarted = true; this.trigger("start") } return this }; b.fn.getRollingTime = function() { return a[this.attr("rollingId")].rollingTime }; b.fn.getViewingTime = function() { return a[this.attr("rollingId")].viewingTime }; b.fn.getRollingAnimationFrame = function() { return a[this.attr("rollingId")].rollingAnimationFrame }; b.fn.getRollingDirection = function() { return a[this.attr("rollingId")].rollingDirection }; b.fn.setRollingTime = function(c) { a[this.attr("rollingId")].rollingTime = c; return this }; b.fn.setViewingTime = function(c) { a[this.attr("rollingId")].viewingTime = c; return this }; b.fn.setRollingAnimationFrame = function(c) { var d = a[this.attr("rollingId")].rollingAnimationFrame; var f = a[this.attr("rollingId")].rollingAnimationIndex; var e = c / d; a[this.attr("rollingId")].rollingAnimationFrame = c; a[this.attr("rollingId")].newRollingAnimationFrame = c; a[this.attr("rollingId")].rollingAnimationIndex = Math.round(e * f); return this }; b.fn.setRollingAnimationFrameNext = function(c) { a[this.attr("rollingId")].newRollingAnimationFrame = c; return this }; b.fn.getRollingItems = function() { return b("div[class=item]", this) }; b.fn.bindViewingEvent = function(c) { return this.bind("viewing", c) }; b.fn.unbindViewingEvent = function() { return this.unbind("viewing") }; b.fn.bindRollingEvent = function(c) { return this.bind("rolling", c) }; b.fn.unbindRollingEvent = function() { return this.unbind("rolling") }; b.fn.bindStartEvent = function(c) { return this.bind("start", c) }; b.fn.unbindStartEvent = function() { return this.unbind("start") }; b.fn.bindStopEvent = function(c) { return this.bind("stop", c) }; b.fn.unbindStopEvent = function() { return this.unbind("stop") }; b.fn.bindReverseEvent = function(c) { return this.bind("reverse", c) }; b.fn.unbindReverseEvent = function() { return this.unbind("reverse") }; b.fn.reverseRolling = function() { a[this.attr("rollingId")].requestReverse = true; return this } })(jQuery); ;

/* 
    idtabs 2.2
*/
        (function($) {
            $.fn.idTabs = function() {
                var s = {}; for (var i = 0; i < arguments.length; ++i) { var a = arguments[i]; switch (a.constructor) { case Object: $.extend(s, a); break; case Boolean: s.change = a; break; case Number: s.start = a; break; case Function: s.click = a; break; case String: if (a.charAt(0) == '.') s.selected = a; else if (a.charAt(0) == '!') s.event = a; else s.start = a; break; } }
                if (typeof s['return'] == "function")
                    s.change = s['return']; return this.each(function() { $.idTabs(this, s); });
            }
            $.idTabs = function(tabs, options) {
                var meta = ($.metadata) ? $(tabs).metadata() : {}; var s = $.extend({}, $.idTabs.settings, meta, options); if (s.selected.charAt(0) == '.') s.selected = s.selected.substr(1); if (s.event.charAt(0) == '!') s.event = s.event.substr(1); if (s.start == null) s.start = -1; var showId = function() {
                    if ($(this).is('.' + s.selected))
                        return s.change; var id = "#" + this.href.split('#')[1]; var aList = []; var idList = []; $("a", tabs).each(function() { if (this.href.match(/#/)) { aList.push(this); idList.push("#" + this.href.split('#')[1]); } }); if (s.click && !s.click.apply(this, [id, idList, tabs, s])) return s.change; for (i in aList) $(aList[i]).removeClass(s.selected); for (i in idList) $(idList[i]).hide(); $(this).addClass(s.selected); $(id).show(); return s.change;
                }
                var list = $("a[href*='#']", tabs).unbind(s.event, showId).bind(s.event, showId); list.each(function() { $("#" + this.href.split('#')[1]).hide(); }); var test = false; if ((test = list.filter('.' + s.selected)).length); else if (typeof s.start == "number" && (test = list.eq(s.start)).length); else if (typeof s.start == "string" && (test = list.filter("[href*='#" + s.start + "']")).length); if (test) { test.removeClass(s.selected); test.trigger(s.event); }
                return s;
            }
            $.idTabs.settings = { start: 0, change: false, click: null, selected: ".selected", event: "!click" }; $.idTabs.version = "2.2"; $(function() { $(".idTabs").idTabs(); });
        })(jQuery);

/*--------------------------------------------------------
### jQuery Star Rating Plugin v3.12 - 2009-04-16 ###
 */
eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } (';5(1O.1t)(7($){5($.29.1x)1I{1m.23("1u",P,z)}1F(e){}$.p.4=7(j){5(3.K==0)l 3;5(E J[0]==\'1j\'){5(3.K>1){8 k=J;l 3.W(7(){$.p.4.H($(3),k)})};$.p.4[J[0]].H(3,$.1T(J).21(1)||[]);l 3};8 j=$.10({},$.p.4.18,j||{});3.1v(\'.9-4-1l\').n(\'9-4-1l\').W(7(){8 a=(3.1J||\'1K-4\').1L(/\\[|\\]+/g,"1S");8 b=$(3.1U||1m.1X);8 c=$(3);8 d=b.6(\'4\')||{y:0};8 e=d[a];8 f;5(e)f=e.6(\'4\');5(e&&f){f.y++}B{f=$.10({},j||{},($.1k?c.1k():($.1H?c.6():s))||{},{y:0,C:[],u:[]});f.t=d.y++;e=$(\'<1M 12="9-4-1Q"/>\');c.1R(e);e.n(\'4-T-13-S\');5(c.R(\'Q\'))f.m=z;e.1a(f.A=$(\'<O 12="4-A"><a 14="\'+f.A+\'">\'+f.15+\'</a></O>\').1d(7(){$(3).4(\'N\');$(3).n(\'9-4-M\')}).1b(7(){$(3).4(\'v\');$(3).D(\'9-4-M\')}).1h(7(){$(3).4(\'w\')}).6(\'4\',f))};8 g=$(\'<O 12="9-4 q-\'+f.t+\'"><a 14="\'+(3.14||3.1p)+\'">\'+3.1p+\'</a></O>\');e.1a(g);5(3.U)g.R(\'U\',3.U);5(3.17)g.n(3.17);5(f.1V)f.x=2;5(E f.x==\'19\'&&f.x>0){8 h=($.p.11?g.11():0)||f.1c;8 i=(f.y%f.x),V=1y.1z(h/f.x);g.11(V).1A(\'a\').1B({\'1C-1D\':\'-\'+(i*V)+\'1E\'})};5(f.m)g.n(\'9-4-1e\');B g.n(\'9-4-1G\').1d(7(){$(3).4(\'1f\');$(3).4(\'G\')}).1b(7(){$(3).4(\'v\');$(3).4(\'F\')}).1h(7(){$(3).4(\'w\')});5(3.L)f.o=g;c.1i();c.1N(7(){$(3).4(\'w\')});g.6(\'4.r\',c.6(\'4.9\',g));f.C[f.C.K]=g[0];f.u[f.u.K]=c[0];f.q=d[a]=e;f.1P=b;c.6(\'4\',f);e.6(\'4\',f);g.6(\'4\',f);b.6(\'4\',d)});$(\'.4-T-13-S\').4(\'v\').D(\'4-T-13-S\');l 3};$.10($.p.4,{G:7(){8 a=3.6(\'4\');5(!a)l 3;5(!a.G)l 3;8 b=$(3).6(\'4.r\')||$(3.Z==\'X\'?3:s);5(a.G)a.G.H(b[0],[b.I(),$(\'a\',b.6(\'4.9\'))[0]])},F:7(){8 a=3.6(\'4\');5(!a)l 3;5(!a.F)l 3;8 b=$(3).6(\'4.r\')||$(3.Z==\'X\'?3:s);5(a.F)a.F.H(b[0],[b.I(),$(\'a\',b.6(\'4.9\'))[0]])},1f:7(){8 a=3.6(\'4\');5(!a)l 3;5(a.m)l;3.4(\'N\');3.1n().1o().Y(\'.q-\'+a.t).n(\'9-4-M\')},N:7(){8 a=3.6(\'4\');5(!a)l 3;5(a.m)l;a.q.1W().Y(\'.q-\'+a.t).D(\'9-4-1q\').D(\'9-4-M\')},v:7(){8 a=3.6(\'4\');5(!a)l 3;3.4(\'N\');5(a.o){a.o.6(\'4.r\').R(\'L\',\'L\');a.o.1n().1o().Y(\'.q-\'+a.t).n(\'9-4-1q\')}B $(a.u).1r(\'L\');a.A[a.m||a.1Y?\'1i\':\'1Z\']();3.20()[a.m?\'n\':\'D\'](\'9-4-1e\')},w:7(a){8 b=3.6(\'4\');5(!b)l 3;5(b.m)l;b.o=s;5(E a!=\'1s\'){5(E a==\'19\')l $(b.C[a]).4(\'w\');5(E a==\'1j\')$.W(b.C,7(){5($(3).6(\'4.r\').I()==a)$(3).4(\'w\')})}B b.o=3[0].Z==\'X\'?3.6(\'4.9\'):(3.22(\'.q-\'+b.t)?3:s);3.6(\'4\',b);3.4(\'v\');8 c=$(b.o?b.o.6(\'4.r\'):s);5(b.1g)b.1g.H(c[0],[c.I(),$(\'a\',b.o)[0]])},m:7(a,b){8 c=3.6(\'4\');5(!c)l 3;c.m=a||a==1s?z:P;5(b)$(c.u).R("Q","Q");B $(c.u).1r("Q");3.6(\'4\',c);3.4(\'v\')},24:7(){3.4(\'m\',z,z)},25:7(){3.4(\'m\',P,P)}});$.p.4.18={A:\'26 27\',15:\'\',x:0,1c:16};$(7(){$(\'r[28=1w].9\').4()})})(1t);', 62, 134, '|||this|rating|if|data|function|var|star||||||||||||return|readOnly|addClass|current|fn|rater|input|null|serial|inputs|draw|select|split|count|true|cancel|else|stars|removeClass|typeof|blur|focus|apply|val|arguments|length|checked|hover|drain|div|false|disabled|attr|drawn|to|id|spw|each|INPUT|filter|tagName|extend|width|class|be|title|cancelValue||className|options|number|append|mouseout|starWidth|mouseover|readonly|fill|callback|click|hide|string|metadata|applied|document|prevAll|andSelf|value|on|removeAttr|undefined|jQuery|BackgroundImageCache|not|radio|msie|Math|floor|find|css|margin|left|px|catch|live|meta|try|name|unnamed|replace|span|change|window|context|control|before|_|makeArray|form|half|children|body|required|show|siblings|slice|is|execCommand|disable|enable|Cancel|Rating|type|browser'.split('|'), 0, {}))

/* 自动生成摘要 */
        function Generate_Brief(text, length) {
            if (text.length < length) return text;
            var Foremost = text.substr(0, length);
            var re = /<(\/?)(BODY|SCRIPT|P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|TABLE|TR|TD|TH|INPUT|SELECT|TEXTAREA|OBJECT|A|UL|OL|LI|BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT|SPAN)[^>]*(>?)/ig;
            var Singlable = /BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT/i
            var Stack = new Array(), posStack = new Array();
            while (true) {
                var newone = re.exec(Foremost);
                if (newone == null) break;

                if (newone[1] == "") {
                    var Elem = newone[2];
                    if (Elem.match(Singlable) && newone[3] != "") {
                        continue;
                    }
                    Stack.push(newone[2].toUpperCase());
                    posStack.push(newone.index);

                    if (newone[3] == "") break;
                } else {
                    var StackTop = Stack[Stack.length - 1];
                    var End = newone[2].toUpperCase();
                    if (StackTop == End) {
                        Stack.pop();
                        posStack.pop();
                        if (newone[3] == "") {
                            Foremost = Foremost + ">";
                        }
                    }
                };
            }
            var cutpos = posStack.shift();
            Foremost = Foremost.substring(0, cutpos);
            return Foremost;
        }

/*class split*/
/*{split:n} class使用
* Metadata - jQuery plugin for parsing metadata from elements
*/

        (function($) {

            $.extend({
                metadata: {
                    defaults: {
                        type: 'class',
                        name: 'metadata',
                        cre: /({.*})/,
                        single: 'metadata'
                    },
                    setType: function(type, name) {
                        this.defaults.type = type;
                        this.defaults.name = name;
                    },
                    get: function(elem, opts) {
                        var settings = $.extend({}, this.defaults, opts);
                        if (!settings.single.length) settings.single = 'metadata';

                        var data = $.data(elem, settings.single);
                        if (data) return data;

                        data = "{}";

                        if (settings.type == "class") {
                            var m = settings.cre.exec(elem.className);
                            if (m)
                                data = m[1];
                        } else if (settings.type == "elem") {
                            if (!elem.getElementsByTagName) return;
                            var e = elem.getElementsByTagName(settings.name);
                            if (e.length)
                                data = $.trim(e[0].innerHTML);
                        } else if (elem.getAttribute != undefined) {
                            var attr = elem.getAttribute(settings.name);
                            if (attr)
                                data = attr;
                        }

                        if (data.indexOf('{') < 0)
                            data = "{" + data + "}";

                        data = eval("(" + data + ")");

                        $.data(elem, settings.single, data);
                        return data;
                    }
                }
            });
            $.fn.metadata = function(opts) {
                return $.metadata.get(this[0], opts);
            };

        })(jQuery);


/*------------------------------------------------------
* jqModal - Minimalist Modaling with jQuery
* $Version: 03/01/2009 +r14
*/
        (function($) {
            $.fn.jqm = function(o) {
                var p = {
                    overlay: 50,
                    overlayClass: 'jqmOverlay',
                    closeClass: 'jqmClose',
                    trigger: '.jqModal',
                    ajax: F,
                    ajaxText: '',
                    target: F,
                    modal: F,
                    toTop: F,
                    onShow: F,
                    onHide: F,
                    onLoad: F
                };
                return this.each(function() {
                    if (this._jqm) return H[this._jqm].c = $.extend({}, H[this._jqm].c, o); s++; this._jqm = s;
                    H[s] = { c: $.extend(p, $.jqm.params, o), a: F, w: $(this).addClass('jqmID' + s), s: s };
                    if (p.trigger) $(this).jqmAddTrigger(p.trigger);
                });
            };

            $.fn.jqmAddClose = function(e) { return hs(this, e, 'jqmHide'); };
            $.fn.jqmAddTrigger = function(e) { return hs(this, e, 'jqmShow'); };
            $.fn.jqmShow = function(t) { return this.each(function() { t = t || window.event; $.jqm.open(this._jqm, t); }); };
            $.fn.jqmHide = function(t) { return this.each(function() { t = t || window.event; $.jqm.close(this._jqm, t) }); };

            $.jqm = {
                hash: {},
                open: function(s, t) {
                    var h = H[s], c = h.c, cc = '.' + c.closeClass, z = (parseInt(h.w.css('z-index'))), z = (z > 0) ? z : 3000, o = $('<div></div>').css({ height: '100%', width: '100%', position: 'fixed', left: 0, top: 0, 'z-index': z - 1, opacity: c.overlay / 100 }); if (h.a) return F; h.t = t; h.a = true; h.w.css('z-index', z);
                    if (c.modal) { if (!A[0]) L('bind'); A.push(s); }
                    else if (c.overlay > 0) h.w.jqmAddClose(o);
                    else o = F;

                    h.o = (o) ? o.addClass(c.overlayClass).prependTo('body') : F;
                    if (ie6) { $('html,body').css({ height: '100%', width: '100%' }); if (o) { o = o.css({ position: 'absolute' })[0]; for (var y in { Top: 1, Left: 1 }) o.style.setExpression(y.toLowerCase(), "(_=(document.documentElement.scroll" + y + " || document.body.scroll" + y + "))+'px'"); } }

                    if (c.ajax) {
                        var r = c.target || h.w, u = c.ajax, r = (typeof r == 'string') ? $(r, h.w) : $(r), u = (u.substr(0, 1) == '@') ? $(t).attr(u.substring(1)) : u;
                        r.html(c.ajaxText).load(u, function() { if (c.onLoad) c.onLoad.call(this, h); if (cc) h.w.jqmAddClose($(cc, h.w)); e(h); });
                    }
                    else if (cc) h.w.jqmAddClose($(cc, h.w));

                    if (c.toTop && h.o) h.w.before('<span id="jqmP' + h.w[0]._jqm + '"></span>').insertAfter(h.o);
                    (c.onShow) ? c.onShow(h) : h.w.show(); e(h); return F;
                },
                close: function(s) {
                    var h = H[s]; if (!h.a) return F; h.a = F;
                    if (A[0]) { A.pop(); if (!A[0]) L('unbind'); }
                    if (h.c.toTop && h.o) $('#jqmP' + h.w[0]._jqm).after(h.w).remove();
                    if (h.c.onHide) h.c.onHide(h); else { h.w.hide(); if (h.o) h.o.remove(); } return F;
                },
                params: {}
            };
            var s = 0, H = $.jqm.hash, A = [], ie6 = $.browser.msie && ($.browser.version == "6.0"), F = false,
i = $('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({ opacity: 0 }),
e = function(h) { if (ie6) if (h.o) h.o.html('<p style="width:100%;height:100%"/>').prepend(i); else if (!$('iframe.jqm', h.w)[0]) h.w.prepend(i); f(h); },
f = function(h) { try { $(':input:visible', h.w)[0].focus(); } catch (_) { } },
L = function(t) { $()[t]("keypress", m)[t]("keydown", m)[t]("mousedown", m); },
m = function(e) { var h = H[A[A.length - 1]], r = (!$(e.target).parents('.jqmID' + h.s)[0]); if (r) f(h); return !r; },
hs = function(w, t, c) {
    return w.each(function() {
        var s = this._jqm; $(t).each(function() {
            if (!this[c]) { this[c] = []; $(this).click(function() { for (var i in { jqmShow: 1, jqmHide: 1 }) for (var s in this[i]) if (H[this[i][s]]) H[this[i][s]].w[i](this); return F; }); } this[c].push(s);
        });
    });
};
})(jQuery);

/*-----------------------------------------------------------------------
* jqDnR - Minimalistic Drag'n'Resize for jQuery.
* $Version: 2007.08.19 +r2
*/

(function($) {
    $.fn.jqDrag = function(h) { return i(this, h, 'd'); };
    $.fn.jqResize = function(h) { return i(this, h, 'r'); };
    $.jqDnR = { dnr: {}, e: 0,
        drag: function(v) {
            if (M.k == 'd') E.css({ left: M.X + v.pageX - M.pX, top: M.Y + v.pageY - M.pY });
            else E.css({ width: Math.max(v.pageX - M.pX + M.W, 0), height: Math.max(v.pageY - M.pY + M.H, 0) });
            return false;
        },
        stop: function() { E.css('opacity', M.o); $().unbind('mousemove', J.drag).unbind('mouseup', J.stop); }
    };
    var J = $.jqDnR, M = J.dnr, E = J.e,
i = function(e, h, k) {
    return e.each(function() {
        h = (h) ? $(h, e) : e;
        h.bind('mousedown', { e: e, k: k }, function(v) {
            var d = v.data, p = {}; E = d.e;
            if (E.css('position') != 'relative') { try { E.position(p); } catch (e) { } }
            M = { X: p.left || f('left') || 0, Y: p.top || f('top') || 0, W: f('width') || E[0].scrollWidth || 0, H: f('height') || E[0].scrollHeight || 0, pX: v.pageX, pY: v.pageY, k: d.k, o: E.css('opacity') };
            E.css({ opacity: 0.8 }); $().mousemove($.jqDnR.drag).mouseup($.jqDnR.stop);
            return false;
        });
    });
},
f = function(k) { return parseInt(E.css(k)) || false; };
})(jQuery);


/* --------------------------------------------------------------------
*  dimensions Version: 1.2
*/
(function($) { $.dimensions = { version: '1.2' }; $.each(['Height', 'Width'], function(i, name) { $.fn['inner' + name] = function() { if (!this[0]) return; var torl = name == 'Height' ? 'Top' : 'Left', borr = name == 'Height' ? 'Bottom' : 'Right'; return this.is(':visible') ? this[0]['client' + name] : num(this, name.toLowerCase()) + num(this, 'padding' + torl) + num(this, 'padding' + borr); }; $.fn['outer' + name] = function(options) { if (!this[0]) return; var torl = name == 'Height' ? 'Top' : 'Left', borr = name == 'Height' ? 'Bottom' : 'Right'; options = $.extend({ margin: false }, options || {}); var val = this.is(':visible') ? this[0]['offset' + name] : num(this, name.toLowerCase()) + num(this, 'border' + torl + 'Width') + num(this, 'border' + borr + 'Width') + num(this, 'padding' + torl) + num(this, 'padding' + borr); return val + (options.margin ? (num(this, 'margin' + torl) + num(this, 'margin' + borr)) : 0); }; }); $.each(['Left', 'Top'], function(i, name) { $.fn['scroll' + name] = function(val) { if (!this[0]) return; return val != undefined ? this.each(function() { this == window || this == document ? window.scrollTo(name == 'Left' ? val : $(window)['scrollLeft'](), name == 'Top' ? val : $(window)['scrollTop']()) : this['scroll' + name] = val; }) : this[0] == window || this[0] == document ? self[(name == 'Left' ? 'pageXOffset' : 'pageYOffset')] || $.boxModel && document.documentElement['scroll' + name] || document.body['scroll' + name] : this[0]['scroll' + name]; }; }); $.fn.extend({ position: function() { var left = 0, top = 0, elem = this[0], offset, parentOffset, offsetParent, results; if (elem) { offsetParent = this.offsetParent(); offset = this.offset(); parentOffset = offsetParent.offset(); offset.top -= num(elem, 'marginTop'); offset.left -= num(elem, 'marginLeft'); parentOffset.top += num(offsetParent, 'borderTopWidth'); parentOffset.left += num(offsetParent, 'borderLeftWidth'); results = { top: offset.top - parentOffset.top, left: offset.left - parentOffset.left }; } return results; }, offsetParent: function() { var offsetParent = this[0].offsetParent; while (offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && $.css(offsetParent, 'position') == 'static')) offsetParent = offsetParent.offsetParent; return $(offsetParent); } }); function num(el, prop) { return parseInt($.curCSS(el.jquery ? el[0] : el, prop, true)) || 0; }; })(jQuery);

/* -------------------------------------------------------------------- 
* jQuery-Plugin "toggleElements" Version: 1.3, 11.09.2007 
*/
eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('N g=7;(4($){2.U.10=4(a){a=2.Y({9:"m",f:"T",6:"Z",L:n,J:7,H:E,k:E,h:E},a);N b=a.H,k=a.k,h=a.h;5((a.9!=\'m\')&&(a.9!=\'q\')&&(a.9!=\'z\'))a.9=\'m\';3.r(4(){5(2(3).o(\'t\').M("e")==-1){2(3).K()}});3.r(4(){w=\'\';v=2(3).o(\'u\');5(a.J==n)w=v;5(a.L==n)2(3).o(\'u\',\'\');5(2(3).o(\'t\').M("e")!=-1){2(3).I(\'<a t="\'+a.6+\' \'+a.6+\'-e" G="#" u="\'+w+\'">\'+v+\'</a>\');2(3).j(a.6+\'-c-e\')}F{2(3).I(\'<a t="\'+a.6+\' \'+a.6+\'-i" G="#" u="\'+w+\'">\'+v+\'</a>\');2(3).j(a.6+\'-c-i\')}2(3).D(\'a.\'+a.6).X(4(){5(g)s 7;8=3;2(8)[0].C();5(8.l||g)s 7;g=n;8.l=n;5(B b==\'4\'&&b(8)===7){g=7;8.l=7;s 7}5(2(3).A().W(\'V\')==\'S\'){2(3).A().r(4(){5(a.9==\'m\')2(3).R(a.f,4(){2.p(3,a.6,k,8)});5(a.9==\'q\')2(3).K(a.f,4(){2.p(3,a.6,k,8)});5(a.9==\'z\')2(3).Q(a.f,4(){2.p(3,a.6,k,8)})})}F{2(3).A().r(4(){5(a.9==\'m\')2(3).P(a.f,4(){2.x(3,a.6,h,8)});5(a.9==\'q\')2(3).q(a.f,4(){2.x(3,a.6,h,8)});5(a.9==\'z\')2(3).O(a.f,4(){2.x(3,a.6,h,8)})})}s 7})})};2.p=4(a,b,c,d){2(a).D(\'a.\'+b).y(b+\'-e\').j(b+\'-i\').C();5(B c==\'4\')c(3);2(a).y(b+\'-c-e\').j(b+\'-c-i\');g=7;d.l=7};2.x=4(a,b,c,d){2(a).D(\'a.\'+b).y(b+\'-i\').j(b+\'-e\').C();5(B c==\'4\')c(3);2(a).y(b+\'-c-i\').j(b+\'-c-e\');g=7;d.l=7}})(2);', 62, 63, '||jQuery|this|function|if|className|false|thelink|fxAnimation|||||opened|fxSpeed|toggleElements_animating|onShow|closed|addClass|onHide|animating|slide|true|attr|toggleElementsHidden|show|each|return|class|title|wlinktext|wtitle|toggleElementsShown|removeClass|fade|next|typeof|blur|prev|null|else|href|onClick|before|showTitle|hide|removeTitle|indexOf|var|fadeIn|slideDown|fadeOut|slideUp|block|normal|fn|display|css|click|extend|toggler|toggleElements'.split('|'), 0, {}));


/**
* jQuery (PNG Fix) v1.2
*/
(function($) {

    $.fn.pngfix = function(options) {

        // ECMA scope fix
        var elements = this;
        var settings = $.extend({
            imageFixSrc: false,
            sizingMethod: false
        }, options);

        if (!$.browser.msie || ($.browser.msie && $.browser.version >= 7)) {
            return (elements);
        }

        function setFilter(el, path, mode) {
            var fs = el.attr("filters");
            var alpha = "DXImageTransform.Microsoft.AlphaImageLoader";
            if (fs[alpha]) {
                fs[alpha].enabled = true;
                fs[alpha].src = path;
                fs[alpha].sizingMethod = mode;
            } else {
                el.css("filter", 'progid:' + alpha + '(enabled="true", sizingMethod="' + mode + '", src="' + path + '")');
            }
        }

        function setDOMElementWidth(el) {
            if (el.css("width") == "auto" & el.css("height") == "auto") {
                el.css("width", el.attr("offsetWidth") + "px");
            }
        }

        return (
			elements.each(function() {

			    // Scope
			    var el = $(this);

			    if (el.attr("tagName").toUpperCase() == "IMG" && (/\.png/i).test(el.attr("src"))) {
			        if (!settings.imageFixSrc) {

			            // Wrap the <img> in a <span> then apply style/filters, 
			            // removing the <img> tag from the final render 
			            el.wrap("<span></span>");
			            var par = el.parent();
			            par.css({
			                height: el.height(),
			                width: el.width(),
			                display: "inline-block"
			            });
			            setFilter(par, el.attr("src"), "scale");
			            el.remove();
			        } else if ((/\.gif/i).test(settings.imageFixSrc)) {

			            // Replace the current image with a transparent GIF
			            // and apply the filter to the background of the 
			            // <img> tag (not the preferred route)
			            setDOMElementWidth(el);
			            setFilter(el, el.attr("src"), "image");
			            el.attr("src", settings.imageFixSrc);
			        }

			    } else {
			        var bg = new String(el.css("backgroundImage"));
			        var matches = bg.match(/^url\("(.*)"\)$/);
			        if (matches && matches.length) {

			            // Elements with a PNG as a backgroundImage have the
			            // filter applied with a sizing method relevant to the 
			            // background repeat type
			            setDOMElementWidth(el);
			            el.css("backgroundImage", "none");

			            // Restrict scaling methods to valid MSDN defintions (or one custom)
			            var sc = "crop";
			            if (settings.sizingMethod) {
			                sc = settings.sizingMethod;
			            }
			            setFilter(el, matches[1], sc);

			            // Fix IE peek-a-boo bug for internal links
			            // within that DOM element
			            el.find("a").each(function() {
			                $(this).css("position", "relative");
			            });
			        }
			    }

			})
		);
    }

})(jQuery)