/***** JQUERY SWFOBJECT *****/

(function(F,C){var D=function(H){var G,I=[];for(G in H){if(/string|number/.test(typeof H[G])&&H[G]!==""){I.push(G+'="'+H[G]+'"')}}return I[A]("")},E=function(I){var G,K,J=[],H;if(typeof I=="object"){for(G in I){if(typeof I[G]=="object"){H=[];for(K in I[G]){H.push([K,"=",encodeURIComponent(I[G][K])][A](""))}I[G]=H[A]("&amp;")}if(I[G]){J.push(['<param name="',G,'" value="',I[G],'" />'][A](""))}}I=J[A]("")}return I},B=false,A="join";F[C]=(function(){try{var G="0,0,0",H=navigator.plugins["Shockwave Flash"]||ActiveXObject;G=H.description||(function(){try{return(new H("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(J){}}())}catch(I){}G=G.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+[d|r]|,)(\d+)/);return{available:G[1]>0,activeX:H&&!H.name,version:{major:G[1]*1,minor:G[2]*1,release:G[3]*1},hasVersion:function(K){var N=this.version,L="major",M="minor",J="release";K=(/string|number/.test(typeof K))?K.toString().split("."):K||[0,0,0];K=[K[L]||K[0]||N[L],K[M]||K[1]||N[M],K[J]||K[2]||N[J]];return(K[0]<N[L])||(K[0]==N[L]&&K[1]<N[M])||(K[0]==N[L]&&K[1]==N[M]&&K[2]<=N[J])},expressInstall:"expressInstall.swf",create:function(J){if(!F[C].available||B||!typeof J=="object"||!J.swf){return false}if(J.hasVersion&&!F[C].hasVersion(J.hasVersion)){J={swf:J.expressInstall||F[C].expressInstall,attrs:{id:J.id||"SWFObjectExprInst",name:J.name,height:Math.max(J.height||137),width:Math.max(J.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:(F[C].activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};B=true}else{J=F.extend(true,{attrs:{id:J.id,name:J.name,height:J.height||180,width:J.width||320},params:{wmode:J.wmode||"opaque",flashvars:J.flashvars}},J)}if(F[C].activeX){J.attrs.classid=J.attrs.classid||"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";J.params.movie=J.params.movie||J.swf}else{J.attrs.type=J.attrs.classid||"application/x-shockwave-flash";J.attrs.data=J.attrs.data||J.swf}return["<object ",D(J.attrs),">",E(J.params),"</object>"][A]("")}}}());F.fn[C]=function(G){if(typeof G=="object"){this.each(function(){var I=document.createElement(C);var H=F[C].create(G);if(H){I.innerHTML=H;if(I.childNodes[0]){this.appendChild(I.childNodes[0])}}})}else{if(typeof G=="function"){this.find("object").andSelf().filter("object").each(function(){var I=this,H="jsInteractionTimeoutMs";I[H]=I[H]||0;if(I[H]<660){if(I.clientWidth||I.clientHeight){G.call(this)}else{setTimeout(function(){F(I)[C](G)},I[H]+66)}}})}}return this}}(jQuery,"flash"));

/***** Cookie plugin *****/

jQuery.jcookie=function(d,e,b){if(arguments.length>1&&(e===null||typeof e!=="object")){b=jQuery.extend({},b);if(e===null){b.expires=-1}if(typeof b.expires==="number"){var g=b.expires,c=b.expires=new Date();c.setDate(c.getDate()+g)}return(document.cookie=[encodeURIComponent(d),"=",b.raw?String(e):encodeURIComponent(String(e)),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join(""))}b=e||{};var a,f=b.raw?function(h){return h}:decodeURIComponent;return(a=new RegExp("(?:^|; )"+encodeURIComponent(d)+"=([^;]*)").exec(document.cookie))?f(a[1]):null};


/***** WICKEDWEB LIGHTBOX v1.1 | COPYRIGHT WICKEDWEB 2010 *****/

function querySt(b,a){valueArray=a.split("?").join("&").split("&");for(i=0;i<valueArray.length;i++){result=valueArray[i].split("=");if(result[0]==b){return result[1]}}}function animateLightBox(){$("#lightBoxContent").stop().animate({width:$("#lightBoxInner").outerWidth(),height:$("#lightBoxInner").outerHeight(),marginTop:(-(($("#lightBoxInner").outerHeight()+($("#lightBoxContent").outerHeight()-$("#lightBoxContent").outerHeight()))/2)),marginLeft:(-(($("#lightBoxInner").outerWidth()+($("#lightBoxContent").outerWidth()-$("#lightBoxContent").outerWidth()))/2)),opacity:1},500,function(){$("#lightBoxContent").css("filter","");$("#lightBoxInner, #closeLightBoxBtn").css("visibility","visible");$("#lightBoxInner, #closeLightBoxBtn").stop().fadeTo(500,1,function(){$("#lightBoxContent, #closeLightBoxBtn").css("filter","");$("#lightBoxInner, #closeLightBoxBtn").attr("style","").css("filter","")})})}function detectContent(b){$("#lightBoxInner").empty();$("#lightBoxInner").width("auto").height("auto");$("#lightBoxContent").css("overflow","hidden").width($("#lightBoxContent").width()).height($("#lightBoxContent").height()).css("margin",(-($("#lightBoxContent").outerHeight()/2))+"px 0 0 "+(-($("#lightBoxContent").outerWidth()/2))+"px");myTitle=querySt("title",b);myWidth=querySt("width",b);myHeight=querySt("height",b);if(myWidth!==undefined){$("#lightBoxInner").width(parseInt(myWidth))}if(myHeight!==undefined){$("#lightBoxInner").height(parseInt(myHeight))}if(b.indexOf("#")>-1){if(b.indexOf("?")>-1){b=b.slice(b.indexOf("#"),b.indexOf("?"))}else{b=b.slice(b.indexOf("#"))}$(b).clone().appendTo("#lightBoxInner").show();animateLightBox()}else{if(b.indexOf(".html")>-1||b.indexOf(".htm")>-1||b.indexOf(".php")>-1||b.indexOf(".aspx")>-1){if($("#lightBoxContent:visible").size()<=0){animateLightBox()}$("#lightBoxInner").load(b,"",function(){animateLightBox()})}else{if(b.indexOf(".jpg")>-1||b.indexOf(".gif")>-1||b.indexOf(".png")>-1||b.indexOf(".bmp")>-1){if($("#lightBoxContent:visible").size()<=0){animateLightBox()}var a=new Image();a.onload=function(c){$("#lightBoxInner, #closeLightBoxBtn").fadeTo(0,0,function(){$("#lightBoxInner").html(a);animateLightBox()})};a.src=b}}}}function showLightBox(a){$("#lightBoxInner, #closeLightBoxBtn").css("visibility","hidden");if($("#lightBoxContent:visible").size()>0){detectContent(a)}else{$("#lightBox").stop().show().fadeTo(0,0).fadeTo(500,0.75,function(){$("#lightBoxContent").stop().show().fadeTo(0,0,function(){detectContent(a)})})}}function openLightBox(a){if($("#lightBoxContent:visible").size()>0){$("#lightBoxInner, #closeLightBoxBtn").stop().fadeTo(500,0,function(){showLightBox(a)})}else{$("#lightBoxInner, #closeLightBoxBtn").fadeTo(0,0,function(){showLightBox(a)})}}function closeLightBox(){$("#lightBoxContent").stop().fadeTo(500,0,function(){$("#lightBox").stop().fadeTo(500,0,function(){$("#lightBoxContent").hide().width("100px").height("100px");$("#lightBox").hide();$("#lightBoxInner").empty()})})}function initWWightBox(){$("head").append('<link href="wwightbox.css" rel="stylesheet" type="text/css" />');$("body").append('<div id="lightBox" class="closeLightBox"></div><div id="lightBoxContent"><div id="lightBoxTop"><a id="closeLightBoxBtn" class="closeLightBox" href="Close"><img src="images/close_btn.gif" width="18" height="18" /></a></div><div id="lightBoxMid"><div id="lightBoxInner"></div></div></div>')}$(".lightBox").live("click",function(a){openLightBox($(this).attr("href"));return false});$(".closeLightBox").live("click",function(){closeLightBox();return false});$(document).keypress(function(a){if($("#lightBoxContent:visible").size()>0&&a.keyCode=="27"){a.preventDefault();closeLightBox()}});

