/*!
* Modernizr v1.6
* http://www.modernizr.com
*
* Developed by:
* - Faruk Ates  http://farukat.es/
* - Paul Irish  http://paulirish.com/
*
* Copyright (c) 2009-2010
* Dual-licensed under the BSD or MIT licenses.
* http://www.modernizr.com/license/
*/
window.Modernizr = function (X, aa, B) { function I(e, d) { return ("" + e).indexOf(d) !== -1 } function J(e, d) { for (var f in e) { if (W[e[f]] !== B && (!d || d(e[f], C))) { return true } } } function U(e, d) { var f = e.charAt(0).toUpperCase() + e.substr(1); f = (e + " " + A.join(f + " ") + f).split(" "); return !!J(f, d) } function a() { Z.input = function (e) { for (var d = 0, f = e.length; d < f; d++) { r[e[d]] = !!(e[d] in Y) } return r } ("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")); Z.inputtypes = function (e) { for (var d = 0, h, f = e.length; d < f; d++) { Y.setAttribute("type", e[d]); if (h = Y.type !== "text") { Y.value = p; if (/^range$/.test(Y.type) && Y.style.WebkitAppearance !== B) { V.appendChild(Y); h = aa.defaultView; h = h.getComputedStyle && h.getComputedStyle(Y, null).WebkitAppearance !== "textfield" && Y.offsetHeight !== 0; V.removeChild(Y) } else { /^(search|tel)$/.test(Y.type) || (h = /^(url|email)$/.test(Y.type) ? Y.checkValidity && Y.checkValidity() === false : Y.value != p) } } m[e[d]] = !!h } return m } ("search tel url email datetime date month week time datetime-local number range color".split(" ")) } var Z = {}, V = aa.documentElement, C = aa.createElement("modernizr"), W = C.style, Y = aa.createElement("input"), p = ":)", k = Object.prototype.toString, K = " -webkit- -moz- -o- -ms- -khtml- ".split(" "), A = "Webkit Moz O ms Khtml".split(" "), z = { svg: "http://www.w3.org/2000/svg" }, ab = {}, m = {}, r = {}, g = [], x, c = function (e) { var d = document.createElement("style"), f = aa.createElement("div"); d.textContent = e + "{#modernizr{height:3px}}"; (aa.head || aa.getElementsByTagName("head")[0]).appendChild(d); f.id = "modernizr"; V.appendChild(f); e = f.offsetHeight === 3; d.parentNode.removeChild(d); f.parentNode.removeChild(f); return !!e }, T = function () { var d = { select: "input", change: "input", submit: "form", reset: "form", error: "img", load: "img", abort: "img" }; return function (e, h) { h = h || document.createElement(d[e] || "div"); e = "on" + e; var f = e in h; if (!f) { h.setAttribute || (h = document.createElement("div")); if (h.setAttribute && h.removeAttribute) { h.setAttribute(e, ""); f = typeof h[e] == "function"; if (typeof h[e] != "undefined") { h[e] = B } h.removeAttribute(e) } } return f } } (), y = {}.hasOwnProperty, b; b = typeof y !== "undefined" && typeof y.call !== "undefined" ? function (e, d) { return y.call(e, d) } : function (e, d) { return d in e && typeof e.constructor.prototype[d] === "undefined" }; ab.flexbox = function () { var e = aa.createElement("div"), d = aa.createElement("div"); (function (i, l, j, h) { l += ":"; i.style.cssText = (l + K.join(j + ";" + l)).slice(0, -l.length) + (h || "") })(e, "display", "box", "width:42px;padding:0;"); d.style.cssText = K.join("box-flex:1;") + "width:10px;"; e.appendChild(d); V.appendChild(e); var f = d.offsetWidth === 42; e.removeChild(d); V.removeChild(e); return f }; ab.canvas = function () { var d = aa.createElement("canvas"); return !!(d.getContext && d.getContext("2d")) }; ab.canvastext = function () { return !!(Z.canvas && typeof aa.createElement("canvas").getContext("2d").fillText == "function") }; ab.webgl = function () { var e = aa.createElement("canvas"); try { if (e.getContext("webgl")) { return true } } catch (d) { } try { if (e.getContext("experimental-webgl")) { return true } } catch (f) { } return false }; ab.touch = function () { return "ontouchstart" in X || c("@media (" + K.join("touch-enabled),(") + "modernizr)") }; ab.geolocation = function () { return !!navigator.geolocation }; ab.postmessage = function () { return !!X.postMessage }; ab.websqldatabase = function () { return !!X.openDatabase }; ab.indexedDB = function () { for (var e = -1, d = A.length; ++e < d; ) { var f = A[e].toLowerCase(); if (X[f + "_indexedDB"] || X[f + "IndexedDB"]) { return true } } return false }; ab.hashchange = function () { return T("hashchange", X) && (document.documentMode === B || document.documentMode > 7) }; ab.history = function () { return !!(X.history && history.pushState) }; ab.draganddrop = function () { return T("drag") && T("dragstart") && T("dragenter") && T("dragover") && T("dragleave") && T("dragend") && T("drop") }; ab.websockets = function () { return "WebSocket" in X }; ab.rgba = function () { W.cssText = "background-color:rgba(150,255,150,.5)"; return I(W.backgroundColor, "rgba") }; ab.hsla = function () { W.cssText = "background-color:hsla(120,40%,100%,.5)"; return I(W.backgroundColor, "rgba") || I(W.backgroundColor, "hsla") }; ab.multiplebgs = function () { W.cssText = "background:url(//:),url(//:),red url(//:)"; return /(url\s*\(.*?){3}/.test(W.background) }; ab.backgroundsize = function () { return U("backgroundSize") }; ab.borderimage = function () { return U("borderImage") }; ab.borderradius = function () { return U("borderRadius", "", function (d) { return I(d, "orderRadius") }) }; ab.boxshadow = function () { return U("boxShadow") }; ab.textshadow = function () { return aa.createElement("div").style.textShadow === "" }; ab.opacity = function () { var d = K.join("opacity:.5;") + ""; W.cssText = d; return I(W.opacity, "0.5") }; ab.cssanimations = function () { return U("animationName") }; ab.csscolumns = function () { return U("columnCount") }; ab.cssgradients = function () { var d = ("background-image:" + K.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:") + K.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0, -17); W.cssText = d; return I(W.backgroundImage, "gradient") }; ab.cssreflections = function () { return U("boxReflect") }; ab.csstransforms = function () { return !!J(["transformProperty", "WebkitTransform", "MozTransform", "OTransform", "msTransform"]) }; ab.csstransforms3d = function () { var d = !!J(["perspectiveProperty", "WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]); if (d) { d = c("@media (" + K.join("transform-3d),(") + "modernizr)") } return d }; ab.csstransitions = function () { return U("transitionProperty") }; ab.fontface = function () { var e, d = aa.head || aa.getElementsByTagName("head")[0] || V, h = aa.createElement("style"), f = aa.implementation || { hasFeature: function () { return false } }; h.type = "text/css"; d.insertBefore(h, d.firstChild); e = h.sheet || h.styleSheet; d = f.hasFeature("CSS2", "") ? function (l) { if (!(e && l)) { return false } var j = false; try { e.insertRule(l, 0); j = !/unknown/i.test(e.cssRules[0].cssText); e.deleteRule(e.cssRules.length - 1) } catch (i) { } return j } : function (i) { if (!(e && i)) { return false } e.cssText = i; return e.cssText.length !== 0 && !/unknown/i.test(e.cssText) && e.cssText.replace(/\r+|\n+/g, "").indexOf(i.split(" ")[0]) === 0 }; Z._fontfaceready = function (i) { i(Z.fontface) }; return d('@font-face { font-family: "font"; src: "font.ttf"; }') }; ab.video = function () { var e = aa.createElement("video"), d = !!e.canPlayType; if (d) { d = new Boolean(d); d.ogg = e.canPlayType('video/ogg; codecs="theora"'); d.h264 = e.canPlayType('video/mp4; codecs="avc1.42E01E"') || e.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'); d.webm = e.canPlayType('video/webm; codecs="vp8, vorbis"') } return d }; ab.audio = function () { var e = aa.createElement("audio"), d = !!e.canPlayType; if (d) { d = new Boolean(d); d.ogg = e.canPlayType('audio/ogg; codecs="vorbis"'); d.mp3 = e.canPlayType("audio/mpeg;"); d.wav = e.canPlayType('audio/wav; codecs="1"'); d.m4a = e.canPlayType("audio/x-m4a;") || e.canPlayType("audio/aac;") } return d }; ab.localstorage = function () { try { return "localStorage" in X && X.localStorage !== null } catch (d) { return false } }; ab.sessionstorage = function () { try { return "sessionStorage" in X && X.sessionStorage !== null } catch (d) { return false } }; ab.webWorkers = function () { return !!X.Worker }; ab.applicationcache = function () { return !!X.applicationCache }; ab.svg = function () { return !!aa.createElementNS && !!aa.createElementNS(z.svg, "svg").createSVGRect }; ab.inlinesvg = function () { var d = document.createElement("div"); d.innerHTML = "<svg/>"; return (d.firstChild && d.firstChild.namespaceURI) == z.svg }; ab.smil = function () { return !!aa.createElementNS && /SVG/.test(k.call(aa.createElementNS(z.svg, "animate"))) }; ab.svgclippaths = function () { return !!aa.createElementNS && /SVG/.test(k.call(aa.createElementNS(z.svg, "clipPath"))) }; for (var t in ab) { if (b(ab, t)) { x = t.toLowerCase(); Z[x] = ab[t](); g.push((Z[x] ? "" : "no-") + x) } } Z.input || a(); Z.crosswindowmessaging = Z.postmessage; Z.historymanagement = Z.history; Z.addTest = function (e, d) { e = e.toLowerCase(); if (!Z[e]) { d = !!d(); V.className += " " + (d ? "" : "no-") + e; Z[e] = d; return Z } }; W.cssText = ""; C = Y = null; X.attachEvent && function () { var d = aa.createElement("div"); d.innerHTML = "<elem></elem>"; return d.childNodes.length !== 1 } () && function (u, s) { function o(D) { for (var w = -1; ++w < d; ) { D.createElement(l[w]) } } function j(G, w) { for (var E = G.length, F = -1, H, D = []; ++F < E; ) { H = G[F]; w = H.media || w; D.push(j(H.imports, w)); D.push(H.cssText) } return D.join("") } var l = "abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"), d = l.length, v = RegExp("<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)", "gi"), i = RegExp("\\b(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)\\b(?!.*[;}])", "gi"), n = s.createDocumentFragment(), h = s.documentElement, q = h.firstChild, f = s.createElement("style"), e = s.createElement("body"); f.media = "all"; o(s); o(n); u.attachEvent("onbeforeprint", function () { for (var F = -1; ++F < d; ) { for (var w = s.getElementsByTagName(l[F]), D = w.length, E = -1; ++E < D; ) { if (w[E].className.indexOf("iepp_") < 0) { w[E].className += " iepp_" + l[F] } } } q.insertBefore(f, q.firstChild); f.styleSheet.cssText = j(s.styleSheets, "all").replace(i, ".iepp_$1"); n.appendChild(s.body); h.appendChild(e); e.innerHTML = n.firstChild.innerHTML.replace(v, "<$1bdo") }); u.attachEvent("onafterprint", function () { e.innerHTML = ""; h.removeChild(e); q.removeChild(f); h.appendChild(n.firstChild) }) } (this, document); Z._enableHTML5 = true; Z._version = "1.6"; V.className = V.className.replace(/\bno-js\b/, "") + " js"; V.className += " " + g.join(" "); return Z } (this, this.document);
/*!
Watermark v3.0.6 (June 21, 2010) plugin for jQuery
http://jquery-watermark.googlecode.com/
Copyright (c) 2009-2010 Todd Northrop
http://www.speednet.biz/
Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function (O) { var E = "function", G = "password", M = "maxLength", K = "type", N = true, P = "", L = false, w = "watermark", v, D = w, H = "watermarkClass", z = "watermarkFocus", F = "watermarkSubmit", B = "watermarkMaxLength", I = "watermarkPassword", J = "watermarkText", x = ":data(" + D + ")", C = ":text,:password,:search,textarea", A = ["Page_ClientValidate"], y = L; O.extend(O.expr[":"], { search: function (a) { return "search" === (a.type || P) }, data: function (c, a, b) { var e, j = /^((?:[^=!^$*]|[!^$*](?!=))+)(?:([!^$*]?=)(.*))?$/.exec(b[3]); if (j) { e = O(c).data(j[1]); if (e !== v) { if (j[2]) { e = P + e; switch (j[2]) { case "=": return e == j[3]; case "!=": return e != j[3]; case "^=": return e.slice(0, j[3].length) == j[3]; case "$=": return e.slice(-j[3].length) == j[3]; case "*=": return e.indexOf(j[3]) !== -1 } } return N } } return L } }); O.watermark = { version: "3.0.6", options: { className: w, useNative: N }, hide: function (b) { O(b).filter(x).each(function () { O.watermark._hide(O(this)) }) }, _hide: function (d, p) { var a = d.val() || P, g = d.data(J) || P, f = d.data(B) || 0, h = d.data(H); if (g.length && a == g) { d.val(P); if (d.data(I)) { if ((d.attr(K) || P) === "text") { var i = d.data(I) || [], o = d.parent() || []; if (i.length && o.length) { o[0].removeChild(d[0]); o[0].appendChild(i[0]); d = i } } } if (f) { d.attr(M, f); d.removeData(B) } if (p) { d.attr("autocomplete", "off"); window.setTimeout(function () { d.select() }, 1) } } h && d.removeClass(h) }, show: function (b) { O(b).filter(x).each(function () { O.watermark._show(O(this)) }) }, _show: function (h) { var d = h.val() || P, c = h.data(J) || P, g = h.attr(K) || P, f = h.data(H); if ((d.length == 0 || d == c) && !h.data(z)) { y = N; if (h.data(I)) { if (g === G) { var i = h.data(I) || [], a = h.parent() || []; if (i.length && a.length) { a[0].removeChild(h[0]); a[0].appendChild(i[0]); h = i; h.attr(M, c.length) } } } if (g === "text" || g === "search") { var b = h.attr(M) || 0; if (b > 0 && c.length > b) { h.data(B, b); h.attr(M, c.length) } } f && h.addClass(f); h.val(c) } else { O.watermark._hide(h) } }, hideAll: function () { if (y) { O.watermark.hide(C); y = L } }, showAll: function () { O.watermark.show(C) } }; O.fn.watermark = function (c, e) { var d = "string"; if (!this.length) { return this } var b = L, a = typeof c === d; if (typeof e === "object") { b = typeof e.className === d; e = O.extend({}, O.watermark.options, e) } else { if (typeof e === d) { b = N; e = O.extend({}, O.watermark.options, { className: e }) } else { e = O.watermark.options } } if (typeof e.useNative !== E) { e.useNative = e.useNative ? function () { return N } : function () { return L } } return this.each(function () { var i = "dragleave", j = "dragenter", f = this, m = O(f); if (!m.is(C)) { return } if (m.data(D)) { if (a || b) { O.watermark._hide(m); a && m.data(J, c); b && m.data(H, e.className) } } else { if (e.useNative.call(f, m)) { if ((P + m.css("-webkit-appearance")).replace("undefined", P) !== P && (m.attr("tagName") || P) !== "TEXTAREA") { a && m.attr("placeholder", c); return } } m.data(J, a ? c : P); m.data(H, e.className); m.data(D, 1); if ((m.attr(K) || P) === G) { var n = m.wrap("<span>").parent(), h = O(n.html().replace(/type=["']?password["']?/i, 'type="text"')); h.data(J, m.data(J)); h.data(H, m.data(H)); h.data(D, 1); h.attr(M, c.length); h.focus(function () { O.watermark._hide(h, N) }).bind(j, function () { O.watermark._hide(h) }).bind("dragend", function () { window.setTimeout(function () { h.blur() }, 1) }); m.blur(function () { O.watermark._show(m) }).bind(i, function () { O.watermark._show(m) }); h.data(I, m); m.data(I, h) } else { m.focus(function () { m.data(z, 1); O.watermark._hide(m, N) }).blur(function () { m.data(z, 0); O.watermark._show(m) }).bind(j, function () { O.watermark._hide(m) }).bind(i, function () { O.watermark._show(m) }).bind("dragend", function () { window.setTimeout(function () { O.watermark._show(m) }, 1) }).bind("drop", function (o) { var l = o.originalEvent.dataTransfer.getData("Text"); m.val().replace(l, P) === m.data(J) && m.val(l); m.focus() }) } if (f.form) { var k = f.form, g = O(k); if (!g.data(F)) { g.submit(O.watermark.hideAll); if (k.submit) { g.data(F, k.submit); k.submit = function (o, l) { return function () { var p = l.data(F); O.watermark.hideAll(); if (p.apply) { p.apply(o, Array.prototype.slice.call(arguments)) } else { p() } } } (k, g) } else { g.data(F, 1); k.submit = function (l) { return function () { O.watermark.hideAll(); delete l.submit; l.submit() } } (k) } } } } O.watermark._show(m) }) }; A.length && O(function () { for (var b, f, e = A.length - 1; e >= 0; e--) { b = A[e]; f = window[b]; if (typeof f === E) { window[b] = function (c) { return function () { O.watermark.hideAll(); return c.apply(null, Array.prototype.slice.call(arguments)) } } (f) } } }); O("#searchstuff input:text").watermark("Search"); O("#Breadcrumbs a:last").removeAttr("href").css("color", "#6b6b6b") })(jQuery);
/*!
* Modified to automatically call for the document
* --------------------------------------------------------------------
* jQuery-Plugin "pngFix"
* Version: 1.1, 11.09.2007
* by Andreas Eberhard, andreas.eberhard@gmail.com
*                      http://jquery.andreaseberhard.de/
*
* Copyright (c) 2007 Andreas Eberhard
* Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
*/
(function (a) { jQuery.fn.pngFix = function (d) { d = jQuery.extend({ blankgif: "blank.gif" }, d); var c = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1); var b = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1); if (jQuery.browser.msie && (c || b)) { jQuery(this).find("img[src$=.png]").each(function () { jQuery(this).attr("width", jQuery(this).width()); jQuery(this).attr("height", jQuery(this).height()); var j = ""; var e = ""; var m = (jQuery(this).attr("id")) ? 'id="' + jQuery(this).attr("id") + '" ' : ""; var k = (jQuery(this).attr("class")) ? 'class="' + jQuery(this).attr("class") + '" ' : ""; var g = (jQuery(this).attr("title")) ? 'title="' + jQuery(this).attr("title") + '" ' : ""; var h = (jQuery(this).attr("alt")) ? 'alt="' + jQuery(this).attr("alt") + '" ' : ""; var f = (jQuery(this).attr("align")) ? "float:" + jQuery(this).attr("align") + ";" : ""; var l = (jQuery(this).parent().attr("href")) ? "cursor:hand;" : ""; if (this.style.border) { j += "border:" + this.style.border + ";"; this.style.border = "" } if (this.style.padding) { j += "padding:" + this.style.padding + ";"; this.style.padding = "" } if (this.style.margin) { j += "margin:" + this.style.margin + ";"; this.style.margin = "" } var i = (this.style.cssText); e += "<span " + m + k + g + h; e += 'style="position:relative;white-space:pre-line;display:inline-block;background:transparent;' + f + l; e += "width:" + jQuery(this).width() + "px;height:" + jQuery(this).height() + "px;"; e += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + jQuery(this).attr("src") + "', sizingMethod='scale');"; e += i + '"></span>'; if (j != "") { e = '<span style="position:relative;display:inline-block;' + j + l + "width:" + jQuery(this).width() + "px;height:" + jQuery(this).height() + 'px;">' + e + "</span>" } jQuery(this).hide(); jQuery(this).after(e) }); jQuery(this).find("*").each(function () { var f = jQuery(this).css("background-image"); if (f.indexOf(".png") != -1) { var e = f.split('url("')[1].split('")')[0]; jQuery(this).css("background-image", "none"); jQuery(this).get(0).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + e + "',sizingMethod='scale')" } }); jQuery(this).find("input[src$=.png]").each(function () { var e = jQuery(this).attr("src"); jQuery(this).get(0).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + e + "', sizingMethod='scale');"; jQuery(this).attr("src", d.blankgif) }) } return jQuery }; a(function () { a(document).pngFix() }) })(jQuery);
