(function(b,a){b.fn.scrollbar=function(d){var c=b.extend({},b.fn.scrollbar.defaults,d);return this.each(function(){var e=b(this),f={arrows:c.arrows};if(c.containerHeight!="auto"){e.height(c.containerHeight)}f.containerHeight=e.height();f.contentHeight=b.fn.scrollbar.contentHeight(e);if(f.contentHeight<=f.containerHeight){return true}var g=new b.fn.scrollbar.Scrollbar(e,f,c);g.buildHtml().initHandle().appendEvents()})};b.fn.scrollbar.defaults={containerHeight:"auto",arrows:true,handleHeight:"auto",handleMinHeight:30,scrollSpeed:50,scrollStep:20,scrollSpeedArrows:40,scrollStepArrows:3};b.fn.scrollbar.Scrollbar=function(c,e,d){this.container=c;this.props=e;this.opts=d;this.mouse={};this.props.arrows=this.container.hasClass("no-arrows")?false:this.props.arrows};b.fn.scrollbar.Scrollbar.prototype={buildHtml:function(){this.container.children().wrapAll('<div class="scrollbar-pane"/>');this.container.append('<div class="scrollbar-handle-container"><div class="scrollbar-handle"/></div>');if(this.props.arrows){this.container.append('<div class="scrollbar-handle-up"/>').append('<div class="scrollbar-handle-down"/>')}var c=this.container.height();this.pane=this.container.find(".scrollbar-pane");this.handle=this.container.find(".scrollbar-handle");this.handleContainer=this.container.find(".scrollbar-handle-container");this.handleArrows=this.container.find(".scrollbar-handle-up, .scrollbar-handle-down");this.handleArrowUp=this.container.find(".scrollbar-handle-up");this.handleArrowDown=this.container.find(".scrollbar-handle-down");this.pane.defaultCss({top:0,left:0});this.handleContainer.defaultCss({right:0});this.handle.defaultCss({top:0,right:0});this.handleArrows.defaultCss({right:0});this.handleArrowUp.defaultCss({top:0});this.handleArrowDown.defaultCss({bottom:0});this.container.css({position:this.container.css("position")==="absolute"?"absolute":"relative",overflow:"hidden",height:c});this.pane.css({position:"absolute",overflow:"visible",height:"auto"});this.handleContainer.css({position:"absolute",top:this.handleArrowUp.outerHeight(true),height:(this.props.containerHeight-this.handleArrowUp.outerHeight(true)-this.handleArrowDown.outerHeight(true))+"px"});this.handle.css({position:"absolute",cursor:"pointer"});this.handleArrows.css({position:"absolute",cursor:"pointer"});return this},initHandle:function(){this.props.handleContainerHeight=this.handleContainer.height();this.props.contentHeight=this.pane.height();this.props.handleHeight=this.opts.handleHeight=="auto"?Math.max(Math.ceil(this.props.containerHeight*this.props.handleContainerHeight/this.props.contentHeight),this.opts.handleMinHeight):this.opts.handleHeight;this.handle.height(this.props.handleHeight);this.handle.height(2*this.handle.height()-this.handle.outerHeight(true));this.props.handleTop={min:0,max:this.props.handleContainerHeight-this.props.handleHeight};this.props.handleContentRatio=(this.props.contentHeight-this.props.containerHeight)/(this.props.handleContainerHeight-this.props.handleHeight);this.handle.top=0;return this},appendEvents:function(){this.handle.bind("mousedown.handle",b.proxy(this,"startOfHandleMove"));this.handleContainer.bind("mousedown.handle",b.proxy(this,"onHandleContainerMousedown"));this.handleContainer.bind("mouseenter.container mouseleave.container",b.proxy(this,"onHandleContainerHover"));this.handleArrows.bind("mousedown.arrows",b.proxy(this,"onArrowsMousedown"));this.container.bind("mousewheel.container",b.proxy(this,"onMouseWheel"));this.container.bind("mouseenter.container mouseleave.container",b.proxy(this,"onContentHover"));this.handle.bind("click.scrollbar",this.preventClickBubbling);this.handleContainer.bind("click.scrollbar",this.preventClickBubbling);this.handleArrows.bind("click.scrollbar",this.preventClickBubbling);return this},mousePosition:function(c){return c.pageY||(c.clientY+(a.documentElement.scrollTop||a.body.scrollTop))||0},startOfHandleMove:function(c){c.preventDefault();c.stopPropagation();this.mouse.start=this.mousePosition(c);
this.handle.start=this.handle.top;b(a).bind("mousemove.handle",b.proxy(this,"onHandleMove")).bind("mouseup.handle",b.proxy(this,"endOfHandleMove"));this.handle.addClass("move");this.handleContainer.addClass("move")},onHandleMove:function(c){c.preventDefault();var d=this.mousePosition(c)-this.mouse.start;this.handle.top=this.handle.start+d;this.setHandlePosition();this.setContentPosition()},endOfHandleMove:function(c){b(a).unbind(".handle");this.handle.removeClass("move");this.handleContainer.removeClass("move")},setHandlePosition:function(){this.handle.top=(this.handle.top>this.props.handleTop.max)?this.props.handleTop.max:this.handle.top;this.handle.top=(this.handle.top<this.props.handleTop.min)?this.props.handleTop.min:this.handle.top;this.handle[0].style.top=this.handle.top+"px"},setContentPosition:function(){this.pane.top=-1*this.props.handleContentRatio*this.handle.top;this.pane[0].style.top=this.pane.top+"px"},onMouseWheel:function(c,d){this.handle.top-=d;this.setHandlePosition();this.setContentPosition();if(this.handle.top>this.props.handleTop.min&&this.handle.top<this.props.handleTop.max){c.preventDefault()}},onHandleContainerMousedown:function(d){d.preventDefault();if(!b(d.target).hasClass("scrollbar-handle-container")){return false}this.handle.direction=(this.handle.offset().top<this.mousePosition(d))?1:-1;this.handle.step=this.opts.scrollStep;var c=this;b(a).bind("mouseup.handlecontainer",function(){clearInterval(e);c.handle.unbind("mouseenter.handlecontainer");b(a).unbind("mouseup.handlecontainer")});this.handle.bind("mouseenter.handlecontainer",function(){clearInterval(e)});var e=setInterval(b.proxy(this.moveHandle,this),this.opts.scrollSpeed)},onArrowsMousedown:function(c){c.preventDefault();this.handle.direction=b(c.target).hasClass("scrollbar-handle-up")?-1:1;this.handle.step=this.opts.scrollStepArrows;b(c.target).addClass("move");var d=setInterval(b.proxy(this.moveHandle,this),this.opts.scrollSpeedArrows);b(a).one("mouseup.arrows",function(){clearInterval(d);b(c.target).removeClass("move")})},moveHandle:function(){this.handle.top=(this.handle.direction===1)?Math.min(this.handle.top+this.handle.step,this.props.handleTop.max):Math.max(this.handle.top-this.handle.step,this.props.handleTop.min);this.handle[0].style.top=this.handle.top+"px";this.setContentPosition()},onContentHover:function(c){if(c.type==="mouseenter"){this.container.addClass("hover");this.handleContainer.addClass("hover")}else{this.container.removeClass("hover");this.handleContainer.removeClass("hover")}},onHandleContainerHover:function(c){if(c.type==="mouseenter"){this.handleArrows.addClass("hover")}else{this.handleArrows.removeClass("hover")}},preventClickBubbling:function(c){c.stopPropagation()}};b.fn.scrollbar.contentHeight=function(e){var d=e.wrapInner("<div/>");var c=e.find(":first").css({overflow:"hidden"}).height();return c};b.fn.defaultCss=function(c){var d={right:"auto",left:"auto",top:"auto",bottom:"auto",position:"static"};return this.each(function(){var f=b(this);for(var e in c){if(f.css(e)===d[e]){f.css(e,c[e])}}})};b.event.special.mousewheel={setup:function(){if(this.addEventListener){this.addEventListener("mousewheel",b.fn.scrollbar.mouseWheelHandler,false);this.addEventListener("DOMMouseScroll",b.fn.scrollbar.mouseWheelHandler,false)}else{this.onmousewheel=b.fn.scrollbar.mouseWheelHandler}},teardown:function(){if(this.removeEventListener){this.removeEventListener("mousewheel",b.fn.scrollbar.mouseWheelHandler,false);this.removeEventListener("DOMMouseScroll",b.fn.scrollbar.mouseWheelHandler,false)}else{this.onmousewheel=null}}};b.fn.extend({mousewheel:function(c){return c?this.bind("mousewheel",c):this.trigger("mousewheel")},unmousewheel:function(c){return this.unbind("mousewheel",c)}});b.fn.scrollbar.mouseWheelHandler=function(h){var f=h||window.event,e=[].slice.call(arguments,1),i=0,g=true,d=0,c=0;h=b.event.fix(f);h.type="mousewheel";if(h.wheelDelta){i=h.wheelDelta/120}if(h.detail){i=-h.detail/3}if(f.axis!==undefined&&f.axis===f.HORIZONTAL_AXIS){c=0;
d=-1*i}if(f.wheelDeltaY!==undefined){c=f.wheelDeltaY/120}if(f.wheelDeltaX!==undefined){d=-1*f.wheelDeltaX/120}e.unshift(h,i,d,c);return b.event.handle.apply(this,e)}})(jQuery,document);if(jQuery){(function(a){a.extend(a.fn,{selectBox:function(i,u){var b,s="";var n=function(B,x){if(navigator.userAgent.match(/iPad|iPhone/i)){return false}if(B.tagName.toLowerCase()!=="select"){return false}B=a(B);if(B.data("selectBox-control")){return false}var w=a('<a class="selectBox" />'),z=B.attr("multiple")||parseInt(B.attr("size"))>1;var v=x||{};w.addClass(B.attr("class")).attr("style",B.attr("style")||"").attr("title",B.attr("title")||"").attr("tabindex",parseInt(B.attr("tabindex"))).css("display","inline-block").bind("focus.selectBox",function(){if(this!==document.activeElement){a(document.activeElement).blur()}if(w.hasClass("selectBox-active")){return}w.addClass("selectBox-active");B.trigger("focus")}).bind("blur.selectBox",function(){if(!w.hasClass("selectBox-active")){return}w.removeClass("selectBox-active");B.trigger("blur")});if(B.attr("disabled")){w.addClass("selectBox-disabled")}if(z){var E=j(B,"inline");w.append(E).data("selectBox-options",E).addClass("selectBox-inline").addClass("selectBox-menuShowing").bind("keydown.selectBox",function(F){k(B,F)}).bind("keypress.selectBox",function(F){c(B,F)}).bind("mousedown.selectBox",function(F){if(a(F.target).is("A.selectBox-inline")){F.preventDefault()}if(!w.hasClass("selectBox-focus")){w.focus()}}).insertAfter(B);if(!B[0].style.height){var D=B.attr("size")?parseInt(B.attr("size")):5;var y=w.clone().removeAttr("id").css({position:"absolute",top:"-9999em"}).show().appendTo("body");y.find(".selectBox-options").html("<li><a>\u00A0</a></li>");optionHeight=parseInt(y.find(".selectBox-options A:first").html("&nbsp;").outerHeight());y.remove();w.height(optionHeight*D)}g(w)}else{var A=a('<span class="selectBox-label" />'),C=a('<span class="selectBox-arrow" />');A.text(a(B).find("OPTION:selected").text()||"\u00A0");var E=j(B,"dropdown");E.appendTo("BODY");w.data("selectBox-options",E).addClass("selectBox-dropdown").append(A).append(C).bind("mousedown.selectBox",function(F){if(w.hasClass("selectBox-menuShowing")){f()}else{F.stopPropagation();E.data("selectBox-down-at-x",F.screenX).data("selectBox-down-at-y",F.screenY);m(B)}}).bind("keydown.selectBox",function(F){k(B,F)}).bind("keypress.selectBox",function(F){c(B,F)}).insertAfter(B);g(w)}B.addClass("selectBox").data("selectBox-control",w).data("selectBox-settings",v).hide()};var j=function(v,x){var w;switch(x){case"inline":w=a('<ul class="selectBox-options" />');if(v.find("OPTGROUP").length){v.find("OPTGROUP").each(function(){var y=a('<li class="selectBox-optgroup" />');y.text(a(this).attr("label"));w.append(y);a(this).find("OPTION").each(function(){var z=a("<li />"),A=a("<a />");z.addClass(a(this).attr("class"));A.attr("rel",a(this).val()).text(a(this).text());z.append(A);if(a(this).attr("disabled")){z.addClass("selectBox-disabled")}if(a(this).attr("selected")){z.addClass("selectBox-selected")}w.append(z)})})}else{v.find("OPTION").each(function(){var y=a("<li />"),z=a("<a />");y.addClass(a(this).attr("class"));z.attr("rel",a(this).val()).text(a(this).text());y.append(z);if(a(this).attr("disabled")){y.addClass("selectBox-disabled")}if(a(this).attr("selected")){y.addClass("selectBox-selected")}w.append(y)})}w.find("A").bind("mouseover.selectBox",function(y){q(v,a(this).parent())}).bind("mouseout.selectBox",function(y){t(v,a(this).parent())}).bind("mousedown.selectBox",function(y){y.preventDefault();if(!v.selectBox("control").hasClass("selectBox-active")){v.selectBox("control").focus()}}).bind("mouseup.selectBox",function(y){f();p(v,a(this).parent(),y)});g(w);return w;case"dropdown":w=a('<ul class="selectBox-dropdown-menu selectBox-options" />');if(v.find("OPTGROUP").length){v.find("OPTGROUP").each(function(){var y=a('<li class="selectBox-optgroup" />');y.text(a(this).attr("label"));w.append(y);a(this).find("OPTION").each(function(){var z=a("<li />"),A=a("<a />");z.addClass(a(this).attr("class"));A.attr("rel",a(this).val()).text(a(this).text());z.append(A);if(a(this).attr("disabled")){z.addClass("selectBox-disabled")}if(a(this).attr("selected")){z.addClass("selectBox-selected")
}w.append(z)})})}else{if(v.find("OPTION").length>0){v.find("OPTION").each(function(){var y=a("<li />"),z=a("<a />");y.addClass(a(this).attr("class"));z.attr("rel",a(this).val()).text(a(this).text());y.append(z);if(a(this).attr("disabled")){y.addClass("selectBox-disabled")}if(a(this).attr("selected")){y.addClass("selectBox-selected")}w.append(y)})}else{w.append("<li>\u00A0</li>")}}w.data("selectBox-select",v).css("display","none").appendTo("BODY").find("A").bind("mousedown.selectBox",function(y){y.preventDefault();if(y.screenX===w.data("selectBox-down-at-x")&&y.screenY===w.data("selectBox-down-at-y")){w.removeData("selectBox-down-at-x").removeData("selectBox-down-at-y");f()}}).bind("mouseup.selectBox",function(y){if(y.screenX===w.data("selectBox-down-at-x")&&y.screenY===w.data("selectBox-down-at-y")){return}else{w.removeData("selectBox-down-at-x").removeData("selectBox-down-at-y")}p(v,a(this).parent());f()}).bind("mouseover.selectBox",function(y){q(v,a(this).parent())}).bind("mouseout.selectBox",function(y){t(v,a(this).parent())});g(w);return w}};var r=function(v){v=a(v);var x=v.data("selectBox-control");if(!x){return}var w=x.data("selectBox-options");w.remove();x.remove();v.removeClass("selectBox").removeData("selectBox-control").removeData("selectBox-settings").show()};var m=function(w){w=a(w);var z=w.data("selectBox-control"),y=w.data("selectBox-settings"),x=z.data("selectBox-options");if(z.hasClass("selectBox-disabled")){return false}f();x.css({width:z.outerWidth()-(parseInt(z.css("borderLeftWidth"))+parseInt(z.css("borderLeftWidth"))),top:z.offset().top+z.outerHeight()-(parseInt(z.css("borderBottomWidth"))),left:z.offset().left});switch(y.menuTransition){case"fade":x.fadeIn(y.menuSpeed);break;case"slide":x.slideDown(y.menuSpeed);break;default:x.show(y.menuSpeed);break}var v=x.find(".selectBox-selected:first");d(w,v,true);q(w,v);z.addClass("selectBox-menuShowing");a(document).bind("mousedown.selectBox",function(A){if(a(A.target).parents().andSelf().hasClass("selectBox-options")){return}f()})};var f=function(){if(a(".selectBox-dropdown-menu").length===0){return}a(document).unbind("mousedown.selectBox");a(".selectBox-dropdown-menu").each(function(){var w=a(this),v=w.data("selectBox-select"),y=v.data("selectBox-control"),x=v.data("selectBox-settings");switch(x.menuTransition){case"fade":w.fadeOut(x.menuSpeed);break;case"slide":w.slideUp(x.menuSpeed);break;default:w.hide(x.menuSpeed);break}y.removeClass("selectBox-menuShowing")})};var p=function(w,v,B){w=a(w);v=a(v);var C=w.data("selectBox-control"),A=w.data("selectBox-settings");if(C.hasClass("selectBox-disabled")){return false}if(v.length===0||v.hasClass("selectBox-disabled")){return false}if(w.attr("multiple")){if(B.shiftKey&&C.data("selectBox-last-selected")){v.toggleClass("selectBox-selected");var x;if(v.index()>C.data("selectBox-last-selected").index()){x=v.siblings().slice(C.data("selectBox-last-selected").index(),v.index())}else{x=v.siblings().slice(v.index(),C.data("selectBox-last-selected").index())}x=x.not(".selectBox-optgroup, .selectBox-disabled");if(v.hasClass("selectBox-selected")){x.addClass("selectBox-selected")}else{x.removeClass("selectBox-selected")}}else{if(B.metaKey){v.toggleClass("selectBox-selected")}else{v.siblings().removeClass("selectBox-selected");v.addClass("selectBox-selected")}}}else{v.siblings().removeClass("selectBox-selected");v.addClass("selectBox-selected")}if(C.hasClass("selectBox-dropdown")){C.find(".selectBox-label").text(v.text())}var y=0,z=[];if(w.attr("multiple")){C.find(".selectBox-selected A").each(function(){z[y++]=a(this).attr("rel")})}else{z=v.find("A").attr("rel")}C.data("selectBox-last-selected",v);if(w.val()!==z){w.val(z);w.trigger("change")}return true};var q=function(w,v){w=a(w);v=a(v);var y=w.data("selectBox-control"),x=y.data("selectBox-options");x.find(".selectBox-hover").removeClass("selectBox-hover");v.addClass("selectBox-hover")};var t=function(w,v){w=a(w);v=a(v);var y=w.data("selectBox-control"),x=y.data("selectBox-options");
x.find(".selectBox-hover").removeClass("selectBox-hover")};var d=function(x,w,v){if(!w||w.length===0){return}x=a(x);var C=x.data("selectBox-control"),z=C.data("selectBox-options"),A=C.hasClass("selectBox-dropdown")?z:z.parent(),B=parseInt(w.offset().top-A.position().top),y=parseInt(B+w.outerHeight());if(v){A.scrollTop(w.offset().top-A.offset().top+A.scrollTop()-(A.height()/2))}else{if(B<0){A.scrollTop(w.offset().top-A.offset().top+A.scrollTop())}if(y>A.height()){A.scrollTop((w.offset().top+w.outerHeight())-A.offset().top+A.scrollTop()-A.height())}}};var k=function(v,A){v=a(v);var B=v.data("selectBox-control"),w=B.data("selectBox-options"),C=0,x=0;if(B.hasClass("selectBox-disabled")){return}switch(A.keyCode){case 8:A.preventDefault();s="";break;case 9:case 27:f();t(v);break;case 13:if(B.hasClass("selectBox-menuShowing")){p(v,w.find("LI.selectBox-hover:first"),A);if(B.hasClass("selectBox-dropdown")){f()}}else{m(v)}break;case 38:case 37:A.preventDefault();if(B.hasClass("selectBox-menuShowing")){var z=w.find(".selectBox-hover").prev("LI");C=w.find("LI:not(.selectBox-optgroup)").length;x=0;while(z.length===0||z.hasClass("selectBox-disabled")||z.hasClass("selectBox-optgroup")){z=z.prev("LI");if(z.length===0){z=w.find("LI:last")}if(++x>=C){break}}q(v,z);d(v,z)}else{m(v)}break;case 40:case 39:A.preventDefault();if(B.hasClass("selectBox-menuShowing")){var y=w.find(".selectBox-hover").next("LI");C=w.find("LI:not(.selectBox-optgroup)").length;x=0;while(y.length===0||y.hasClass("selectBox-disabled")||y.hasClass("selectBox-optgroup")){y=y.next("LI");if(y.length===0){y=w.find("LI:first")}if(++x>=C){break}}q(v,y);d(v,y)}else{m(v)}break}};var c=function(v,x){v=a(v);var y=v.data("selectBox-control"),w=y.data("selectBox-options");if(y.hasClass("selectBox-disabled")){return}switch(x.keyCode){case 9:case 27:case 13:case 38:case 37:case 40:case 39:break;default:if(!y.hasClass("selectBox-menuShowing")){m(v)}x.preventDefault();clearTimeout(b);s+=String.fromCharCode(x.charCode||x.keyCode);w.find("A").each(function(){if(a(this).text().substr(0,s.length).toLowerCase()===s.toLowerCase()){q(v,a(this).parent());d(v,a(this).parent());return false}});b=setTimeout(function(){s=""},1000);break}};var l=function(v){v=a(v);v.attr("disabled",false);var w=v.data("selectBox-control");if(!w){return}w.removeClass("selectBox-disabled")};var h=function(v){v=a(v);v.attr("disabled",true);var w=v.data("selectBox-control");if(!w){return}w.addClass("selectBox-disabled")};var e=function(v,y){v=a(v);v.val(y);y=v.val();var z=v.data("selectBox-control");if(!z){return}var x=v.data("selectBox-settings"),w=z.data("selectBox-options");z.find(".selectBox-label").text(a(v).find("OPTION:selected").text()||"\u00A0");w.find(".selectBox-selected").removeClass("selectBox-selected");w.find("A").each(function(){if(typeof(y)==="object"){for(var A=0;A<y.length;A++){if(a(this).attr("rel")==y[A]){a(this).parent().addClass("selectBox-selected")}}}else{if(a(this).attr("rel")==y){a(this).parent().addClass("selectBox-selected")}}});if(x.change){x.change.call(v)}};var o=function(C,D){C=a(C);var y=C.data("selectBox-control"),w=C.data("selectBox-settings");switch(typeof(u)){case"string":C.html(u);break;case"object":C.html("");for(var z in u){if(u[z]===null){continue}if(typeof(u[z])==="object"){var v=a('<optgroup label="'+z+'" />');for(var x in u[z]){v.append('<option value="'+x+'">'+u[z][x]+"</option>")}C.append(v)}else{var A=a('<option value="'+z+'">'+u[z]+"</option>");C.append(A)}}break}if(!y){return}y.data("selectBox-options").remove();var B=y.hasClass("selectBox-dropdown")?"dropdown":"inline",D=j(C,B);y.data("selectBox-options",D);switch(B){case"inline":y.append(D);break;case"dropdown":y.find(".selectBox-label").text(a(C).find("OPTION:selected").text()||"\u00A0");a("BODY").append(D);break}};var g=function(v){a(v).css("MozUserSelect","none").bind("selectstart",function(w){w.preventDefault()})};switch(i){case"control":return a(this).data("selectBox-control");break;case"settings":if(!u){return a(this).data("selectBox-settings")
}a(this).each(function(){a(this).data("selectBox-settings",a.extend(true,a(this).data("selectBox-settings"),u))});break;case"options":a(this).each(function(){o(this,u)});break;case"value":if(!u){return a(this).val()}a(this).each(function(){e(this,u)});break;case"enable":a(this).each(function(){l(this)});break;case"disable":a(this).each(function(){h(this)});break;case"destroy":a(this).each(function(){r(this)});break;default:a(this).each(function(){n(this,i)});break}return a(this)}})})(jQuery)};$(document).ready(function(){$(".jumpmenu").change(function(){var f=$("select option:selected").val();if(f!=""){location.href=f}});$("SELECT").selectBox({menuTransition:"fade",menuSpeed:"normal"});$(".inputClear").focus(function(){if(!$(this).attr("rel")){$(this).attr("rel",$(this).val()).val("")}else{if($(this).val()==$(this).attr("rel")){$(this).val("")}}}).blur(function(){if($(this).val()==""){$(this).val($(this).attr("rel"))}});(function(f){f.fn.checkEmail=function(){var g;this.each(function(){var h=f(this).val();g=h.indexOf("@")==-1||h.lastIndexOf(".")==-1?false:true});return g}})(jQuery);$("#sign_up_return").hide();$("#sign_up_form").submit(function(){chkeml=$("#sign_up_email input").checkEmail();fname=$("#sign_up_fname input").val();sname=$("#sign_up_sname input").val();emlval=$("#sign_up_email input").val();if(chkeml){$.ajax({type:"GET",url:"media/php/process.php",data:"emailadd="+emlval+"&fname="+fname+"&sname="+sname,success:function(f){switch(f){case"failed":message="Error adding to the database";$("#sign_up_return").html(message).fadeIn();$("#sign_up input, #sign_up_fname input, #sign_up_sname input");break;case"success":message='<p style="font-weight: bold;">Thank you. Your email has been added to our database.</p>';$("#sign_up_return").html(message).fadeIn();$("#sign_up input").not("#join").val("");break;case"email":message="Your email address is already registered";$("#sign_up_return").html(message).fadeIn();$("#sign_up_email input, #sign_up_fname input, #sign_up_sname input");$("#sign_up_return").delay(1900).slideUp();break}}})}else{$("#sign_up_return").html("Please supply a valid email address.").slideDown();$("#sign_up_return").delay(1900).html("Please supply a valid email address.").slideUp()}return false});
/*
 * jQuery Tools v1.2.5 - The missing UI library for the Web
 * 
 * scrollable/scrollable.js
 * scrollable/scrollable.autoscroll.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 */
(function(g){g.tools=g.tools||{version:"v1.2.5"},g.tools.scrollable={conf:{activeClass:"active",circular:!1,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",speed:400,vertical:!1,touch:!0,wheelSpeed:0}};function f(l,k){var n=parseInt(l.css(k),10);if(n){return n}var m=l[0].currentStyle;return m&&m.width&&parseInt(m.width,10)}function j(k,m){var l=g(m);return l.length<2?l:k.parent().find(m)}var i;function h(A,z){var y=this,x=A.add(y),w=A.children(),v=0,u=z.vertical;i||(i=y),w.length>1&&(w=g(z.items,A)),g.extend(y,{getConf:function(){return z},getIndex:function(){return v},getSize:function(){return y.getItems().size()},getNaviButtons:function(){return r.add(q)},getRoot:function(){return A},getItemWrap:function(){return w},getItems:function(){return w.children(z.item).not("."+z.clonedClass)},move:function(l,k){return y.seekTo(v+l,k)},next:function(k){return y.move(1,k)},prev:function(k){return y.move(-1,k)},begin:function(k){return y.seekTo(0,k)},end:function(k){return y.seekTo(y.getSize()-1,k)},focus:function(){i=y;return y},addItem:function(k){k=g(k),z.circular?(w.children("."+z.clonedClass+":last").before(k),w.children("."+z.clonedClass+":first").replaceWith(k.clone().addClass(z.clonedClass))):w.append(k),x.trigger("onAddItem",[k]);return y},seekTo:function(B,F,D){B.jquery||(B*=1);if(z.circular&&B===0&&v==-1&&F!==0){return y}if(!z.circular&&B<0||B>y.getSize()||B<-1){return y}var C=B;B.jquery?B=y.getItems().index(B):C=y.getItems().eq(B);var o=g.Event("onBeforeSeek");if(!D){x.trigger(o,[B,F]);if(o.isDefaultPrevented()||!C.length){return y}}var E=u?{top:-C.position().top}:{left:-C.position().left};v=B,i=y,F===undefined&&(F=z.speed),w.animate(E,F,z.easing,D||function(){x.trigger("onSeek",[B])});return y}}),g.each(["onBeforeSeek","onSeek","onAddItem"],function(k,l){g.isFunction(z[l])&&g(y).bind(l,z[l]),y[l]=function(m){m&&g(y).bind(l,m);return y}});if(z.circular){var t=y.getItems().slice(-1).clone().prependTo(w),s=y.getItems().eq(1).clone().appendTo(w);
t.add(s).addClass(z.clonedClass),y.onBeforeSeek(function(l,k,m){if(!l.isDefaultPrevented()){if(k==-1){y.seekTo(t,m,function(){y.end(0)});return l.preventDefault()}k==y.getSize()&&y.seekTo(s,m,function(){y.begin(0)})}}),y.seekTo(0,0,function(){})}var r=j(A,z.prev).click(function(){y.prev()}),q=j(A,z.next).click(function(){y.next()});!z.circular&&y.getSize()>1&&(y.onBeforeSeek(function(l,k){setTimeout(function(){l.isDefaultPrevented()||(r.toggleClass(z.disabledClass,k<=0),q.toggleClass(z.disabledClass,k>=y.getSize()-1))},1)}),z.initialIndex||r.addClass(z.disabledClass)),z.mousewheel&&g.fn.mousewheel&&A.mousewheel(function(l,k){if(z.mousewheel){y.move(k<0?1:-1,z.wheelSpeed||50);return !1}});if(z.touch){var p={};w[0].ontouchstart=function(l){var k=l.touches[0];p.x=k.clientX,p.y=k.clientY},w[0].ontouchmove=function(l){if(l.touches.length==1&&!w.is(":animated")){var k=l.touches[0],n=p.x-k.clientX,m=p.y-k.clientY;y[u&&m>0||!u&&n>0?"next":"prev"](),l.preventDefault()}}}z.keyboard&&g(document).bind("keydown.scrollable",function(k){if(z.keyboard&&!k.altKey&&!k.ctrlKey&&!g(k.target).is(":input")){if(z.keyboard!="static"&&i!=y){return}var l=k.keyCode;if(u&&(l==38||l==40)){y.move(l==38?-1:1);return k.preventDefault()}if(!u&&(l==37||l==39)){y.move(l==37?-1:1);return k.preventDefault()}}}),z.initialIndex&&y.seekTo(z.initialIndex,0,function(){})}g.fn.scrollable=function(k){var l=this.data("scrollable");if(l){return l}k=g.extend({},g.tools.scrollable.conf,k),this.each(function(){l=new h(g(this),k),g(this).data("scrollable",l)});return k.api?l:this}})(jQuery);(function(g){var f=g.tools.scrollable;f.autoscroll={conf:{autoplay:!0,interval:3000,autopause:!0}},g.fn.autoscroll=function(j){typeof j=="number"&&(j={interval:j});var i=g.extend({},f.autoscroll.conf,j),h;this.each(function(){var k=g(this).data("scrollable");k&&(h=k);var m,l=!0;k.play=function(){m||(l=!1,m=setInterval(function(){k.next()},i.interval))},k.pause=function(){m=clearInterval(m)},k.stop=function(){k.pause(),l=!0},i.autopause&&k.getRoot().add(k.getNaviButtons()).hover(k.pause,k.play),i.autoplay&&k.play()});return i.api?h:this}})(jQuery);$("#thumbs").scrollable({circular:true,speed:1000,next:".t_next",prev:".t_prev"}).autoscroll(6000);var b=$("#thumbs").data("scrollable");var a;var d=0;var c;var e="";$("#thumbs .items>div div").bind("click",function(){c=$("#thumbs .items>div div").index(this);if(!d){$("#thumbs img").each(function(){e+='<div><img width="940px" height="500px" src="'+$(this).attr("rel")+'" /></div>'});$("#gallery").append('<div class="scrollable"><div class="items">'+e+'</div></div><a class="g_prev" href="#">&lt;</a> <a class="g_next" href="#">&gt;</a>');$("#gallery").scrollable({circular:true,next:".g_next",prev:".g_prev"});a=$("#gallery").data("scrollable");$("#gallery img").bind("click",function(){$("#gallery .scrollable").slideUp();$("#thumbs .scrollable").slideDown();$("#content").slideDown();$("#gallery>a").fadeOut();$("#thumbs>a").fadeIn()});d=1}$("#gallery .scrollable").slideDown().animate({height:500});$("#gallery>a").fadeIn();$("#thumbs>a").fadeOut();$("#content").slideUp();$("#thumbs .scrollable").slideUp();a.seekTo(c,0)})});
