﻿/* jQuery (PNG Fix) v1.2 */
(function($){$.fn.pngfix=function(options){var elements=this;var settings=$.extend({imageFixSrc:false,sizingMethod:false},options);if(!$.browser.msie||($.browser.msie&&$.browser.version>=7)){return(elements);}
function setFilter(el,path,mode){var fs=el.attr("filters");var alpha="DXImageTransform.Microsoft.AlphaImageLoader";if(fs[alpha]){fs[alpha].enabled=true;fs[alpha].src=path;fs[alpha].sizingMethod=mode;}else{el.css("filter",'progid:'+alpha+'(enabled="true", sizingMethod="'+mode+'", src="'+path+'")');}}
function setDOMElementWidth(el){if(el.css("width")=="auto"&el.css("height")=="auto"){el.css("width",el.attr("offsetWidth")+"px");}}
return(elements.each(function(){var el=$(this);if(el.attr("tagName").toUpperCase()=="IMG"&&(/\.png/i).test(el.attr("src"))){if(!settings.imageFixSrc){el.wrap("<span></span>");var par=el.parent();par.css({height:el.height(),width:el.width(),display:"inline-block"});setFilter(par,el.attr("src"),"scale");el.remove();}else if((/\.gif/i).test(settings.imageFixSrc)){setDOMElementWidth(el);setFilter(el,el.attr("src"),"image");el.attr("src",settings.imageFixSrc);}}else{var bg=new String(el.css("backgroundImage"));var matches=bg.match(/^url\("(.*)"\)$/);if(matches&&matches.length){setDOMElementWidth(el);el.css("backgroundImage","none");var sc="crop";if(settings.sizingMethod){sc=settings.sizingMethod;}
setFilter(el,matches[1],sc);el.find("a").each(function(){$(this).css("position","relative");});}}}));}})(jQuery);
/* JQueryString v1.6.1 */
(function(b){b.fn.getAllQueryStrings=function(a){defaults={a:"undefined",URL:window.location.href};a=b.extend(defaults,a);var d=[];if(a.URL.split("#")[1]!="undefined")a.URL=a.URL.split("#")[0];if(typeof a.URL.split("?")[1]!="undefined"){a=a.URL.split("?")[1].replace(/\+/g," ").split("&");b.d(a,function(){var c=this.split("=");d[c[0]]=c.length==2?{name:c[0],value:c[1]}:{name:c[0],value:c[0]}})}if(d.length<=0)return"undefined";return d};b.e=function(a){defaults={a:"undefined",URL:window.location.href};a=b.extend(defaults,
a);return typeof b.b({URL:a.URL})[a.c]=="undefined"?a.a:b.b({a:a.a,URL:a.URL})[a.c].value}})(jQuery);
/* Cookie plugin */
jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null){c="";a=$.extend({},a);a.a=-1}var b="";if(a.a&&(typeof a.a=="number"||a.a.toUTCString)){if(typeof a.a=="number"){b=new Date;b.setTime(b.getTime()+a.a*24*60*60*1E3)}else b=a.a;b="; expires="+b.toUTCString()}var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.b?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),b,e,f,a].join("")}else{c=null;if(document.cookie&&document.cookie!=""){a=document.cookie.split(";");
for(b=0;b<a.length;b++){e=jQuery.c(a[b]);if(e.substring(0,d.length+1)==d+"="){c=decodeURIComponent(e.substring(d.length+1));break}}}return c}};
/* jquery.swfobject */
(function(f,h,i){function k(a,c){var b=(a[0]||0)-(c[0]||0);return b>0||!b&&a.length>0&&k(a.slice(1),c.slice(1))}function l(a){if(typeof a!=g)return a;var c=[],b="";for(var d in a){b=typeof a[d]==g?l(a[d]):[d,m?encodeURI(a[d]):a[d]].join("=");c.push(b)}return c.join("&")}function n(a){var c=[];for(var b in a)a[b]&&c.push([b,'="',a[b],'"'].join(""));return c.join(" ")}function o(a){var c=[];for(var b in a)c.push(['<param name="',b,'" value="',l(a[b]),'" />'].join(""));return c.join("")}var g="object",m=true;try{var j=i.description||function(){return(new i("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}()}catch(p){j="Unavailable"}var e=j.match(/\d+/g)||[0];f[h]={available:e[0]>0,activeX:i&&!i.name,version:{original:j,array:e,string:e.join("."),major:parseInt(e[0],10)||0,minor:parseInt(e[1],10)||0,release:parseInt(e[2],10)||0},hasVersion:function(a){a=/string|number/.test(typeof a)?a.toString().split("."):/object/.test(typeof a)?[a.major,a.minor]:a||[0,0];return k(e,a)},encodeParams:true,expressInstall:"expressInstall.swf",expressInstallIsActive:false,create:function(a){if(!a.swf||this.expressInstallIsActive||!this.available&&!a.hasVersionFail)return false;if(!this.hasVersion(a.hasVersion||1)){this.expressInstallIsActive=true;if(typeof a.hasVersionFail=="function")if(!a.hasVersionFail.apply(a))return false;a={swf:a.expressInstall||this.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:this.activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:a.swf,type:"application/x-shockwave-flash",id:a.id||"flash_"+Math.floor(Math.random()*999999999),width:a.width||320,height:a.height||180,style:a.style||""};m=typeof a.useEncode!=="undefined"?a.useEncode:this.encodeParams;a.movie=a.swf;a.wmode=a.wmode||"opaque";delete a.fallback;delete a.hasVersion;delete a.hasVersionFail;delete a.height;delete a.id;delete a.swf;delete a.useEncode;delete a.width;var c=document.createElement("div");c.innerHTML=["<object ",n(attrs),">",o(a),"</object>"].join("");return c.firstChild}};f.fn[h]=function(a){var c=this.find(g).andSelf().filter(g);/string|object/.test(typeof a)&&this.each(function(){var b=f(this),d;a=typeof a==g?a:{swf:a};a.fallback=this;if(d=f[h].create(a)){b.children().remove();b.html(d)}});typeof a=="function"&&c.each(function(){var b=this;b.jsInteractionTimeoutMs=b.jsInteractionTimeoutMs||0;if(b.jsInteractionTimeoutMs<660)b.clientWidth||b.clientHeight?a.call(b):setTimeout(function(){f(b)[h](a)},b.jsInteractionTimeoutMs+66)});return c}})(jQuery,"flash",navigator.plugins["Shockwave Flash"]||window.ActiveXObject);
/* jquery.printArea */
(function($){var counter=0;var modes={iframe:"iframe",popup:"popup"};var defaults={mode:modes.iframe,popHt:500,popWd:400,popX:200,popY:200,popTitle:'',popClose:false};var settings={};$.fn.printArea=function(options)
{$.extend(settings,defaults,options);counter++;var idPrefix="printArea_";$("[id^="+idPrefix+"]").remove();var ele=$(this);settings.id=idPrefix+counter;var writeDoc;var printWindow;switch(settings.mode)
{case modes.iframe:var f=new Iframe();writeDoc=f.doc;printWindow=f.contentWindow||f;break;case modes.popup:printWindow=new Popup();writeDoc=printWindow.doc;}
writeDoc.open();writeDoc.write("<html>"+getHead()+getBody(ele)+"</html>");writeDoc.close();printWindow.focus();printWindow.print();if(settings.mode==modes.popup&&settings.popClose)
printWindow.close();}
function getHead()
{var head="<head><title>"+settings.popTitle+"</title>";$(document).find("link").filter(function(){return $(this).attr("rel").toLowerCase()=="stylesheet";}).filter(function(){var media=$(this).attr("media");return(media.toLowerCase()==""||media.toLowerCase()=="print")}).each(function(){head+='<link type="text/css" rel="stylesheet" href="'+$(this).attr("href")+'" >';});head+="</head>";return head;}
function getBody(printElement)
{var body="<body>";body+='<div class="'+$(printElement).attr("class")+'">'+$(printElement).html()+'</div>';body+="</body>";return body;}
function Iframe()
{var frameId=settings.id;var iframeStyle='border:0;position:absolute;width:0px;height:0px;left:0px;top:0px;';var iframe;try
{iframe=document.createElement('iframe');document.body.appendChild(iframe);$(iframe).attr({style:iframeStyle,id:frameId,src:""});iframe.doc=null;iframe.doc=iframe.contentDocument?iframe.contentDocument:(iframe.contentWindow?iframe.contentWindow.document:iframe.document);}
catch(e){throw e+". iframes may not be supported in this browser.";}
if(iframe.doc==null)throw"Cannot find document.";return iframe;}
function Popup()
{var windowAttr="location=yes,statusbar=no,directories=no,menubar=no,titlebar=no,toolbar=no,dependent=no";windowAttr+=",width="+settings.popWd+",height="+settings.popHt;windowAttr+=",resizable=yes,screenX="+settings.popX+",screenY="+settings.popY+",personalbar=no,scrollbars=no";var newWin=window.open("","_blank",windowAttr);newWin.doc=newWin.document;return newWin;}})(jQuery);







