jQuery.noConflict(); jQuery(document).ready(function() { my_lightbox("a[rel^='prettyPhoto'], a[rel^='lightbox']"); k_form(); k_menu() }); jQuery(window).load(function() { if (jQuery("#featured_image img").length > 0) { jQuery("#featured_image img").not(".current_img").css({ display: "none" }); interval = setInterval(function() { k_fader("#featured_image img", "1") }, 6000) } }); function k_menu() { jQuery("#nav a, .subnav a").removeAttr("title"); jQuery(" #nav ul ").css({ display: "none" }); jQuery("#nav li").each(function() { var a = jQuery(this).find("ul:first"); jQuery(this).hover(function() { a.stop().css({ overflow: "hidden", height: "auto", display: "none" }).slideDown(400, function() { jQuery(this).css({ overflow: "visible", height: "auto" }) }) }, function() { a.stop().slideUp(400, function() { jQuery(this).css({ overflow: "hidden", display: "none" }) }) }) }) } function k_fader(f, a) { var e = jQuery(f); var b = e.filter(":visible"); var c; var d; e.css("visibility", "visible"); if (e.length > 1) { for (i = 0; i < e.length; i++) { if (e[i] == b[0]) { d = a >= 0 ? i != e.length - 1 ? i + 1 : 0 : i == 0 ? e.length - 1 : i - 1; c = jQuery(e[d]); break } } if (c.css("display") == "none") { b.css({ zIndex: 2 }); c.css({ zIndex: 3 }).fadeIn(1200, function() { b.css({ display: "none" }) }) } } } function my_lightbox(a) { jQuery(a).prettyPhoto({ theme: "light_square" }); jQuery(a).each(function() { var c = jQuery(this).contents("img"); $newclass = "lightbox_video"; if (jQuery(this).attr("href").match(/(jpg|gif|jpeg|png|tif)/)) { $newclass = "lightbox_image" } if (c.length > 0) { if (jQuery.browser.msie && jQuery.browser.version < 7) { jQuery(this).addClass("ie6_lightbox") } var b = jQuery("<span class='" + $newclass + " ie6fix'></span>").appendTo(jQuery(this)); jQuery(this).bind("mouseenter", function() { $height = c.height(); $width = c.width(); $pos = c.position(); b.css({ height: $height, width: $width, top: $pos.top, left: $pos.left }) }) } }); jQuery(a).contents("img").hover(function() { jQuery(this).stop().animate({ opacity: 0.5 }, 400) }, function() { jQuery(this).stop().animate({ opacity: 1 }, 400) }) } function k_form() { var a; jQuery(".ajax_form #send").bind("click", function() { a = false; jQuery(".ajax_form #name, .ajax_form #message, .ajax_form #email ").each(function(c) { var f = jQuery(this).attr("value"); var e = jQuery(this).attr("id"); var b = jQuery(this).parent(); if (e == "email") { if (!f.match(/^\w[\w|\.|\-]+@\w[\w|\.|\-]+\.[a-zA-Z]{2,4}$/)) { b.attr("class", "").addClass("error"); a = true } else { b.attr("class", "").addClass("valid") } } if (e == "name" || e == "message") { if (f == "") { b.attr("class", "").addClass("error"); a = true } else { b.attr("class", "").addClass("valid") } } if (jQuery(".ajax_form #name, .ajax_form #message, .ajax_form #email").length == c + 1) { if (a == false) { jQuery(".ajax_form").slideUp(400); var d = "ajax=true"; jQuery(".ajax_form input, .ajax_form textarea").each(function(h) { var j = jQuery(this).attr("name"); var g = jQuery(this).attr("value"); d = d + "&" + j + "=" + g }); jQuery(".ajax_form #send").fadeOut(100); jQuery.ajax({ type: "POST", url: "send.php", data: d, success: function(g) { jQuery(".ajax_form").before("<div class='ajaxresponse' style='display: none;'></div>"); jQuery(".ajaxresponse").html(g).slideDown(400); jQuery(".ajax_form #send").fadeIn(400); jQuery(".ajax_form #name, .ajax_form #message, .ajax_form #email , .ajax_form #website").val("") } }) } } }); return false }) } (function(a) { a.prettyPhoto = { version: "2.5.4" }; a.fn.prettyPhoto = function(u) { u = jQuery.extend({ animationSpeed: "normal", padding: 40, opacity: 0.8, showTitle: true, allowresize: true, counter_separator_label: "/", theme: "light_rounded", hideflash: false, modal: false, changepicturecallback: function() { }, callback: function() { } }, u); if (a.browser.msie && a.browser.version == 6) { u.theme = "light_square" } if (a(".pp_overlay").size() == 0) { v() } else { p = a(".pp_pic_holder"); y = a(".ppt") } var d = true, h = false, t, p, y, n, o, s, w, e = "image", c = 0, k = f(); a(window).scroll(function() { k = f(); j(); r() }); a(window).resize(function() { j(); r() }); a(document).keydown(function(z) { if (p.is(":visible")) { switch (z.keyCode) { case 37: a.prettyPhoto.changePage("previous"); break; case 39: a.prettyPhoto.changePage("next"); break; case 27: if (!u.modal) { a.prettyPhoto.close() } break } } }); a(this).each(function() { a(this).bind("click", function() { link = this; theRel = a(this).attr("rel"); galleryRegExp = /\[(?:.*)\]/; theGallery = galleryRegExp.exec(theRel); var z = new Array(), B = new Array(), A = new Array(); if (theGallery) { a("a[rel*=" + theGallery + "]").each(function(C) { if (a(this)[0] === a(link)[0]) { c = C } z.push(a(this).attr("href")); B.push(a(this).find("img").attr("alt")); A.push(a(this).attr("title")) }) } else { z = a(this).attr("href"); B = (a(this).find("img").attr("alt")) ? a(this).find("img").attr("alt") : ""; A = (a(this).attr("title")) ? a(this).attr("title") : "" } a.prettyPhoto.open(z, B, A); return false }) }); a.prettyPhoto.open = function(B, A, z) { if (a.browser.msie && a.browser.version == 6) { a("select").css("visibility", "hidden") } if (u.hideflash) { a("object,embed").css("visibility", "hidden") } images = a.makeArray(B); titles = a.makeArray(A); descriptions = a.makeArray(z); if (a(".pp_overlay").size() == 0) { v() } else { p = a(".pp_pic_holder"); y = a(".ppt") } p.attr("class", "pp_pic_holder " + u.theme); isSet = (a(images).size() > 0) ? true : false; x(images[c]); j(); g(a(images).size()); a(".pp_loaderIcon").show(); a("div.pp_overlay").show().fadeTo(u.animationSpeed, u.opacity, function() { p.fadeIn(u.animationSpeed, function() { p.find("p.currentTextHolder").text((c + 1) + u.counter_separator_label + a(images).size()); if (descriptions[c]) { p.find(".pp_description").show().html(unescape(descriptions[c])) } else { p.find(".pp_description").hide().text("") } if (titles[c] && u.showTitle) { hasTitle = true; y.html(unescape(titles[c])) } else { hasTitle = false } if (e == "image") { imgPreloader = new Image(); nextImage = new Image(); if (isSet && c > a(images).size()) { nextImage.src = images[c + 1] } prevImage = new Image(); if (isSet && images[c - 1]) { prevImage.src = images[c - 1] } pp_typeMarkup = '<img id="fullResImage" src="" />'; p.find("#pp_full_res")[0].innerHTML = pp_typeMarkup; p.find(".pp_content").css("overflow", "hidden"); p.find("#fullResImage").attr("src", images[c]); imgPreloader.onload = function() { t = m(imgPreloader.width, imgPreloader.height); _showContent() }; imgPreloader.src = images[c] } else { movie_width = (parseFloat(b("width", images[c]))) ? b("width", images[c]) : "425"; movie_height = (parseFloat(b("height", images[c]))) ? b("height", images[c]) : "344"; if (movie_width.indexOf("%") != -1 || movie_height.indexOf("%") != -1) { movie_height = (a(window).height() * parseFloat(movie_height) / 100) - 100; movie_width = (a(window).width() * parseFloat(movie_width) / 100) - 100; h = true } movie_height = parseFloat(movie_height); movie_width = parseFloat(movie_width); if (e == "quicktime") { movie_height += 15 } t = m(movie_width, movie_height); if (e == "youtube") { pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + t.width + '" height="' + t.height + '"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.youtube.com/v/' + b("v", images[c]) + '" /><embed src="http://www.youtube.com/v/' + b("v", images[c]) + '" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="' + t.width + '" height="' + t.height + '"></embed></object>' } else { if (e == "quicktime") { pp_typeMarkup = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="' + t.height + '" width="' + t.width + '"><param name="src" value="' + images[c] + '"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="' + images[c] + '" height="' + t.height + '" width="' + t.width + '" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>' } else { if (e == "flash") { flash_vars = images[c]; flash_vars = flash_vars.substring(images[c].indexOf("flashvars") + 10, images[c].length); filename = images[c]; filename = filename.substring(0, filename.indexOf("?")); pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + t.width + '" height="' + t.height + '"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="' + filename + "?" + flash_vars + '" /><embed src="' + filename + "?" + flash_vars + '" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="' + t.width + '" height="' + t.height + '"></embed></object>' } else { if (e == "iframe") { movie_url = images[c]; movie_url = movie_url.substr(0, movie_url.indexOf("iframe") - 1); pp_typeMarkup = '<iframe src ="' + movie_url + '" width="' + (t.width - 10) + '" height="' + (t.height - 10) + '" frameborder="no"></iframe>' } } } } _showContent() } }) }) }; a.prettyPhoto.changePage = function(z) { if (z == "previous") { c--; if (c < 0) { c = 0; return } } else { if (a(".pp_arrow_next").is(".disabled")) { return } c++ } if (!d) { d = true } l(); a("a.pp_expand,a.pp_contract").fadeOut(u.animationSpeed, function() { a(this).removeClass("pp_contract").addClass("pp_expand"); a.prettyPhoto.open(images, titles, descriptions) }) }; a.prettyPhoto.close = function() { p.find("object,embed").css("visibility", "hidden"); a("div.pp_pic_holder,div.ppt").fadeOut(u.animationSpeed); a("div.pp_overlay").fadeOut(u.animationSpeed, function() { a("div.pp_overlay,div.pp_pic_holder,div.ppt").remove(); if (a.browser.msie && a.browser.version == 6) { a("select").css("visibility", "visible") } if (u.hideflash) { a("object,embed").css("visibility", "visible") } c = 0; u.callback() }); d = true }; _showContent = function() { a(".pp_loaderIcon").hide(); if (a.browser.opera) { windowHeight = window.innerHeight; windowWidth = window.innerWidth } else { windowHeight = a(window).height(); windowWidth = a(window).width() } projectedTop = k.scrollTop + ((windowHeight / 2) - (t.containerHeight / 2)); if (projectedTop < 0) { projectedTop = 0 + p.find(".ppt").height() } p.find(".pp_content").animate({ height: t.contentHeight }, u.animationSpeed); p.animate({ top: projectedTop, left: ((windowWidth / 2) - (t.containerWidth / 2)), width: t.containerWidth }, u.animationSpeed, function() { p.width(t.containerWidth); p.find(".pp_hoverContainer,#fullResImage").height(t.height).width(t.width); p.find("#pp_full_res").fadeIn(u.animationSpeed); if (isSet && e == "image") { p.find(".pp_hoverContainer").fadeIn(u.animationSpeed) } else { p.find(".pp_hoverContainer").hide() } p.find(".pp_details").fadeIn(u.animationSpeed); if (u.showTitle && hasTitle) { y.css({ top: p.offset().top - 20, left: p.offset().left + (u.padding / 2), display: "none" }); y.fadeIn(u.animationSpeed) } if (t.resized) { a("a.pp_expand,a.pp_contract").fadeIn(u.animationSpeed) } if (e != "image") { p.find("#pp_full_res")[0].innerHTML = pp_typeMarkup } u.changepicturecallback() }) }; function l() { p.find("#pp_full_res object,#pp_full_res embed").css("visibility", "hidden"); p.find(".pp_hoverContainer,.pp_details").fadeOut(u.animationSpeed); p.find("#pp_full_res").fadeOut(u.animationSpeed, function() { a(".pp_loaderIcon").show() }); y.fadeOut(u.animationSpeed) } function g(z) { if (c == z - 1) { p.find("a.pp_next").css("visibility", "hidden"); p.find("a.pp_arrow_next").addClass("disabled").unbind("click") } else { p.find("a.pp_next").css("visibility", "visible"); p.find("a.pp_arrow_next.disabled").removeClass("disabled").bind("click", function() { a.prettyPhoto.changePage("next"); return false }) } if (c == 0) { p.find("a.pp_previous").css("visibility", "hidden"); p.find("a.pp_arrow_previous").addClass("disabled").unbind("click") } else { p.find("a.pp_previous").css("visibility", "visible"); p.find("a.pp_arrow_previous.disabled").removeClass("disabled").bind("click", function() { a.prettyPhoto.changePage("previous"); return false }) } if (z > 1) { a(".pp_nav").show() } else { a(".pp_nav").hide() } } function m(A, z) { hasBeenResized = false; q(A, z); imageWidth = A; imageHeight = z; windowHeight = a(window).height(); windowWidth = a(window).width(); if (((w > windowWidth) || (s > windowHeight)) && d && u.allowresize && !h) { hasBeenResized = true; notFitting = true; while (notFitting) { if ((w > windowWidth)) { imageWidth = (windowWidth - 200); imageHeight = (z / A) * imageWidth } else { if ((s > windowHeight)) { imageHeight = (windowHeight - 200); imageWidth = (A / z) * imageHeight } else { notFitting = false } } s = imageHeight; w = imageWidth } q(imageWidth, imageHeight) } return { width: imageWidth, height: imageHeight, containerHeight: s, containerWidth: w, contentHeight: n, contentWidth: o, resized: hasBeenResized} } function q(A, z) { p.find(".pp_details").width(A).find(".pp_description").width(A - parseFloat(p.find("a.pp_close").css("width"))); n = z + p.find(".pp_details").height() + parseFloat(p.find(".pp_details").css("marginTop")) + parseFloat(p.find(".pp_details").css("marginBottom")); o = A; s = n + p.find(".ppt").height() + p.find(".pp_top").height() + p.find(".pp_bottom").height(); w = A + u.padding } function x(z) { if (z.match(/youtube\.com\/watch/i)) { e = "youtube" } else { if (z.indexOf(".mov") != -1) { e = "quicktime" } else { if (z.indexOf(".swf") != -1) { e = "flash" } else { if (z.indexOf("iframe") != -1) { e = "iframe" } else { e = "image" } } } } } function j() { if (a.browser.opera) { windowHeight = window.innerHeight; windowWidth = window.innerWidth } else { windowHeight = a(window).height(); windowWidth = a(window).width() } if (d) { $pHeight = p.height(); $pWidth = p.width(); $tHeight = y.height(); projectedTop = (windowHeight / 2) + k.scrollTop - ($pHeight / 2); if (projectedTop < 0) { projectedTop = 0 + $tHeight } p.css({ top: projectedTop, left: (windowWidth / 2) + k.scrollLeft - ($pWidth / 2) }); y.css({ top: projectedTop - $tHeight, left: (windowWidth / 2) + k.scrollLeft - ($pWidth / 2) + (u.padding / 2) }) } } function f() { if (self.pageYOffset) { scrollTop = self.pageYOffset; scrollLeft = self.pageXOffset } else { if (document.documentElement && document.documentElement.scrollTop) { scrollTop = document.documentElement.scrollTop; scrollLeft = document.documentElement.scrollLeft } else { if (document.body) { scrollTop = document.body.scrollTop; scrollLeft = document.body.scrollLeft } } } return { scrollTop: scrollTop, scrollLeft: scrollLeft} } function r() { a("div.pp_overlay").css({ height: a(document).height(), width: a(window).width() }) } function v() { toInject = ""; toInject += "<div class='pp_overlay'></div>"; toInject += '<div class="pp_pic_holder"><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_loaderIcon"></div><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div><div class="pp_details clearfix"><a class="pp_close" href="#">Close</a><p class="pp_description"></p><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0' + u.counter_separator_label + '0</p><a href="#" class="pp_arrow_next">Next</a></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div>'; toInject += '<div class="ppt"></div>'; a("body").append(toInject); a("div.pp_overlay").css("opacity", 0); p = a(".pp_pic_holder"); y = a(".ppt"); a("div.pp_overlay").css("height", a(document).height()).hide().bind("click", function() { if (!u.modal) { a.prettyPhoto.close() } }); a("a.pp_close").bind("click", function() { a.prettyPhoto.close(); return false }); a("a.pp_expand").bind("click", function() { $this = a(this); if ($this.hasClass("pp_expand")) { $this.removeClass("pp_expand").addClass("pp_contract"); d = false } else { $this.removeClass("pp_contract").addClass("pp_expand"); d = true } l(); p.find(".pp_hoverContainer, .pp_details").fadeOut(u.animationSpeed); p.find("#pp_full_res").fadeOut(u.animationSpeed, function() { a.prettyPhoto.open(images, titles, descriptions) }); return false }); p.find(".pp_previous, .pp_arrow_previous").bind("click", function() { a.prettyPhoto.changePage("previous"); return false }); p.find(".pp_next, .pp_arrow_next").bind("click", function() { a.prettyPhoto.changePage("next"); return false }); p.find(".pp_hoverContainer").css({ "margin-left": u.padding / 2 }) } }; function b(e, d) { e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var c = "[\\?&]" + e + "=([^&#]*)"; var g = new RegExp(c); var f = g.exec(d); if (f == null) { return "" } else { return f[1] } } })(jQuery);
/*	SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject = function() { var E = "undefined", s = "object", T = "Shockwave Flash", X = "ShockwaveFlash.ShockwaveFlash", r = "application/x-shockwave-flash", S = "SWFObjectExprInst", y = "onreadystatechange", P = window, k = document, u = navigator, U = false, V = [h], p = [], O = [], J = [], m, R, F, C, K = false, a = false, o, H, n = true, N = function() { var ab = typeof k.getElementById != E && typeof k.getElementsByTagName != E && typeof k.createElement != E, ai = u.userAgent.toLowerCase(), Z = u.platform.toLowerCase(), af = Z ? /win/.test(Z) : /win/.test(ai), ad = Z ? /mac/.test(Z) : /mac/.test(ai), ag = /webkit/.test(ai) ? parseFloat(ai.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, Y = ! +"\v1", ah = [0, 0, 0], ac = null; if (typeof u.plugins != E && typeof u.plugins[T] == s) { ac = u.plugins[T].description; if (ac && !(typeof u.mimeTypes != E && u.mimeTypes[r] && !u.mimeTypes[r].enabledPlugin)) { U = true; Y = false; ac = ac.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); ah[0] = parseInt(ac.replace(/^(.*)\..*$/, "$1"), 10); ah[1] = parseInt(ac.replace(/^.*\.(.*)\s.*$/, "$1"), 10); ah[2] = /[a-zA-Z]/.test(ac) ? parseInt(ac.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0 } } else { if (typeof P.ActiveXObject != E) { try { var ae = new ActiveXObject(X); if (ae) { ac = ae.GetVariable("$version"); if (ac) { Y = true; ac = ac.split(" ")[1].split(","); ah = [parseInt(ac[0], 10), parseInt(ac[1], 10), parseInt(ac[2], 10)] } } } catch (aa) { } } } return { w3: ab, pv: ah, wk: ag, ie: Y, win: af, mac: ad} } (), l = function() { if (!N.w3) { return } if ((typeof k.readyState != E && k.readyState == "complete") || (typeof k.readyState == E && (k.getElementsByTagName("body")[0] || k.body))) { f() } if (!K) { if (typeof k.addEventListener != E) { k.addEventListener("DOMContentLoaded", f, false) } if (N.ie && N.win) { k.attachEvent(y, function() { if (k.readyState == "complete") { k.detachEvent(y, arguments.callee); f() } }); if (P == top) { (function() { if (K) { return } try { k.documentElement.doScroll("left") } catch (Y) { setTimeout(arguments.callee, 0); return } f() })() } } if (N.wk) { (function() { if (K) { return } if (!/loaded|complete/.test(k.readyState)) { setTimeout(arguments.callee, 0); return } f() })() } t(f) } } (); function f() { if (K) { return } try { var aa = k.getElementsByTagName("body")[0].appendChild(D("span")); aa.parentNode.removeChild(aa) } catch (ab) { return } K = true; var Y = V.length; for (var Z = 0; Z < Y; Z++) { V[Z]() } } function L(Y) { if (K) { Y() } else { V[V.length] = Y } } function t(Z) { if (typeof P.addEventListener != E) { P.addEventListener("load", Z, false) } else { if (typeof k.addEventListener != E) { k.addEventListener("load", Z, false) } else { if (typeof P.attachEvent != E) { j(P, "onload", Z) } else { if (typeof P.onload == "function") { var Y = P.onload; P.onload = function() { Y(); Z() } } else { P.onload = Z } } } } } function h() { if (U) { W() } else { I() } } function W() { var Y = k.getElementsByTagName("body")[0]; var ab = D(s); ab.setAttribute("type", r); var aa = Y.appendChild(ab); if (aa) { var Z = 0; (function() { if (typeof aa.GetVariable != E) { var ac = aa.GetVariable("$version"); if (ac) { ac = ac.split(" ")[1].split(","); N.pv = [parseInt(ac[0], 10), parseInt(ac[1], 10), parseInt(ac[2], 10)] } } else { if (Z < 10) { Z++; setTimeout(arguments.callee, 10); return } } Y.removeChild(ab); aa = null; I() })() } else { I() } } function I() { var ah = p.length; if (ah > 0) { for (var ag = 0; ag < ah; ag++) { var Z = p[ag].id; var ac = p[ag].callbackFn; var ab = { success: false, id: Z }; if (N.pv[0] > 0) { var af = c(Z); if (af) { if (G(p[ag].swfVersion) && !(N.wk && N.wk < 312)) { x(Z, true); if (ac) { ab.success = true; ab.ref = A(Z); ac(ab) } } else { if (p[ag].expressInstall && B()) { var aj = {}; aj.data = p[ag].expressInstall; aj.width = af.getAttribute("width") || "0"; aj.height = af.getAttribute("height") || "0"; if (af.getAttribute("class")) { aj.styleclass = af.getAttribute("class") } if (af.getAttribute("align")) { aj.align = af.getAttribute("align") } var ai = {}; var Y = af.getElementsByTagName("param"); var ad = Y.length; for (var ae = 0; ae < ad; ae++) { if (Y[ae].getAttribute("name").toLowerCase() != "movie") { ai[Y[ae].getAttribute("name")] = Y[ae].getAttribute("value") } } Q(aj, ai, Z, ac) } else { q(af); if (ac) { ac(ab) } } } } } else { x(Z, true); if (ac) { var aa = A(Z); if (aa && typeof aa.SetVariable != E) { ab.success = true; ab.ref = aa } ac(ab) } } } } } function A(ab) { var Y = null; var Z = c(ab); if (Z && Z.nodeName == "OBJECT") { if (typeof Z.SetVariable != E) { Y = Z } else { var aa = Z.getElementsByTagName(s)[0]; if (aa) { Y = aa } } } return Y } function B() { return !a && G("6.0.65") && (N.win || N.mac) && !(N.wk && N.wk < 312) } function Q(ab, ac, Y, aa) { a = true; F = aa || null; C = { success: false, id: Y }; var af = c(Y); if (af) { if (af.nodeName == "OBJECT") { m = g(af); R = null } else { m = af; R = Y } ab.id = S; if (typeof ab.width == E || (!/%$/.test(ab.width) && parseInt(ab.width, 10) < 310)) { ab.width = "310" } if (typeof ab.height == E || (!/%$/.test(ab.height) && parseInt(ab.height, 10) < 137)) { ab.height = "137" } k.title = k.title.slice(0, 47) + " - Flash Player Installation"; var ae = N.ie && N.win ? "ActiveX" : "PlugIn", ad = "MMredirectURL=" + P.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + ae + "&MMdoctitle=" + k.title; if (typeof ac.flashvars != E) { ac.flashvars += "&" + ad } else { ac.flashvars = ad } if (N.ie && N.win && af.readyState != 4) { var Z = D("div"); Y += "SWFObjectNew"; Z.setAttribute("id", Y); af.parentNode.insertBefore(Z, af); af.style.display = "none"; (function() { if (af.readyState == 4) { af.parentNode.removeChild(af) } else { setTimeout(arguments.callee, 10) } })() } v(ab, ac, Y) } } function q(Z) { if (N.ie && N.win && Z.readyState != 4) { var Y = D("div"); Z.parentNode.insertBefore(Y, Z); Y.parentNode.replaceChild(g(Z), Y); Z.style.display = "none"; (function() { if (Z.readyState == 4) { Z.parentNode.removeChild(Z) } else { setTimeout(arguments.callee, 10) } })() } else { Z.parentNode.replaceChild(g(Z), Z) } } function g(ad) { var ab = D("div"); if (N.win && N.ie) { ab.innerHTML = ad.innerHTML } else { var Z = ad.getElementsByTagName(s)[0]; if (Z) { var ae = Z.childNodes; if (ae) { var Y = ae.length; for (var aa = 0; aa < Y; aa++) { if (!(ae[aa].nodeType == 1 && ae[aa].nodeName == "PARAM") && !(ae[aa].nodeType == 8)) { ab.appendChild(ae[aa].cloneNode(true)) } } } } } return ab } function v(aj, ah, Z) { var Y, ab = c(Z); if (N.wk && N.wk < 312) { return Y } if (ab) { if (typeof aj.id == E) { aj.id = Z } if (N.ie && N.win) { var ai = ""; for (var af in aj) { if (aj[af] != Object.prototype[af]) { if (af.toLowerCase() == "data") { ah.movie = aj[af] } else { if (af.toLowerCase() == "styleclass") { ai += ' class="' + aj[af] + '"' } else { if (af.toLowerCase() != "classid") { ai += " " + af + '="' + aj[af] + '"' } } } } } var ag = ""; for (var ae in ah) { if (ah[ae] != Object.prototype[ae]) { ag += '<param name="' + ae + '" value="' + ah[ae] + '" />' } } ab.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + ai + ">" + ag + "</object>"; O[O.length] = aj.id; Y = c(aj.id) } else { var aa = D(s); aa.setAttribute("type", r); for (var ad in aj) { if (aj[ad] != Object.prototype[ad]) { if (ad.toLowerCase() == "styleclass") { aa.setAttribute("class", aj[ad]) } else { if (ad.toLowerCase() != "classid") { aa.setAttribute(ad, aj[ad]) } } } } for (var ac in ah) { if (ah[ac] != Object.prototype[ac] && ac.toLowerCase() != "movie") { e(aa, ac, ah[ac]) } } ab.parentNode.replaceChild(aa, ab); Y = aa } } return Y } function e(aa, Y, Z) { var ab = D("param"); ab.setAttribute("name", Y); ab.setAttribute("value", Z); aa.appendChild(ab) } function z(Z) { var Y = c(Z); if (Y && Y.nodeName == "OBJECT") { if (N.ie && N.win) { Y.style.display = "none"; (function() { if (Y.readyState == 4) { b(Z) } else { setTimeout(arguments.callee, 10) } })() } else { Y.parentNode.removeChild(Y) } } } function b(aa) { var Z = c(aa); if (Z) { for (var Y in Z) { if (typeof Z[Y] == "function") { Z[Y] = null } } Z.parentNode.removeChild(Z) } } function c(aa) { var Y = null; try { Y = k.getElementById(aa) } catch (Z) { } return Y } function D(Y) { return k.createElement(Y) } function j(aa, Y, Z) { aa.attachEvent(Y, Z); J[J.length] = [aa, Y, Z] } function G(aa) { var Z = N.pv, Y = aa.split("."); Y[0] = parseInt(Y[0], 10); Y[1] = parseInt(Y[1], 10) || 0; Y[2] = parseInt(Y[2], 10) || 0; return (Z[0] > Y[0] || (Z[0] == Y[0] && Z[1] > Y[1]) || (Z[0] == Y[0] && Z[1] == Y[1] && Z[2] >= Y[2])) ? true : false } function w(ad, Z, ae, ac) { if (N.ie && N.mac) { return } var ab = k.getElementsByTagName("head")[0]; if (!ab) { return } var Y = (ae && typeof ae == "string") ? ae : "screen"; if (ac) { o = null; H = null } if (!o || H != Y) { var aa = D("style"); aa.setAttribute("type", "text/css"); aa.setAttribute("media", Y); o = ab.appendChild(aa); if (N.ie && N.win && typeof k.styleSheets != E && k.styleSheets.length > 0) { o = k.styleSheets[k.styleSheets.length - 1] } H = Y } if (N.ie && N.win) { if (o && typeof o.addRule == s) { o.addRule(ad, Z) } } else { if (o && typeof k.createTextNode != E) { o.appendChild(k.createTextNode(ad + " {" + Z + "}")) } } } function x(aa, Y) { if (!n) { return } var Z = Y ? "visible" : "hidden"; if (K && c(aa)) { c(aa).style.visibility = Z } else { w("#" + aa, "visibility:" + Z) } } function M(Z) { var aa = /[\\\"<>\.;]/; var Y = aa.exec(Z) != null; return Y && typeof encodeURIComponent != E ? encodeURIComponent(Z) : Z } var d = function() { if (N.ie && N.win) { window.attachEvent("onunload", function() { var ad = J.length; for (var ac = 0; ac < ad; ac++) { J[ac][0].detachEvent(J[ac][1], J[ac][2]) } var aa = O.length; for (var ab = 0; ab < aa; ab++) { z(O[ab]) } for (var Z in N) { N[Z] = null } N = null; for (var Y in swfobject) { swfobject[Y] = null } swfobject = null }) } } (); return { registerObject: function(ac, Y, ab, aa) { if (N.w3 && ac && Y) { var Z = {}; Z.id = ac; Z.swfVersion = Y; Z.expressInstall = ab; Z.callbackFn = aa; p[p.length] = Z; x(ac, false) } else { if (aa) { aa({ success: false, id: ac }) } } }, getObjectById: function(Y) { if (N.w3) { return A(Y) } }, embedSWF: function(ac, ai, af, ah, Z, ab, aa, ae, ag, ad) { var Y = { success: false, id: ai }; if (N.w3 && !(N.wk && N.wk < 312) && ac && ai && af && ah && Z) { x(ai, false); L(function() { af += ""; ah += ""; var ak = {}; if (ag && typeof ag === s) { for (var am in ag) { ak[am] = ag[am] } } ak.data = ac; ak.width = af; ak.height = ah; var an = {}; if (ae && typeof ae === s) { for (var al in ae) { an[al] = ae[al] } } if (aa && typeof aa === s) { for (var aj in aa) { if (typeof an.flashvars != E) { an.flashvars += "&" + aj + "=" + aa[aj] } else { an.flashvars = aj + "=" + aa[aj] } } } if (G(Z)) { var ao = v(ak, an, ai); if (ak.id == ai) { x(ai, true) } Y.success = true; Y.ref = ao } else { if (ab && B()) { ak.data = ab; Q(ak, an, ai, ad); return } else { x(ai, true) } } if (ad) { ad(Y) } }) } else { if (ad) { ad(Y) } } }, switchOffAutoHideShow: function() { n = false }, ua: N, getFlashPlayerVersion: function() { return { major: N.pv[0], minor: N.pv[1], release: N.pv[2]} }, hasFlashPlayerVersion: G, createSWF: function(aa, Z, Y) { if (N.w3) { return v(aa, Z, Y) } else { return undefined } }, showExpressInstall: function(aa, ab, Y, Z) { if (N.w3 && B()) { Q(aa, ab, Y, Z) } }, removeSWF: function(Y) { if (N.w3) { z(Y) } }, createCSS: function(ab, aa, Z, Y) { if (N.w3) { w(ab, aa, Z, Y) } }, addDomLoadEvent: L, addLoadEvent: t, getQueryParamValue: function(ab) { var aa = k.location.search || k.location.hash; if (aa) { if (/\?/.test(aa)) { aa = aa.split("?")[1] } if (ab == null) { return M(aa) } var Z = aa.split("&"); for (var Y = 0; Y < Z.length; Y++) { if (Z[Y].substring(0, Z[Y].indexOf("=")) == ab) { return M(Z[Y].substring((Z[Y].indexOf("=") + 1))) } } } return "" }, expressInstallCallback: function() { if (a) { var Y = c(S); if (Y && m) { Y.parentNode.replaceChild(m, Y); if (R) { x(R, true); if (N.ie && N.win) { m.style.display = "block" } } if (F) { F(C) } } a = false } } } } ();
