var createdBy = "creativedonkeys";
/* * jQuery UI 1.7.1 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */
jQuery.ui || (function (c) {
	var i = c.fn.remove,
		d = c.browser.mozilla && (parseFloat(c.browser.version) < 1.9);
	c.ui = {
		version: "1.7.1",
		plugin: {
			add: function (k, l, n) {
				var m = c.ui[k].prototype;
				for (var j in n) {
					m.plugins[j] = m.plugins[j] || [];
					m.plugins[j].push([l, n[j]])
				}
			},
			call: function (j, l, k) {
				var n = j.plugins[l];
				if (!n || !j.element[0].parentNode) {
					return
				}
				for (var m = 0; m < n.length; m++) {
					if (j.options[n[m][0]]) {
						n[m][1].apply(j.element, k)
					}
				}
			}
		},
		contains: function (k, j) {
			return document.compareDocumentPosition ? k.compareDocumentPosition(j) & 16 : k !== j && k.contains(j)
		},
		hasScroll: function (m, k) {
			if (c(m).css("overflow") == "hidden") {
				return false
			}
			var j = (k && k == "left") ? "scrollLeft" : "scrollTop",
			l = false;
			if (m[j] > 0) {
				return true
			}
			m[j] = 1;
			l = (m[j] > 0);
			m[j] = 0;
			return l
		},
		isOverAxis: function (k, j, l) {
			return (k > j) && (k < (j + l))
		},
		isOver: function (o, k, n, m, j, l) {
			return c.ui.isOverAxis(o, n, j) && c.ui.isOverAxis(k, m, l)
		},
		keyCode: {
			BACKSPACE: 8,
			CAPS_LOCK: 20,
			COMMA: 188,
			CONTROL: 17,
			DELETE: 46,
			DOWN: 40,
			END: 35,
			ENTER: 13,
			ESCAPE: 27,
			HOME: 36,
			INSERT: 45,
			LEFT: 37,
			NUMPAD_ADD: 107,
			NUMPAD_DECIMAL: 110,
			NUMPAD_DIVIDE: 111,
			NUMPAD_ENTER: 108,
			NUMPAD_MULTIPLY: 106,
			NUMPAD_SUBTRACT: 109,
			PAGE_DOWN: 34,
			PAGE_UP: 33,
			PERIOD: 190,
			RIGHT: 39,
			SHIFT: 16,
			SPACE: 32,
			TAB: 9,
			UP: 38
		}
	};
	if (d) {
		var f = c.attr,
			e = c.fn.removeAttr,
			h = "http://www.w3.org/2005/07/aaa",
			a = /^aria-/,
			b = /^wairole:/;
		c.attr = function (k, j, l) {
			var m = l !== undefined;
			return (j == "role" ? (m ? f.call(this, k, j, "wairole:" + l) : (f.apply(this, arguments) || "").replace(b, "")) : (a.test(j) ? (m ? k.setAttributeNS(h, j.replace(a, "aaa:"), l) : f.call(this, k, j.replace(a, "aaa:"))) : f.apply(this, arguments)))
		};
		c.fn.removeAttr = function (j) {
			return (a.test(j) ? this.each(function () {
				this.removeAttributeNS(h, j.replace(a, ""))
			}) : e.call(this, j))
		}
	}
	c.fn.extend({
		remove: function () {
			c("*", this).add(this).each(function () {
				c(this).triggerHandler("remove")
			});
			return i.apply(this, arguments)
		},
		enableSelection: function () {
			return this.attr("unselectable", "off").css("MozUserSelect", "").unbind("selectstart.ui")
		},
		disableSelection: function () {
			return this.attr("unselectable", "on").css("MozUserSelect", "none").bind("selectstart.ui", function () {
				return false
			})
		},
		scrollParent: function () {
			var j;
			if ((c.browser.msie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
				j = this.parents().filter(function () {
					return (/(relative|absolute|fixed)/).test(c.curCSS(this, "position", 1)) && (/(auto|scroll)/).test(c.curCSS(this, "overflow", 1) + c.curCSS(this, "overflow-y", 1) + c.curCSS(this, "overflow-x", 1))
				}).eq(0)
			} else {
				j = this.parents().filter(function () {
					return (/(auto|scroll)/).test(c.curCSS(this, "overflow", 1) + c.curCSS(this, "overflow-y", 1) + c.curCSS(this, "overflow-x", 1))
				}).eq(0)
			}
			return (/fixed/).test(this.css("position")) || !j.length ? c(document) : j
		}
	});
	c.extend(c.expr[":"], {
		data: function (l, k, j) {
			return !!c.data(l, j[3])
		},
		focusable: function (k) {
			var l = k.nodeName.toLowerCase(),
				j = c.attr(k, "tabindex");
			return (/input|select|textarea|button|object/.test(l) ? !k.disabled : "a" == l || "area" == l ? k.href || !isNaN(j) : !isNaN(j)) && !c(k)["area" == l ? "parents" : "closest"](":hidden").length
		},
		tabbable: function (k) {
			var j = c.attr(k, "tabindex");
			return (isNaN(j) || j >= 0) && c(k).is(":focusable")
		}
	});

	function g(m, n, o, l) {
		function k(q) {
			var p = c[m][n][q] || [];
			return (typeof p == "string" ? p.split(/,?\s+/) : p)
		}
		var j = k("getter");
		if (l.length == 1 && typeof l[0] == "string") {
			j = j.concat(k("getterSetter"))
		}
		return (c.inArray(o, j) != -1)
	}
	c.widget = function (k, j) {
		var l = k.split(".")[0];
		k = k.split(".")[1];
		c.fn[k] = function (p) {
			var n = (typeof p == "string"),
				o = Array.prototype.slice.call(arguments, 1);
			if (n && p.substring(0, 1) == "_") {
				return this
			}
			if (n && g(l, k, p, o)) {
				var m = c.data(this[0], k);
				return (m ? m[p].apply(m, o) : undefined)
			}
			return this.each(function () {
				var q = c.data(this, k);
				(!q && !n && c.data(this, k, new c[l][k](this, p))._init());
				(q && n && c.isFunction(q[p]) && q[p].apply(q, o))
			})
		};
		c[l] = c[l] || {};
		c[l][k] = function (o, n) {
			var m = this;
			this.namespace = l;
			this.widgetName = k;
			this.widgetEventPrefix = c[l][k].eventPrefix || k;
			this.widgetBaseClass = l + "-" + k;
			this.options = c.extend({},
			c.widget.defaults, c[l][k].defaults, c.metadata && c.metadata.get(o)[k], n);
			this.element = c(o).bind("setData." + k, function (q, p, r) {
				if (q.target == o) {
					return m._setData(p, r)
				}
			}).bind("getData." + k, function (q, p) {
				if (q.target == o) {
					return m._getData(p)
				}
			}).bind("remove", function () {
				return m.destroy()
			})
		};
		c[l][k].prototype = c.extend({},
		c.widget.prototype, j);
		c[l][k].getterSetter = "option"
	};
	c.widget.prototype = {
		_init: function () {},
		destroy: function () {
			this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass + "-disabled " + this.namespace + "-state-disabled").removeAttr("aria-disabled")
		},
		option: function (l, m) {
			var k = l,
				j = this;
			if (typeof l == "string") {
				if (m === undefined) {
					return this._getData(l)
				}
				k = {};
				k[l] = m
			}
			c.each(k, function (n, o) {
				j._setData(n, o)
			})
		},
		_getData: function (j) {
			return this.options[j]
		},
		_setData: function (j, k) {
			this.options[j] = k;
			if (j == "disabled") {
				this.element[k ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled " + this.namespace + "-state-disabled").attr("aria-disabled", k)
			}
		},
		enable: function () {
			this._setData("disabled", false)
		},
		disable: function () {
			this._setData("disabled", true)
		},
		_trigger: function (l, m, n) {
			var p = this.options[l],
				j = (l == this.widgetEventPrefix ? l : this.widgetEventPrefix + l);
			m = c.Event(m);
			m.type = j;
			if (m.originalEvent) {
				for (var k = c.event.props.length, o; k;) {
					o = c.event.props[--k];
					m[o] = m.originalEvent[o]
				}
			}
			this.element.trigger(m, n);
			return ! (c.isFunction(p) && p.call(this.element[0], m, n) === false || m.isDefaultPrevented())
		}
	};
	c.widget.defaults = {
		disabled: false
	};
	c.ui.mouse = {
		_mouseInit: function () {
			var j = this;
			this.element.bind("mousedown." + this.widgetName, function (k) {
				return j._mouseDown(k)
			}).bind("click." + this.widgetName, function (k) {
				if (j._preventClickEvent) {
					j._preventClickEvent = false;
					k.stopImmediatePropagation();
					return false
				}
			});
			if (c.browser.msie) {
				this._mouseUnselectable = this.element.attr("unselectable");
				this.element.attr("unselectable", "on")
			}
			this.started = false
		},
		_mouseDestroy: function () {
			this.element.unbind("." + this.widgetName);
			(c.browser.msie && this.element.attr("unselectable", this._mouseUnselectable))
		},
		_mouseDown: function (l) {
			l.originalEvent = l.originalEvent || {};
			if (l.originalEvent.mouseHandled) {
				return
			} (this._mouseStarted && this._mouseUp(l));
			this._mouseDownEvent = l;
			var k = this,
				m = (l.which == 1),
				j = (typeof this.options.cancel == "string" ? c(l.target).parents().add(l.target).filter(this.options.cancel).length : false);
			if (!m || j || !this._mouseCapture(l)) {
				return true
			}
			this.mouseDelayMet = !this.options.delay;
			if (!this.mouseDelayMet) {
				this._mouseDelayTimer = setTimeout(function () {
					k.mouseDelayMet = true
				},
				this.options.delay)
			}
			if (this._mouseDistanceMet(l) && this._mouseDelayMet(l)) {
				this._mouseStarted = (this._mouseStart(l) !== false);
				if (!this._mouseStarted) {
					l.preventDefault();
					return true
				}
			}
			this._mouseMoveDelegate = function (n) {
				return k._mouseMove(n)
			};
			this._mouseUpDelegate = function (n) {
				return k._mouseUp(n)
			};
			c(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate);
			(c.browser.safari || l.preventDefault());
			l.originalEvent.mouseHandled = true;
			return true
		},
		_mouseMove: function (j) {
			if (c.browser.msie && !j.button) {
				return this._mouseUp(j)
			}
			if (this._mouseStarted) {
				this._mouseDrag(j);
				return j.preventDefault()
			}
			if (this._mouseDistanceMet(j) && this._mouseDelayMet(j)) {
				this._mouseStarted = (this._mouseStart(this._mouseDownEvent, j) !== false);
				(this._mouseStarted ? this._mouseDrag(j) : this._mouseUp(j))
			}
			return !this._mouseStarted
		},
		_mouseUp: function (j) {
			c(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
			if (this._mouseStarted) {
				this._mouseStarted = false;
				this._preventClickEvent = (j.target == this._mouseDownEvent.target);
				this._mouseStop(j)
			}
			return false
		},
		_mouseDistanceMet: function (j) {
			return (Math.max(Math.abs(this._mouseDownEvent.pageX - j.pageX), Math.abs(this._mouseDownEvent.pageY - j.pageY)) >= this.options.distance)
		},
		_mouseDelayMet: function (j) {
			return this.mouseDelayMet
		},
		_mouseStart: function (j) {},
		_mouseDrag: function (j) {},
		_mouseStop: function (j) {},
		_mouseCapture: function (j) {
			return true
		}
	};
	c.ui.mouse.defaults = {
		cancel: null,
		distance: 1,
		delay: 0
	}
})(jQuery);;
/* * jQuery UI Effects 1.7.1 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/ */
jQuery.effects || (function (d) {
	d.effects = {
		version: "1.7.1",
		save: function (g, h) {
			for (var f = 0; f < h.length; f++) {
				if (h[f] !== null) {
					g.data("ec.storage." + h[f], g[0].style[h[f]])
				}
			}
		},
		restore: function (g, h) {
			for (var f = 0; f < h.length; f++) {
				if (h[f] !== null) {
					g.css(h[f], g.data("ec.storage." + h[f]))
				}
			}
		},
		setMode: function (f, g) {
			if (g == "toggle") {
				g = f.is(":hidden") ? "show" : "hide"
			}
			return g
		},
		getBaseline: function (g, h) {
			var i, f;
			switch (g[0]) {
			case "top":
				i = 0;
				break;
			case "middle":
				i = 0.5;
				break;
			case "bottom":
				i = 1;
				break;
			default:
				i = g[0] / h.height
			}
			switch (g[1]) {
			case "left":
				f = 0;
				break;
			case "center":
				f = 0.5;
				break;
			case "right":
				f = 1;
				break;
			default:
				f = g[1] / h.width
			}
			return {
				x: f,
				y: i
			}
		},
		createWrapper: function (f) {
			if (f.parent().is(".ui-effects-wrapper")) {
				return f.parent()
			}
			var g = {
				width: f.outerWidth(true),
				height: f.outerHeight(true),
				"float": f.css("float")
			};
			f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
			var j = f.parent();
			if (f.css("position") == "static") {
				j.css({
					position: "relative"
				});
				f.css({
					position: "relative"
				})
			} else {
				var i = f.css("top");
				if (isNaN(parseInt(i, 10))) {
					i = "auto"
				}
				var h = f.css("left");
				if (isNaN(parseInt(h, 10))) {
					h = "auto"
				}
				j.css({
					position: f.css("position"),
					top: i,
					left: h,
					zIndex: f.css("z-index")
				}).show();
				f.css({
					position: "relative",
					top: 0,
					left: 0
				})
			}
			j.css(g);
			return j
		},
		removeWrapper: function (f) {
			if (f.parent().is(".ui-effects-wrapper")) {
				return f.parent().replaceWith(f)
			}
			return f
		},
		setTransition: function (g, i, f, h) {
			h = h || {};
			d.each(i, function (k, j) {
				unit = g.cssUnit(j);
				if (unit[0] > 0) {
					h[j] = unit[0] * f + unit[1]
				}
			});
			return h
		},
		animateClass: function (h, i, k, j) {
			var f = (typeof k == "function" ? k : (j ? j : null));
			var g = (typeof k == "string" ? k : null);
			return this.each(function () {
				var q = {};
				var o = d(this);
				var p = o.attr("style") || "";
				if (typeof p == "object") {
					p = p.cssText
				}
				if (h.toggle) {
					o.hasClass(h.toggle) ? h.remove = h.toggle : h.add = h.toggle
				}
				var l = d.extend({},
				(document.defaultView ? document.defaultView.getComputedStyle(this, null) : this.currentStyle));
				if (h.add) {
					o.addClass(h.add)
				}
				if (h.remove) {
					o.removeClass(h.remove)
				}
				var m = d.extend({},
				(document.defaultView ? document.defaultView.getComputedStyle(this, null) : this.currentStyle));
				if (h.add) {
					o.removeClass(h.add)
				}
				if (h.remove) {
					o.addClass(h.remove)
				}
				for (var r in m) {
					if (typeof m[r] != "function" && m[r] && r.indexOf("Moz") == -1 && r.indexOf("length") == -1 && m[r] != l[r] && (r.match(/color/i) || (!r.match(/color/i) && !isNaN(parseInt(m[r], 10)))) && (l.position != "static" || (l.position == "static" && !r.match(/left|top|bottom|right/)))) {
						q[r] = m[r]
					}
				}
				o.animate(q, i, g, function () {
					if (typeof d(this).attr("style") == "object") {
						d(this).attr("style")["cssText"] = "";
						d(this).attr("style")["cssText"] = p
					} else {
						d(this).attr("style", p)
					}
					if (h.add) {
						d(this).addClass(h.add)
					}
					if (h.remove) {
						d(this).removeClass(h.remove)
					}
					if (f) {
						f.apply(this, arguments)
					}
				})
			})
		}
	};

	function c(g, f) {
		var i = g[1] && g[1].constructor == Object ? g[1] : {};
		if (f) {
			i.mode = f
		}
		var h = g[1] && g[1].constructor != Object ? g[1] : (i.duration ? i.duration : g[2]);
		h = d.fx.off ? 0 : typeof h === "number" ? h : d.fx.speeds[h] || d.fx.speeds._default;
		var j = i.callback || (d.isFunction(g[1]) && g[1]) || (d.isFunction(g[2]) && g[2]) || (d.isFunction(g[3]) && g[3]);
		return [g[0], i, h, j]
	}
	d.fn.extend({
		_show: d.fn.show,
		_hide: d.fn.hide,
		__toggle: d.fn.toggle,
		_addClass: d.fn.addClass,
		_removeClass: d.fn.removeClass,
		_toggleClass: d.fn.toggleClass,
		effect: function (g, f, h, i) {
			return d.effects[g] ? d.effects[g].call(this, {
				method: g,
				options: f || {},
				duration: h,
				callback: i
			}) : null
		},
		show: function () {
			if (!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0]))) {
				return this._show.apply(this, arguments)
			} else {
				return this.effect.apply(this, c(arguments, "show"))
			}
		},
		hide: function () {
			if (!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0]))) {
				return this._hide.apply(this, arguments)
			} else {
				return this.effect.apply(this, c(arguments, "hide"))
			}
		},
		toggle: function () {
			if (!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) || (arguments[0].constructor == Function)) {
				return this.__toggle.apply(this, arguments)
			} else {
				return this.effect.apply(this, c(arguments, "toggle"))
			}
		},
		addClass: function (g, f, i, h) {
			return f ? d.effects.animateClass.apply(this, [{
				add: g
			},
			f, i, h]) : this._addClass(g)
		},
		removeClass: function (g, f, i, h) {
			return f ? d.effects.animateClass.apply(this, [{
				remove: g
			},
			f, i, h]) : this._removeClass(g)
		},
		toggleClass: function (g, f, i, h) {
			return ((typeof f !== "boolean") && f) ? d.effects.animateClass.apply(this, [{
				toggle: g
			},
			f, i, h]) : this._toggleClass(g, f)
		},
		morph: function (f, h, g, j, i) {
			return d.effects.animateClass.apply(this, [{
				add: h,
				remove: f
			},
			g, j, i])
		},
		switchClass: function () {
			return this.morph.apply(this, arguments)
		},
		cssUnit: function (f) {
			var g = this.css(f),
				h = [];
			d.each(["em", "px", "%", "pt"], function (j, k) {
				if (g.indexOf(k) > 0) {
					h = [parseFloat(g), k]
				}
			});
			return h
		}
	});
	d.each(["backgroundColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "color", "outlineColor"], function (g, f) {
		d.fx.step[f] = function (h) {
			if (h.state == 0) {
				h.start = e(h.elem, f);
				h.end = b(h.end)
			}
			h.elem.style[f] = "rgb(" + [Math.max(Math.min(parseInt((h.pos * (h.end[0] - h.start[0])) + h.start[0], 10), 255), 0), Math.max(Math.min(parseInt((h.pos * (h.end[1] - h.start[1])) + h.start[1], 10), 255), 0), Math.max(Math.min(parseInt((h.pos * (h.end[2] - h.start[2])) + h.start[2], 10), 255), 0)].join(",") + ")"
		}
	});

	function b(g) {
		var f;
		if (g && g.constructor == Array && g.length == 3) {
			return g
		}
		if (f = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)) {
			return [parseInt(f[1], 10), parseInt(f[2], 10), parseInt(f[3], 10)]
		}
		if (f = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)) {
			return [parseFloat(f[1]) * 2.55, parseFloat(f[2]) * 2.55, parseFloat(f[3]) * 2.55]
		}
		if (f = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)) {
			return [parseInt(f[1], 16), parseInt(f[2], 16), parseInt(f[3], 16)]
		}
		if (f = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)) {
			return [parseInt(f[1] + f[1], 16), parseInt(f[2] + f[2], 16), parseInt(f[3] + f[3], 16)]
		}
		if (f = /rgba\(0, 0, 0, 0\)/.exec(g)) {
			return a.transparent
		}
		return a[d.trim(g).toLowerCase()]
	}

	function e(h, f) {
		var g;
		do {
			g = d.curCSS(h, f);
			if (g != "" && g != "transparent" || d.nodeName(h, "body")) {
				break
			}
			f = "backgroundColor"
		} while (h = h.parentNode);
		return b(g)
	}
	var a = {
		aqua: [0, 255, 255],
		azure: [240, 255, 255],
		beige: [245, 245, 220],
		black: [0, 0, 0],
		blue: [0, 0, 255],
		brown: [165, 42, 42],
		cyan: [0, 255, 255],
		darkblue: [0, 0, 139],
		darkcyan: [0, 139, 139],
		darkgrey: [169, 169, 169],
		darkgreen: [0, 100, 0],
		darkkhaki: [189, 183, 107],
		darkmagenta: [139, 0, 139],
		darkolivegreen: [85, 107, 47],
		darkorange: [255, 140, 0],
		darkorchid: [153, 50, 204],
		darkred: [139, 0, 0],
		darksalmon: [233, 150, 122],
		darkviolet: [148, 0, 211],
		fuchsia: [255, 0, 255],
		gold: [255, 215, 0],
		green: [0, 128, 0],
		indigo: [75, 0, 130],
		khaki: [240, 230, 140],
		lightblue: [173, 216, 230],
		lightcyan: [224, 255, 255],
		lightgreen: [144, 238, 144],
		lightgrey: [211, 211, 211],
		lightpink: [255, 182, 193],
		lightyellow: [255, 255, 224],
		lime: [0, 255, 0],
		magenta: [255, 0, 255],
		maroon: [128, 0, 0],
		navy: [0, 0, 128],
		olive: [128, 128, 0],
		orange: [255, 165, 0],
		pink: [255, 192, 203],
		purple: [128, 0, 128],
		violet: [128, 0, 128],
		red: [255, 0, 0],
		silver: [192, 192, 192],
		white: [255, 255, 255],
		yellow: [255, 255, 0],
		transparent: [255, 255, 255]
	};
	d.easing.jswing = d.easing.swing;
	d.extend(d.easing, {
		def: "easeOutQuad",
		swing: function (g, h, f, j, i) {
			return d.easing[d.easing.def](g, h, f, j, i)
		},
		easeInQuad: function (g, h, f, j, i) {
			return j * (h /= i) * h + f
		},
		easeOutQuad: function (g, h, f, j, i) {
			return -j * (h /= i) * (h - 2) + f
		},
		easeInOutQuad: function (g, h, f, j, i) {
			if ((h /= i / 2) < 1) {
				return j / 2 * h * h + f
			}
			return -j / 2 * ((--h) * (h - 2) - 1) + f
		},
		easeInCubic: function (g, h, f, j, i) {
			return j * (h /= i) * h * h + f
		},
		easeOutCubic: function (g, h, f, j, i) {
			return j * ((h = h / i - 1) * h * h + 1) + f
		},
		easeInOutCubic: function (g, h, f, j, i) {
			if ((h /= i / 2) < 1) {
				return j / 2 * h * h * h + f
			}
			return j / 2 * ((h -= 2) * h * h + 2) + f
		},
		easeInQuart: function (g, h, f, j, i) {
			return j * (h /= i) * h * h * h + f
		},
		easeOutQuart: function (g, h, f, j, i) {
			return -j * ((h = h / i - 1) * h * h * h - 1) + f
		},
		easeInOutQuart: function (g, h, f, j, i) {
			if ((h /= i / 2) < 1) {
				return j / 2 * h * h * h * h + f
			}
			return -j / 2 * ((h -= 2) * h * h * h - 2) + f
		},
		easeInQuint: function (g, h, f, j, i) {
			return j * (h /= i) * h * h * h * h + f
		},
		easeOutQuint: function (g, h, f, j, i) {
			return j * ((h = h / i - 1) * h * h * h * h + 1) + f
		},
		easeInOutQuint: function (g, h, f, j, i) {
			if ((h /= i / 2) < 1) {
				return j / 2 * h * h * h * h * h + f
			}
			return j / 2 * ((h -= 2) * h * h * h * h + 2) + f
		},
		easeInSine: function (g, h, f, j, i) {
			return -j * Math.cos(h / i * (Math.PI / 2)) + j + f
		},
		easeOutSine: function (g, h, f, j, i) {
			return j * Math.sin(h / i * (Math.PI / 2)) + f
		},
		easeInOutSine: function (g, h, f, j, i) {
			return -j / 2 * (Math.cos(Math.PI * h / i) - 1) + f
		},
		easeInExpo: function (g, h, f, j, i) {
			return (h == 0) ? f : j * Math.pow(2, 10 * (h / i - 1)) + f
		},
		easeOutExpo: function (g, h, f, j, i) {
			return (h == i) ? f + j : j * (-Math.pow(2, -10 * h / i) + 1) + f
		},
		easeInOutExpo: function (g, h, f, j, i) {
			if (h == 0) {
				return f
			}
			if (h == i) {
				return f + j
			}
			if ((h /= i / 2) < 1) {
				return j / 2 * Math.pow(2, 10 * (h - 1)) + f
			}
			return j / 2 * (-Math.pow(2, -10 * --h) + 2) + f
		},
		easeInCirc: function (g, h, f, j, i) {
			return -j * (Math.sqrt(1 - (h /= i) * h) - 1) + f
		},
		easeOutCirc: function (g, h, f, j, i) {
			return j * Math.sqrt(1 - (h = h / i - 1) * h) + f
		},
		easeInOutCirc: function (g, h, f, j, i) {
			if ((h /= i / 2) < 1) {
				return -j / 2 * (Math.sqrt(1 - h * h) - 1) + f
			}
			return j / 2 * (Math.sqrt(1 - (h -= 2) * h) + 1) + f
		},
		easeInElastic: function (g, i, f, m, l) {
			var j = 1.70158;
			var k = 0;
			var h = m;
			if (i == 0) {
				return f
			}
			if ((i /= l) == 1) {
				return f + m
			}
			if (!k) {
				k = l * 0.3
			}
			if (h < Math.abs(m)) {
				h = m;
				var j = k / 4
			} else {
				var j = k / (2 * Math.PI) * Math.asin(m / h)
			}
			return - (h * Math.pow(2, 10 * (i -= 1)) * Math.sin((i * l - j) * (2 * Math.PI) / k)) + f
		},
		easeOutElastic: function (g, i, f, m, l) {
			var j = 1.70158;
			var k = 0;
			var h = m;
			if (i == 0) {
				return f
			}
			if ((i /= l) == 1) {
				return f + m
			}
			if (!k) {
				k = l * 0.3
			}
			if (h < Math.abs(m)) {
				h = m;
				var j = k / 4
			} else {
				var j = k / (2 * Math.PI) * Math.asin(m / h)
			}
			return h * Math.pow(2, -10 * i) * Math.sin((i * l - j) * (2 * Math.PI) / k) + m + f
		},
		easeInOutElastic: function (g, i, f, m, l) {
			var j = 1.70158;
			var k = 0;
			var h = m;
			if (i == 0) {
				return f
			}
			if ((i /= l / 2) == 2) {
				return f + m
			}
			if (!k) {
				k = l * (0.3 * 1.5)
			}
			if (h < Math.abs(m)) {
				h = m;
				var j = k / 4
			} else {
				var j = k / (2 * Math.PI) * Math.asin(m / h)
			}
			if (i < 1) {
				return -0.5 * (h * Math.pow(2, 10 * (i -= 1)) * Math.sin((i * l - j) * (2 * Math.PI) / k)) + f
			}
			return h * Math.pow(2, -10 * (i -= 1)) * Math.sin((i * l - j) * (2 * Math.PI) / k) * 0.5 + m + f
		},
		easeInBack: function (g, h, f, k, j, i) {
			if (i == undefined) {
				i = 1.70158
			}
			return k * (h /= j) * h * ((i + 1) * h - i) + f
		},
		easeOutBack: function (g, h, f, k, j, i) {
			if (i == undefined) {
				i = 1.70158
			}
			return k * ((h = h / j - 1) * h * ((i + 1) * h + i) + 1) + f
		},
		easeInOutBack: function (g, h, f, k, j, i) {
			if (i == undefined) {
				i = 1.70158
			}
			if ((h /= j / 2) < 1) {
				return k / 2 * (h * h * (((i *= (1.525)) + 1) * h - i)) + f
			}
			return k / 2 * ((h -= 2) * h * (((i *= (1.525)) + 1) * h + i) + 2) + f
		},
		easeInBounce: function (g, h, f, j, i) {
			return j - d.easing.easeOutBounce(g, i - h, 0, j, i) + f
		},
		easeOutBounce: function (g, h, f, j, i) {
			if ((h /= i) < (1 / 2.75)) {
				return j * (7.5625 * h * h) + f
			} else {
				if (h < (2 / 2.75)) {
					return j * (7.5625 * (h -= (1.5 / 2.75)) * h + 0.75) + f
				} else {
					if (h < (2.5 / 2.75)) {
						return j * (7.5625 * (h -= (2.25 / 2.75)) * h + 0.9375) + f
					} else {
						return j * (7.5625 * (h -= (2.625 / 2.75)) * h + 0.984375) + f
					}
				}
			}
		},
		easeInOutBounce: function (g, h, f, j, i) {
			if (h < i / 2) {
				return d.easing.easeInBounce(g, h * 2, 0, j, i) * 0.5 + f
			}
			return d.easing.easeOutBounce(g, h * 2 - i, 0, j, i) * 0.5 + j * 0.5 + f
		}
	})
})(jQuery);;
var j = jQuery.noConflict();
var height = j(window).height() * 0.85;
var width = j(window).width() * 0.85;
(function ($) {
	j.effects.myslide = function (o) {
		return this.queue(function () {
			var el = j(this),
				props = ['position', 'top', 'left'];
			var mode = j.effects.setMode(el, o.options.mode || 'show');
			var direction = o.options.direction || 'up';
			j.effects.save(el, props);
			el.show();
			var ref = 'top';
			var motion = 'pos';
			var distance = el.outerHeight({
				margin: true
			});
			var wrapper = $.effects.createWrapper(el).css({
				overflow: 'hidden',
				position: 'relative',
				width: '100%',
				height: (mode == 'show' ? '1px' : distance + 1)
			});
			if (mode == 'show') el.css(ref, -distance);
			var animation = {};
			animation[ref] = (mode == 'show' ? '+=' : '-=') + distance;
			var wrapper_animation = {};
			wrapper_animation['height'] = (mode == 'show' ? '+=' : '-=') + distance;
			wrapper.animate(wrapper_animation, {
				queue: false,
				duration: o.duration,
				easing: o.options.easing
			});
			el.animate(animation, {
				queue: false,
				duration: o.duration,
				easing: o.options.easing,
				complete: function () {
					if (mode == 'hide') el.hide();
					if (j.browser.msie) {
						if (el.parent().attr('class') == 'ui-effects-wrapper') {
							el.parent().empty().append(el);
							var height = j(window).height() * 0.8;
							j("#vcna-careers a, #vcna-news a").fancybox({
								'frameWidth': 650,
								'frameHeight': height,
								'overlayShow': true,
								'overlayOpacity': 0.9,
								'hideOnContentClick': false
							});
						}
					} else {
						$.effects.removeWrapper(el);
					}
					$.effects.restore(el, props);
					if (o.callback) o.callback.apply(this, arguments);
					el.dequeue();
				}
			});
		});
	};
})(jQuery);
/* * FancyBox - simple and fancy jQuery plugin * Examples and documentation at: http://fancy.klade.lv/ * Version: 1.2.1 (13/03/2009) * Copyright (c) 2009 Janis Skarnelis * Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License * Requires: jQuery v1.3+;*/
(function ($) {
	$.fn.fixPNG = function () {
		return this.each(function () {
			var image = $(this).css('backgroundImage');
			if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) {
				image = RegExp.$1;
				$(this).css({
					'backgroundImage': 'none',
					'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=" + ($(this).css('backgroundRepeat') == 'no-repeat' ? 'crop' : 'scale') + ", src='" + image + "')"
				}).each(function () {
					var position = $(this).css('position');
					if (position != 'absolute' && position != 'relative') $(this).css('position', 'relative');
				});
			}
		});
	};
	var elem, opts, busy = false,
		imagePreloader = new Image,
		loadingTimer, loadingFrame = 1,
		imageRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i;
	var isIE = ($.browser.msie && parseInt($.browser.version.substr(0, 1)) < 8);
	$.fn.fancybox = function (settings) {
		settings = $.extend({},
		$.fn.fancybox.defaults, settings);
		var matchedGroup = this;

		function _initialize() {
			elem = this;
			opts = settings;
			_start();
			return false;
		};

		function _start() {
			if (busy) return;
			if ($.isFunction(opts.callbackOnStart)) {
				opts.callbackOnStart();
			}
			opts.itemArray = [];
			opts.itemCurrent = 0;
			if (settings.itemArray.length > 0) {
				opts.itemArray = settings.itemArray;
			} else {
				var item = {};
				if (!elem.rel || elem.rel == '') {
					var item = {
						href: elem.href,
						title: elem.title
					};
					if ($(elem).children("img:first").length) {
						item.orig = $(elem).children("img:first");
					}
					opts.itemArray.push(item);
				} else {
					var subGroup = $(matchedGroup).filter("a[rel=" + elem.rel + "]");
					var item = {};
					for (var i = 0; i < subGroup.length; i++) {
						item = {
							href: subGroup[i].href,
							title: subGroup[i].title
						};
						if ($(subGroup[i]).children("img:first").length) {
							item.orig = $(subGroup[i]).children("img:first");
						}
						opts.itemArray.push(item);
					}
					while (opts.itemArray[opts.itemCurrent].href != elem.href) {
						opts.itemCurrent++;
					}
				}
			}
			if (opts.overlayShow) {
				$('embed, object, select').css('visibility', 'hidden');
				$("#fancy_overlay").css('opacity', opts.overlayOpacity).show();
			}
			_change_item();
		};

		function _change_item() {
			$("#fancy_right, #fancy_left, #fancy_close, #fancy_title").hide();
			var href = opts.itemArray[opts.itemCurrent].href;
			if (href.match(/#/)) {
				var target = window.location.href.split('#')[0];
				target = href.replace(target, '');
				target = target.substr(target.indexOf('#'));
				_set_content('<div id="fancy_div">' + $(target).html() + '</div>', opts.frameWidth, opts.frameHeight);
			} else if (href.match(imageRegExp)) {
				imagePreloader = new Image;
				imagePreloader.src = href;
				if (imagePreloader.complete) {
					_proceed_image();
				} else {
					$.fn.fancybox.showLoading();
					$(imagePreloader).unbind().bind('load', function () {
						$(".fancy_loading").hide();
						_proceed_image();
					});
				}
			} else if (href.match("iframe") || elem.className.indexOf("iframe") >= 0) {
				_set_content('<iframe id="fancy_frame" onload="jQuery.fn.fancybox.showIframe()" name="fancy_iframe' + Math.round(Math.random() * 1000) + '" frameborder="0" hspace="0" src="' + href + '"></iframe>', opts.frameWidth, opts.frameHeight);
			} else {
				$.get(href, function (data) {
					_set_content('<div id="fancy_ajax">' + data + '</div>', opts.frameWidth, opts.frameHeight);
				});
			}
		};

		function _proceed_image() {
			if (opts.imageScale) {
				var w = $.fn.fancybox.getViewport();
				var r = Math.min(Math.min(w[0] - 36, imagePreloader.width) / imagePreloader.width, Math.min(w[1] - 60, imagePreloader.height) / imagePreloader.height);
				var width = Math.round(r * imagePreloader.width);
				var height = Math.round(r * imagePreloader.height);
			} else {
				var width = imagePreloader.width;
				var height = imagePreloader.height;
			}
			_set_content('<img alt="" id="fancy_img" src="' + imagePreloader.src + '" />', width, height);
		};

		function _preload_neighbor_images() {
			if ((opts.itemArray.length - 1) > opts.itemCurrent) {
				var href = opts.itemArray[opts.itemCurrent + 1].href;
				if (href.match(imageRegExp)) {
					objNext = new Image();
					objNext.src = href;
				}
			}
			if (opts.itemCurrent > 0) {
				var href = opts.itemArray[opts.itemCurrent - 1].href;
				if (href.match(imageRegExp)) {
					objNext = new Image();
					objNext.src = href;
				}
			}
		};

		function _set_content(value, width, height) {
			busy = true;
			var pad = opts.padding;
			if (isIE) {
				$("#fancy_content")[0].style.removeExpression("height");
				$("#fancy_content")[0].style.removeExpression("width");
			}
			if (pad > 0) {
				width += pad * 2;
				height += pad * 2;
				$("#fancy_content").css({
					'top': pad + 'px',
					'right': pad + 'px',
					'bottom': pad + 'px',
					'left': pad + 'px',
					'width': 'auto',
					'height': 'auto'
				});
				if (isIE) {
					$("#fancy_content")[0].style.setExpression('height', '(this.parentNode.clientHeight - ' + pad * 2 + ')');
					$("#fancy_content")[0].style.setExpression('width', '(this.parentNode.clientWidth - ' + pad * 2 + ')');
				}
			} else {
				$("#fancy_content").css({
					'top': 0,
					'right': 0,
					'bottom': 0,
					'left': 0,
					'width': '100%',
					'height': '100%'
				});
			}
			if ($("#fancy_outer").is(":visible") && width == $("#fancy_outer").width() && height == $("#fancy_outer").height()) {
				$("#fancy_content").fadeOut("fast", function () {
					$("#fancy_content").empty().append($(value)).fadeIn("normal", function () {
						_finish();
					});
				});
				return;
			}
			var w = $.fn.fancybox.getViewport();
			var itemLeft = (width + 36) > w[0] ? w[2] : (w[2] + Math.round((w[0] - width - 36) / 2));
			var itemTop = (height + 50) > w[1] ? w[3] : (w[3] + Math.round((w[1] - height - 50) / 2));
			var itemOpts = {
				'left': itemLeft,
				'top': itemTop,
				'width': width + 'px',
				'height': height + 'px'
			};
			if ($("#fancy_outer").is(":visible")) {
				$("#fancy_content").fadeOut("normal", function () {
					$("#fancy_content").empty();
					$("#fancy_outer").animate(itemOpts, opts.zoomSpeedChange, opts.easingChange, function () {
						$("#fancy_content").append($(value)).fadeIn("normal", function () {
							_finish();
						});
					});
				});
			} else {
				if (opts.zoomSpeedIn > 0 && opts.itemArray[opts.itemCurrent].orig !== undefined) {
					$("#fancy_content").empty().append($(value));
					var orig_item = opts.itemArray[opts.itemCurrent].orig;
					var orig_pos = $.fn.fancybox.getPosition(orig_item);
					$("#fancy_outer").css({
						'left': (orig_pos.left - 18) + 'px',
						'top': (orig_pos.top - 18) + 'px',
						'width': $(orig_item).width(),
						'height': $(orig_item).height()
					});
					if (opts.zoomOpacity) {
						itemOpts.opacity = 'show';
					}
					$("#fancy_outer").animate(itemOpts, opts.zoomSpeedIn, opts.easingIn, function () {
						_finish();
					});
				} else {
					$("#fancy_content").hide().empty().append($(value)).show();
					$("#fancy_outer").css(itemOpts).fadeIn("normal", function () {
						_finish();
					});
				}
			}
		};

		function _set_navigation() {
			if (opts.itemCurrent != 0) {
				$("#fancy_left, #fancy_left_ico").unbind().bind("click", function (e) {
					e.stopPropagation();
					opts.itemCurrent--;
					_change_item();
					return false;
				});
				$("#fancy_left").show();
			}
			if (opts.itemCurrent != (opts.itemArray.length - 1)) {
				$("#fancy_right, #fancy_right_ico").unbind().bind("click", function (e) {
					e.stopPropagation();
					opts.itemCurrent++;
					_change_item();
					return false;
				});
				$("#fancy_right").show();
			}
		};

		function _finish() {
			_set_navigation();
			_preload_neighbor_images();
			$(document).keydown(function (e) {
				if (e.keyCode == 27) {
					$.fn.fancybox.close();
					$(document).unbind("keydown");
				} else if (e.keyCode == 37 && opts.itemCurrent != 0) {
					opts.itemCurrent--;
					_change_item();
					$(document).unbind("keydown");
				} else if (e.keyCode == 39 && opts.itemCurrent != (opts.itemArray.length - 1)) {
					opts.itemCurrent++;
					_change_item();
					$(document).unbind("keydown");
				}
			});
			if (opts.centerOnScroll) {
				$(window).bind("resize scroll", $.fn.fancybox.scrollBox);
			} else {
				$("div#fancy_outer").css("position", "absolute");
			}
			if (opts.hideOnContentClick) {
				$("#fancy_wrap").click($.fn.fancybox.close);
			}
			$("#fancy_overlay, #fancy_close").bind("click", $.fn.fancybox.close);
			$("#fancy_close").show();
			if (opts.itemArray[opts.itemCurrent].title !== undefined && opts.itemArray[opts.itemCurrent].title.length > 0) {
				$('#fancy_title div').html(opts.itemArray[opts.itemCurrent].title);
				$('#fancy_title').show();
			}
			if (opts.overlayShow) {
				$('embed, object, select', $('#fancy_content')).css('visibility', 'visible');
			}
			if ($.isFunction(opts.callbackOnShow)) {
				opts.callbackOnShow();
			}
			busy = false;
		};
		return this.unbind('click').click(_initialize);
	};
	$.fn.fancybox.scrollBox = function () {
		var pos = $.fn.fancybox.getViewport();
		$("#fancy_outer").css('left', (($("#fancy_outer").width() + 36) > pos[0] ? pos[2] : pos[2] + Math.round((pos[0] - $("#fancy_outer").width() - 36) / 2)));
		$("#fancy_outer").css('top', (($("#fancy_outer").height() + 50) > pos[1] ? pos[3] : pos[3] + Math.round((pos[1] - $("#fancy_outer").height() - 50) / 2)));
	};
	$.fn.fancybox.getNumeric = function (el, prop) {
		return parseInt($.curCSS(el.jquery ? el[0] : el, prop, true)) || 0;
	};
	$.fn.fancybox.getPosition = function (el) {
		var pos = el.offset();
		pos.top += $.fn.fancybox.getNumeric(el, 'paddingTop');
		pos.top += $.fn.fancybox.getNumeric(el, 'borderTopWidth');
		pos.left += $.fn.fancybox.getNumeric(el, 'paddingLeft');
		pos.left += $.fn.fancybox.getNumeric(el, 'borderLeftWidth');
		return pos;
	};
	$.fn.fancybox.showIframe = function () {
		$(".fancy_loading").hide();
		$("#fancy_frame").show();
	};
	$.fn.fancybox.getViewport = function () {
		return [$(window).width(), $(window).height(), $(document).scrollLeft(), $(document).scrollTop()];
	};
	$.fn.fancybox.animateLoading = function () {
		if (!$("#fancy_loading").is(':visible')) {
			clearInterval(loadingTimer);
			return;
		}
		$("#fancy_loading > div").css('top', (loadingFrame * -40) + 'px');
		loadingFrame = (loadingFrame + 1) % 12;
	};
	$.fn.fancybox.showLoading = function () {
		clearInterval(loadingTimer);
		var pos = $.fn.fancybox.getViewport();
		$("#fancy_loading").css({
			'left': ((pos[0] - 40) / 2 + pos[2]),
			'top': ((pos[1] - 40) / 2 + pos[3])
		}).show();
		$("#fancy_loading").bind('click', $.fn.fancybox.close);
		loadingTimer = setInterval($.fn.fancybox.animateLoading, 66);
	};
	$.fn.fancybox.close = function () {
		busy = true;
		$(imagePreloader).unbind();
		$("#fancy_overlay, #fancy_close").unbind();
		if (opts.hideOnContentClick) {
			$("#fancy_wrap").unbind();
		}
		$("#fancy_close, .fancy_loading, #fancy_left, #fancy_right, #fancy_title").hide();
		if (opts.centerOnScroll) {
			$(window).unbind("resize scroll");
		}
		__cleanup = function () {
			$("#fancy_overlay, #fancy_outer").hide();
			if (opts.centerOnScroll) {
				$(window).unbind("resize scroll");
			}
			$('embed, object, select').css('visibility', 'visible');
			if ($.isFunction(opts.callbackOnClose)) {
				opts.callbackOnClose();
			}
			busy = false;
		};
		if ($("#fancy_outer").is(":visible") !== false) {
			if (opts.zoomSpeedOut > 0 && opts.itemArray[opts.itemCurrent].orig !== undefined) {
				var orig_item = opts.itemArray[opts.itemCurrent].orig;
				var orig_pos = $.fn.fancybox.getPosition(orig_item);
				var itemOpts = {
					'left': (orig_pos.left - 18) + 'px',
					'top': (orig_pos.top - 18) + 'px',
					'width': $(orig_item).width(),
					'height': $(orig_item).height()
				};
				if (opts.zoomOpacity) {
					itemOpts.opacity = 'hide';
				}
				$("#fancy_outer").stop(false, true).animate(itemOpts, opts.zoomSpeedOut, opts.easingOut, __cleanup);
			} else {
				$("#fancy_outer").stop(false, true).fadeOut("fast", __cleanup);
			}
		} else {
			__cleanup();
		}
		return false;
	};
	$.fn.fancybox.build = function () {
		var html = '';
		html += '<div id="fancy_overlay"></div>';
		html += '<div id="fancy_wrap">';
		html += '<div class="fancy_loading" id="fancy_loading"><div></div></div>';
		html += '<div id="fancy_outer">';
		html += '<div id="fancy_inner">';
		html += '<div id="fancy_close"></div>';
		html += '<div id="fancy_bg"><div class="fancy_bg fancy_bg_n"></div><div class="fancy_bg fancy_bg_ne"></div><div class="fancy_bg fancy_bg_e"></div><div class="fancy_bg fancy_bg_se"></div><div class="fancy_bg fancy_bg_s"></div><div class="fancy_bg fancy_bg_sw"></div><div class="fancy_bg fancy_bg_w"></div><div class="fancy_bg fancy_bg_nw"></div></div>';
		html += '<a href="javascript:;" id="fancy_left"><span class="fancy_ico" id="fancy_left_ico"></span></a><a href="javascript:;" id="fancy_right"><span class="fancy_ico" id="fancy_right_ico"></span></a>';
		html += '<div id="fancy_content"></div>';
		html += '<div id="fancy_title"></div>';
		html += '</div>';
		html += '</div>';
		html += '</div>';
		$(html).appendTo("body");
		$('<table cellspacing="0" cellpadding="0" border="0"><tr><td class="fancy_title" id="fancy_title_left"></td><td class="fancy_title" id="fancy_title_main"><div></div></td><td class="fancy_title" id="fancy_title_right"></td></tr></table>').appendTo('#fancy_title');
		if (isIE) {
			$("#fancy_inner").prepend('<iframe class="fancy_bigIframe" scrolling="no" frameborder="0"></iframe>');
			$("#fancy_close, .fancy_bg, .fancy_title, .fancy_ico").fixPNG();
		}
	};
	$.fn.fancybox.defaults = {
		padding: 10,
		imageScale: true,
		zoomOpacity: false,
		zoomSpeedIn: 0,
		zoomSpeedOut: 0,
		zoomSpeedChange: 300,
		easingIn: 'swing',
		easingOut: 'swing',
		easingChange: 'swing',
		frameWidth: 425,
		frameHeight: 355,
		overlayShow: true,
		overlayOpacity: 0.3,
		hideOnContentClick: true,
		centerOnScroll: true,
		itemArray: [],
		callbackOnStart: null,
		callbackOnShow: null,
		callbackOnClose: null
	};
	$(document).ready(function () {
		$.fn.fancybox.build();
	});
})(jQuery);
j(function () {
	//var locationsWide = '';
	//var locationsThin = '';
	//var locationsThin = '<br /><br /><a href="http://cd.vcnainc.com/map?h=' + height + '&w=' + width + '&iframe" class="map" id="vcna-link-locations">Locations map</a>';
	//var thinClose = ' class="vcna-thin"';
	// if (width > 710) {
		locationsWide = ' &nbsp; | &nbsp; <a href="http://cd.vcnainc.com/map?h=' + height + '&w=' + width + '&iframe" class="map" id="vcna-link-locations2">Locations</a>';
		locationsThin = '';
		thinClose = '';
	// }
	j("body").prepend('<div id="vcna-top-header"><div id="vcna-top-bar"><div id="vcna-top-logo"><img src="http://cd.vcnainc.com/images/vcna-small-logo.png" alt="Votorantim Cement North America" width="40" height="13" /></div><div id="vcna-top-bar-links"><a href="#about-vcna" id="vcna-link-about">About Votorantim Cement North America</a> &nbsp; | &nbsp; <a href="#vcna-news" id="vcna-link-news">News</a> &nbsp; | &nbsp; <a href="#vcna-careers" id="vcna-link-careers">Careers</a>' + locationsWide + '&nbsp; | &nbsp; <a href="https://secure.ethicspoint.com/domain/media/en/gui/23368/index.html" target="_blank" id="vcna-code">Code of Conduct</a></div><div id="vcna-partner-sites-dropdown">VCNA Business Units</div><div id="vc"><a href="http://www.vcimentos.com.br/htms-enu/?"><img src="http://cd.vcnainc.com/images/vc-logo-small.png" alt="Votorantim Cement" width="72" height="16" /></a></div></div><div id="vcna-dropdown" style="display:none;"><div style="display:relative"><div id="vcna-wrapper"><div id="vcna-left-logo"><img src="http://cd.vcnainc.com/images/vcna-large-logo.png" alt="Votorantim Cement North America" width="200" height="67" /></div><div id="vcna-news"><div id="vcna-news-col2"></div><div id="vcna-news-col3"></div></div><div id="vcna-careers"><div id="vcna-careers-col2"></div><div id="vcna-careers-col3"></div></div><div id="vcna-about"><p><br /><img src="http://cd.vcnainc.com/images/loading.gif" alt="" width="31" height="31" /></p></div><div id="vcna-close"' + thinClose + '><a href="#vcna-close" id="vcna-link-close"><img src="http://cd.vcnainc.com/images/close-button.png" alt="close" width="39" height="15" /></a></div></div></div></div><div id="vcna-partner-sites"><div><ul></ul></div></div></div>');
	var kkeys = [],
		code = "38,38,40,40,37,39,37,39,66,65",
		kdone = false;
	j(document).keydown(function (e) {
		if (!kdone) {
			kkeys.push(e.keyCode || e.charCode);
			if (kkeys.toString().indexOf(code) >= 0) {
				window.location = 'http://www.' + createdBy + '.com';
				kdone = true;
			}
		}
	});
	var site = location.host.replace(/^www\./, '');
	var display = false;
	var page = document.baseURI || document.URL;
	page = page.replace(/aspx/i, '');
	page = page.replace(/asp/i, '');
	page = page.replace(/php/i, '');
	page = page.replace(/html/i, '');
	page = page.replace(/htm/i, '');
	page = page.replace(/default2\./i, '');
	page = page.replace(/cbm\./i, '');
	page = page.replace(/index2\./i, '');
	page = page.replace(/default\./i, '');
	page = page.replace(/index\./i, '');
	page = page.replace(/home\./i, '');
	var dropdown = setTimeout(function () {
		j('#vcna-dropdown').toggle('myslide', {}, 2000);
		j('#vcna-link-about, #vcna-link-news, #vcna-link-careers').removeClass('vcna-active');
	}, 12000);
	j.getJSON("http://cd.vcnainc.com/load-misc.php?site=" + site + "&jsoncallback=?", function (data) {
		j.each(data.misc, function (i, misc) {
			if (misc.section == 'about') {
				j("#vcna-about").empty();
				var row = "<p>" + misc.copy + locationsThin + "</p>";
				j("#vcna-about").append(row);
				j("#vcna-link-locations").fancybox({
					'frameWidth': width,
					'frameHeight': height,
					'overlayShow': true,
					'overlayOpacity': 0.9,
					'hideOnContentClick': false
				});
			}
		});
		j.each(data.logos, function (i, logo) {
			j("#vcna-about").append("<a href=\"" + logo.website + "\"><img src=\"http://cd.vcnainc.com/images/companies/thumbnails/" + logo.logo + "\" alt=\"" + logo.name + "\" /></a>");
			j("#vcna-partner-sites ul").append("<li><a href=\"" + logo.website + "\">" + logo.name + "</a></li>");
			var tmp = logo.website;
			tmp = tmp.replace(/www\./, '');
			if (logo.website.toLowerCase() == page.toLowerCase() || tmp.toLowerCase() == page.toLowerCase()) {
				display = true;
			}
		});
		//if (width > 710) {
			j("#vcna-about").append('<a href="http://cd.vcnainc.com/map?h=' + height + '&w=' + width + '&iframe" id="test2" class="map"><img src=\"http://cd.vcnainc.com/images/vcna-locations.png\" /></a>');
		//}
		j('.map').fancybox({
			'frameWidth': width,
			'frameHeight': height,
			'overlayShow': true,
			'overlayOpacity': 0.9,
			'hideOnContentClick': false
		});
		if (j.browser.msie) {
			j('.map').live('click', function () {
				j(this).fancybox({
					'frameWidth': width,
					'frameHeight': height,
					'overlayShow': true,
					'overlayOpacity': 0.9,
					'hideOnContentClick': false
				}).click();;
				return false;
			});
		}
		j.each(data.news, function (i, news) {
			if (i < 2) {
				if (i == 0) {
					var row = "<p><a href=\"http://cd.vcnainc.com/news/" + news.id + "?iframe\"><img src=\"http://cd.vcnainc.com/images/news/thumbnails/" + news.thumbnail + "\" alt=\"\" width=\"60\" /></a><a href=\"http://cd.vcnainc.com/news/" + news.id + "?iframe\">" + news.title + "</a><br />" + news.short + "</p>";
				} else {
					var row = "<p><a href=\"http://cd.vcnainc.com/news/" + news.id + "?iframe\">" + news.title + "</a><br />" + news.short + "</p>";
				}
				j("#vcna-news-col2").append(row);
			} else {
				var row = "<a href=\"http://cd.vcnainc.com/news/" + news.id + "?iframe\">" + news.title + "</a><br />";
				j("#vcna-news-col3").append(row);
			}
		});
		var row = "<br /><a href=\"http://cd.vcnainc.com/news?iframe\">Archives</a>";
		j("#vcna-news-col3").append(row);
		j.each(data.careers, function (i, career) {
			var row = "<p><a href=\"http://cd.vcnainc.com/career/" + career.id + "?iframe\">" + career.jobTitle + "</a><br />" + career.location + "</p>";
			if (i < 3) {
				j("#vcna-careers-col2").append(row);
			} else {
				j("#vcna-careers-col3").append(row);
			}
		});
		var row = "<br /><a href=\"http://cd.vcnainc.com/careers?iframe\">View all VCNA job postings and search</a>";
		j("#vcna-careers-col3").append(row);
		j("#vcna-careers a, #vcna-news a").fancybox({
			'frameWidth': 650,
			'frameHeight': height,
			'overlayShow': true,
			'overlayOpacity': 0.9,
			'hideOnContentClick': false
		});
		if (display == true) {
			j('#vcna-dropdown').toggle('myslide', {}, 2000);
			j('#vcna-link-about').addClass('vcna-active');
		} else {
			j('#vcna-link-about, #vcna-link-news, #vcna-link-careers').removeClass('vcna-active');
			clearTimeout(dropdown);
		}
	});
	j('#vcna-link-close').live("click", function () {
		clearTimeout(dropdown);
		j('#vcna-dropdown').toggle('myslide', {}, 1200);
		j('#vcna-link-about, #vcna-link-news, #vcna-link-careers').removeClass('vcna-active');
		return false;
	});
	j('#vcna-link-about, #vcna-link-news, #vcna-link-careers').click(function () {
		j('#vcna-link-about, #vcna-link-news, #vcna-link-careers').removeClass('vcna-active');
		clearTimeout(dropdown);
		if (j('#vcna-dropdown').is(':hidden') == true) {
			j('#vcna-dropdown').toggle('myslide', {}, 1200);
			j('#' + this.id).addClass('vcna-active');
		} else {
			if (j('#' + this.id.replace(/-link/, '')).is(':visible') == true) {
				j('#vcna-dropdown').toggle('myslide', {}, 1200);
			}
		}
		if (j('#' + this.id.replace(/-link/, '')).is(':visible') == false) {
			j('#vcna-about, #vcna-news, #vcna-careers').hide();
			j('#' + this.id.replace(/-link/, '')).show(250);
			j('#' + this.id).addClass('vcna-active');
		}
		return false;
	});
	j('#vcna-partner-sites-dropdown').click(function () {
		clearTimeout(dropdown);
		j('#vcna-partner-sites').slideToggle(250);
	});
	j('#vcna-partner-sites').mouseleave(function () {
		j('#vcna-partner-sites').hide();
	});
});