
(function($){

 





 



})(this.jQuery);


/*
Watermark v3.1 (December 21, 2010) plugin for jQuery
http://jquery-watermark.googlecode.com/
Copyright (c) 2009-2011 Todd Northrop
http://www.speednet.biz/
Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function (b, j, y) { var p = "function", k = "password", d = "maxLength", g = "type", a = "", c = true, o = "placeholder", e = false, w = "watermark", l = w, i = "watermarkClass", t = "watermarkFocus", n = "watermarkSubmit", r = "watermarkMaxLength", h = "watermarkPassword", f = "watermarkText", m = /\r/g, v = ":data(" + l + ")", q = ":text,:password,:search,textarea", s = ["Page_ClientValidate"], u = e, x = o in document.createElement("input"); b.watermark = b.watermark || { version: "3.1", runOnce: c, options: { className: w, useNative: c, hideBeforeUnload: c }, hide: function (a) { b(a).filter(v).each(function () { b.watermark._hide(b(this)) }) }, _hide: function (b, q) { var o = b[0], p = (o.value || a).replace(m, a), l = b.data(f) || a, n = b.data(r) || 0, k = b.data(i); if (l.length && p == l) { o.value = a; if (b.data(h)) if ((b.attr(g) || a) === "text") { var e = b.data(h) || [], c = b.parent() || []; if (e.length && c.length) { c[0].removeChild(b[0]); c[0].appendChild(e[0]); b = e } } if (n) { b.attr(d, n); b.removeData(r) } if (q) { b.attr("autocomplete", "off"); j.setTimeout(function () { b.select() }, 1) } } k && b.removeClass(k) }, show: function (a) { b(a).filter(v).each(function () { b.watermark._show(b(this)) }) }, _show: function (e) { var s = e[0], v = (s.value || a).replace(m, a), j = e.data(f) || a, p = e.attr(g) || a, q = e.data(i); if ((v.length == 0 || v == j) && !e.data(t)) { u = c; if (e.data(h)) if (p === k) { var o = e.data(h) || [], n = e.parent() || []; if (o.length && n.length) { n[0].removeChild(e[0]); n[0].appendChild(o[0]); e = o; e.attr(d, j.length) } } if (p === "text" || p === "search") { var l = e.attr(d) || 0; if (l > 0 && j.length > l) { e.data(r, l); e.attr(d, j.length) } } q && e.addClass(q); s.value = j } else b.watermark._hide(e) }, hideAll: function () { if (u) { b.watermark.hide(q); u = e } }, showAll: function () { b.watermark.show(q) } }; b.fn.watermark = b.fn.watermark || function (s, r) { var u = "string"; if (!this.length) return this; var w = e, v = typeof s === u; if (v) s = s.replace(m, a); if (typeof r === "object") { w = typeof r.className === u; r = b.extend({}, b.watermark.options, r) } else if (typeof r === u) { w = c; r = b.extend({}, b.watermark.options, { className: r }) } else r = b.watermark.options; if (typeof r.useNative !== p) r.useNative = r.useNative ? function () { return c } : function () { return e }; return this.each(function () { var z = "dragleave", y = "dragenter", B = this, e = b(B); if (!e.is(q)) return; if (e.data(l)) { if (v || w) { b.watermark._hide(e); v && e.data(f, s); w && e.data(i, r.className) } } else { if (x && r.useNative.call(B, e) && (e.attr("tagName") || a) !== "TEXTAREA") { v && e.attr(o, s); return } e.data(f, v ? s : a); e.data(i, r.className); e.data(l, 1); if ((e.attr(g) || a) === k) { var C = e.wrap("<span>").parent(), p = b(C.html().replace(/type=["']?password["']?/i, 'type="text"')); p.data(f, e.data(f)); p.data(i, e.data(i)); p.data(l, 1); p.attr(d, s.length); p.focus(function () { b.watermark._hide(p, c) }).bind(y, function () { b.watermark._hide(p) }).bind("dragend", function () { j.setTimeout(function () { p.blur() }, 1) }); e.blur(function () { b.watermark._show(e) }).bind(z, function () { b.watermark._show(e) }); p.data(h, e); e.data(h, p) } else e.focus(function () { e.data(t, 1); b.watermark._hide(e, c) }).blur(function () { e.data(t, 0); b.watermark._show(e) }).bind(y, function () { b.watermark._hide(e) }).bind(z, function () { b.watermark._show(e) }).bind("dragend", function () { j.setTimeout(function () { b.watermark._show(e) }, 1) }).bind("drop", function (d) { var c = e[0], b = d.originalEvent.dataTransfer.getData("Text"); if ((c.value || a).replace(m, a).replace(b, a) === e.data(f)) c.value = b; e.focus() }); if (B.form) { var u = B.form, A = b(u); if (!A.data(n)) { A.submit(b.watermark.hideAll); if (u.submit) { A.data(n, u.submit); u.submit = function (c, a) { return function () { var d = a.data(n); b.watermark.hideAll(); if (d.apply) d.apply(c, Array.prototype.slice.call(arguments)); else d() } } (u, A) } else { A.data(n, 1); u.submit = function (a) { return function () { b.watermark.hideAll(); delete a.submit; a.submit() } } (u) } } } } b.watermark._show(e) }) }; if (b.watermark.runOnce) { b.watermark.runOnce = e; b.extend(b.expr[":"], { search: function (b) { return "search" === (b.type || a) }, data: function (c, d, a) { return !!b.data(c, a[3]) } }); (function (c) { b.fn.val = function () { var d = this; if (!d.length) return arguments.length ? d : y; if (!arguments.length) if (d.data(l)) { var e = (d[0].value || a).replace(m, a); return e === (d.data(f) || a) ? a : e } else return c.apply(d, arguments); else { c.apply(d, arguments); b.watermark.show(d); return d } } })(b.fn.val); s.length && b(function () { for (var a, c, d = s.length - 1; d >= 0; d--) { a = s[d]; c = j[a]; if (typeof c === p) j[a] = function (a) { return function () { b.watermark.hideAll(); return a.apply(null, Array.prototype.slice.call(arguments)) } } (c) } }); b(j).bind("beforeunload", function () { b.watermark.options.hideBeforeUnload && b.watermark.hideAll() }) } })(jQuery, window);


window.log = function(){
  log.history = log.history || [];   
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};
(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);



