(function(c){var i=c.browser.msie&&parseInt(c.browser.version)==6&&typeof window.XMLHttpRequest!="object",f=null,e=[];c.modal=function(a,b){return c.modal.impl.init(a,b)};c.modal.close=function(){c.modal.impl.close()};c.fn.modal=function(a){return c.modal.impl.init(this,a)};c.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:200,minWidth:300,maxHeight:null,
maxWidth:null,autoResize:false,autoPosition:true,zIndex:1E3,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,onOpen:null,onShow:null,onClose:null};c.modal.impl={o:null,d:{},init:function(a,b){var d=this;if(d.d.data)return false;f=c.browser.msie&&!c.boxModel;d.o=c.extend({},c.modal.defaults,b);d.zIndex=d.o.zIndex;d.occb=false;if(typeof a=="object"){a=a instanceof jQuery?a:c(a);if(a.parent().parent().size()>
0){d.d.parentNode=a.parent();if(!d.o.persist)d.d.orig=a.clone(true)}}else if(typeof a=="string"||typeof a=="number")a=c("<div></div>").html(a);else{alert("SimpleModal Error: Unsupported data type: "+typeof a);return d}d.create(a);d.open();c.isFunction(d.o.onShow)&&d.o.onShow.apply(d,[d.d]);return d},create:function(a){var b=this;e=b.getDimensions();if(i)b.d.iframe=c('<iframe src="javascript:false;"></iframe>').css(c.extend(b.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:e[0],width:e[1],
zIndex:b.o.zIndex,top:0,left:0})).appendTo(b.o.appendTo);b.d.overlay=c("<div></div>").attr("id",b.o.overlayId).addClass("simplemodal-overlay").css(c.extend(b.o.overlayCss,{display:"none",opacity:b.o.opacity/100,height:e[0],width:e[1],position:"fixed",left:0,top:0,zIndex:b.o.zIndex+1})).appendTo(b.o.appendTo);b.d.container=c("<div></div>").attr("id",b.o.containerId).addClass("simplemodal-container").css(c.extend(b.o.containerCss,{display:"none",position:"fixed",zIndex:b.o.zIndex+2})).append(b.o.close&&
b.o.closeHTML?c(b.o.closeHTML).addClass(b.o.closeClass):"").appendTo(b.o.appendTo);b.d.wrap=c("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(b.d.container);b.d.data=a.attr("id",a.attr("id")||b.o.dataId).addClass("simplemodal-data").css(c.extend(b.o.dataCss,{display:"none"})).appendTo("body");b.setContainerDimensions();b.d.data.appendTo(b.d.wrap);if(i||f)b.fixIE()},bindEvents:function(){var a=this;c("."+a.o.closeClass).bind("click.simplemodal",
function(b){b.preventDefault();a.close()});a.o.close&&a.o.overlayClose&&a.d.overlay.bind("click.simplemodal",function(b){b.preventDefault();a.close()});c(document).bind("keydown.simplemodal",function(b){if(a.o.focus&&b.keyCode==9)a.watchTab(b);else if(a.o.close&&a.o.escClose&&b.keyCode==27){b.preventDefault();a.close()}});c(window).bind("resize.simplemodal",function(){e=a.getDimensions();a.setContainerDimensions(true);if(i||f)a.fixIE();else{a.d.iframe&&a.d.iframe.css({height:e[0],width:e[1]});a.d.overlay.css({height:e[0],
width:e[1]})}})},unbindEvents:function(){c("."+this.o.closeClass).unbind("click.simplemodal");c(document).unbind("keydown.simplemodal");c(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var a=this,b=a.o.position;c.each([a.d.iframe||null,a.d.overlay,a.d.container],function(d,h){if(h){var g=h[0].style;g.position="absolute";if(d<2){g.removeExpression("height");g.removeExpression("width");g.setExpression("height",'document.body.scrollHeight > document.body.clientHeight ? document.body.scrollHeight : document.body.clientHeight + "px"');
g.setExpression("width",'document.body.scrollWidth > document.body.clientWidth ? document.body.scrollWidth : document.body.clientWidth + "px"')}else{var j;if(b&&b.constructor==Array){d=b[0]?typeof b[0]=="number"?b[0].toString():b[0].replace(/px/,""):h.css("top").replace(/px/,"");d=d.indexOf("%")==-1?d+' + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"':parseInt(d.replace(/%/,""))+' * ((document.documentElement.clientHeight || document.body.clientHeight) / 100) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';
if(b[1]){j=typeof b[1]=="number"?b[1].toString():b[1].replace(/px/,"");j=j.indexOf("%")==-1?j+' + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"':parseInt(j.replace(/%/,""))+' * ((document.documentElement.clientWidth || document.body.clientWidth) / 100) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}}else{d='(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';
j='(document.documentElement.clientWidth || document.body.clientWidth) / 2 - (this.offsetWidth / 2) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}g.removeExpression("top");g.removeExpression("left");g.setExpression("top",d);g.setExpression("left",j)}}})},focus:function(a){var b=this;a=c(":input:enabled:visible:"+(a||"first"),b.d.wrap);a.length>0?a.focus():b.d.wrap.focus()},getDimensions:function(){var a=c(window);return[c.browser.opera&&
c.browser.version>"9.5"&&c.fn.jquery<="1.2.6"?document.documentElement.clientHeight:c.browser.opera&&c.browser.version<"9.5"&&c.fn.jquery>"1.2.6"?window.innerHeight:a.height(),a.width()]},getVal:function(a){return a=="auto"?0:a.indexOf("%")>0?a:parseInt(a.replace(/px/,""))},setContainerDimensions:function(a){var b=this;if(!a||a&&b.o.autoResize){a=b.getVal(b.d.container.css("height"));var d=b.getVal(b.d.container.css("width")),h=b.d.data.outerHeight(true),g=b.d.data.outerWidth(true),j=b.o.maxHeight&&
b.o.maxHeight<e[0]?b.o.maxHeight:e[0],k=b.o.maxWidth&&b.o.maxWidth<e[1]?b.o.maxWidth:e[1];a=a?a>j?j:a:h?h>j?j:h<b.o.minHeight?b.o.minHeight:h:b.o.minHeight;d=d?d>k?k:d:g?g>k?k:g<b.o.minWidth?b.o.minWidth:g:b.o.minWidth;b.d.container.css({height:a,width:d});if(h>a||g>d)b.d.wrap.css({overflow:"auto"})}b.o.autoPosition&&b.setPosition()},setPosition:function(){var a=this,b,d;b=e[0]/2-a.d.container.outerHeight(true)/2;d=e[1]/2-a.d.container.outerWidth(true)/2;if(a.o.position&&Object.prototype.toString.call(a.o.position)===
"[object Array]"){b=a.o.position[0]||b;d=a.o.position[1]||d}else{b=b;d=d}a.d.container.css({left:d,top:b})},watchTab:function(a){var b=this;if(c(a.target).parents(".simplemodal-container").length>0){b.inputs=c(":input:enabled:visible:first, :input:enabled:visible:last",b.d.data[0]);if(!a.shiftKey&&a.target==b.inputs[b.inputs.length-1]||a.shiftKey&&a.target==b.inputs[0]||b.inputs.length==0){a.preventDefault();var d=a.shiftKey?"last":"first";setTimeout(function(){b.focus(d)},10)}}else{a.preventDefault();
setTimeout(function(){b.focus()},10)}},open:function(){var a=this;a.d.iframe&&a.d.iframe.show();if(c.isFunction(a.o.onOpen))a.o.onOpen.apply(a,[a.d]);else{a.d.overlay.show();a.d.container.show();a.d.data.show()}a.focus();a.bindEvents()},close:function(){var a=this;if(!a.d.data)return false;a.unbindEvents();if(c.isFunction(a.o.onClose)&&!a.occb){a.occb=true;a.o.onClose.apply(a,[a.d])}else{if(a.d.parentNode)if(a.o.persist)a.d.data.hide().appendTo(a.d.parentNode);else{a.d.data.hide().remove();a.d.orig.appendTo(a.d.parentNode)}else a.d.data.hide().remove();
a.d.container.hide().remove();a.d.overlay.hide().remove();a.d.iframe&&a.d.iframe.hide().remove();a.d={}}}}})(jQuery);
jQuery.cookie=function(c,i,f){if(typeof i!="undefined"){f=f||{};if(i===null){i="";f.expires=-1}var e="";if(f.expires&&(typeof f.expires=="number"||f.expires.toUTCString)){if(typeof f.expires=="number"){e=new Date;e.setTime(e.getTime()+f.expires*24*60*60*1E3)}else e=f.expires;e="; expires="+e.toUTCString()}var a=f.path?"; path="+f.path:"",b=f.domain?"; domain="+f.domain:"";f=f.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(i),e,a,b,f].join("")}else{i=null;if(document.cookie&&document.cookie!=
""){f=document.cookie.split(";");for(e=0;e<f.length;e++){a=jQuery.trim(f[e]);if(a.substring(0,c.length+1)==c+"="){i=decodeURIComponent(a.substring(c.length+1));break}}}return i}};
(function(c){function i(a,b){var d=a.data(f),h=d.settings,g=a.children(":visible:first"),j=h.direction===e?g.next(b).length?g.next(b):a.children(b+":first"):g.prev(b).length?g.prev(b):a.children(b+":last");h.callback.call(a,g,j,h);if(d.timer)d.timer=setTimeout(function(){i(a,b)},h.delay)}var f="flipbook",e="next";c.fn.flipbook=function(){for(var a={},b="",d=arguments,h=d[0],g=1;g<d.length;g++){var j=d[g];if(typeof j==="string")b=j;else a=j}return this.each(function(){var k=c(this),m,l=k.data(f);if(l){if(l.timer){clearTimeout(l.timer);
l.timer=0}m=c.extend(l.settings,a)}else{l={};k.data(f,l);m=c.extend({},c.flipbook.defaults,a);k.css("position")&&k.css("position","relative");k.children().css(m.css).css({position:"absolute"}).hide()}l.settings=m;if(h==="play"){l.timer=1;i(k,b)}else if(h===e||h==="prev"){m.direction=h;i(k,b)}})};c.flipbook={ver:"1.0",fade:function(a,b,d){a.css({opacity:1,"z-index":1}).animate({opacity:0},d.duration,function(){a.hide()});b.css({opacity:a.length?0:d.first,"z-index":2}).show().animate({opacity:1},d.duration)},
loadIMG:function(a,b,d){b.filter("img").attr("src",b.attr("alt"));c.flipbook.fade(a,b,d)}};c.flipbook.defaults={duration:1E3,delay:5E3,css:{left:0,top:0},direction:e,first:1,callback:c.flipbook.fade}})(jQuery);$(document).ready(function(){$(".redbtn").css({"background-color":"transparent","background-image":"none","padding-left":0,"padding-right":0,"margin-left":0,"margin-right":0}).wrapInner("<div><div><div></div></div></div>")});
function popupWindow(c){window.open(c,"","width=687,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=yes,resizable=yes");return false}function GetCookie(c){var i={};c=jQuery.cookie(c);if(typeof c==="string"){c=c.split("&");for(var f=0;f<c.length;f++){var e=c[f].split("=");if(e.length==2)i[e[0]]=e[1]}}return i};
