(function(a){function h(e,b){return parseInt(a.css(e,b))||0}function k(e){e=parseInt(e).toString(16);return e.length<2?"0"+e:e}function u(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var b=a.css(e,"backgroundColor");if(b!="rgba(0, 0, 0, 0)"){if(b.indexOf("rgb")>=0){e=b.match(/\d+/g);return"#"+k(e[0])+k(e[1])+k(e[2])}if(b&&b!="transparent")return b}}return"#ffffff"}function p(e,b,d){switch(e){case "round":return Math.round(d*(1-Math.cos(Math.asin(b/d))));case "cool":return Math.round(d* (1+Math.cos(Math.asin(b/d))));case "sharp":return Math.round(d*(1-Math.cos(Math.acos(b/d))));case "bite":return Math.round(d*Math.cos(Math.asin((d-b-1)/d)));case "slide":return Math.round(d*Math.atan2(b,d/b));case "jut":return Math.round(d*Math.atan2(d,d-b-1));case "curl":return Math.round(d*Math.atan(b));case "tear":return Math.round(d*Math.cos(b));case "wicked":return Math.round(d*Math.tan(b));case "long":return Math.round(d*Math.sqrt(b));case "sculpt":return Math.round(d*Math.log(d-b-1,d));case "dog":return b& 1?b+1:d;case "dog2":return b&2?b+1:d;case "dog3":return b&3?b+1:d;case "fray":return b%2*d;case "notch":return d;case "bevel":return b+1}}var l=a.browser.mozilla&&/gecko/i.test(navigator.userAgent),r=a.browser.safari&&a.browser.version>=3,s=a.browser.msie&&function(){var e=document.createElement("div");try{e.style.setExpression("width","0+0")}catch(b){return false}return true}();a.fn.corner=function(e){if(this.length==0){if(!a.isReady&&this.selector){var b=this.selector,d=this.context;a(function(){a(b, d).corner(e)})}return this}return this.each(function(){var g=a(this),c=(e||g.attr(a.fn.corner.defaults.metaAttr)||"").toLowerCase(),i=/keep/.test(c),m=(c.match(/cc:(#[0-9a-f]+)/)||[])[1],j=(c.match(/sc:(#[0-9a-f]+)/)||[])[1],n=parseInt((c.match(/(\d+)px/)||[])[1])||10,w=(c.match(/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/)||["round"])[0],x={T:0,B:1};c={TL:/top|tl|left/.test(c),TR:/top|tr|right/.test(c),BL:/bottom|bl|left/.test(c),BR:/bottom|br|right/.test(c)}; if(!c.TL&&!c.TR&&!c.BL&&!c.BR)c={TL:1,TR:1,BL:1,BR:1};if(a.fn.corner.defaults.useNative&&w=="round"&&(l||r)&&!m&&!j){if(c.TL)g.css(l?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",n+"px");if(c.TR)g.css(l?"-moz-border-radius-topright":"-webkit-border-top-right-radius",n+"px");if(c.BL)g.css(l?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",n+"px");if(c.BR)g.css(l?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",n+"px")}else{g=document.createElement("div"); g.style.overflow="hidden";g.style.height="1px";g.style.backgroundColor=j||"transparent";g.style.borderStyle="solid";j={T:parseInt(a.css(this,"paddingTop"))||0,R:parseInt(a.css(this,"paddingRight"))||0,B:parseInt(a.css(this,"paddingBottom"))||0,L:parseInt(a.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!i)this.style.border="none";g.style.borderColor=m||u(this.parentNode);i=a.curCSS(this,"height");for(var q in x)if((m=x[q])&&(c.BL||c.BR)||!m&&(c.TL||c.TR)){g.style.borderStyle= "none "+(c[q+"R"]?"solid":"none")+" none "+(c[q+"L"]?"solid":"none");var o=document.createElement("div");a(o).addClass("jquery-corner");var f=o.style;m?this.appendChild(o):this.insertBefore(o,this.firstChild);if(m&&i!="auto"){if(a.css(this,"position")=="static")this.style.position="relative";f.position="absolute";f.bottom=f.left=f.padding=f.margin="0";if(s)f.setExpression("width","this.parentNode.offsetWidth");else f.width="100%"}else if(!m&&a.browser.msie){if(a.css(this,"position")=="static")this.style.position= "relative";f.position="absolute";f.top=f.left=f.right=f.padding=f.margin="0";if(s){var t=h(this,"borderLeftWidth")+h(this,"borderRightWidth");f.setExpression("width","this.parentNode.offsetWidth - "+t+'+ "px"')}else f.width="100%"}else{f.position="relative";f.margin=!m?"-"+j.T+"px -"+j.R+"px "+(j.T-n)+"px -"+j.L+"px":j.B-n+"px -"+j.R+"px -"+j.B+"px -"+j.L+"px"}for(f=0;f<n;f++){t=Math.max(0,p(w,f,n));var v=g.cloneNode(false);v.style.borderWidth="0 "+(c[q+"R"]?t:0)+"px 0 "+(c[q+"L"]?t:0)+"px";m?o.appendChild(v): o.insertBefore(v,o.firstChild)}}}})};a.fn.uncorner=function(){if(l||r)this.css(l?"-moz-border-radius":"-webkit-border-radius",0);a("div.jquery-corner",this).remove();return this};a.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery); new (function(a){a.fn.placeholder=function(h){h=h||{};var k=h.dataKey||"placeholderValue",u=h.attr||"placeholder",p=h.className||"placeholder",l=h.values||[],r=h.blockSubmit||false,s=h.blankSubmit||false,e=h.onSubmit||false,b=h.value||"",d=h.cursor_position||0;return this.filter(":input").each(function(g){a.data(this,k,l[g]||a(this).attr(u))}).each(function(){a.trim(a(this).val())===""&&a(this).addClass(p).val(a.data(this,k))}).focus(function(){a.trim(a(this).val())===a.data(this,k)&&a(this).removeClass(p).val(b); a.fn.setCursorPosition&&a(this).setCursorPosition(d)}).blur(function(){a.trim(a(this).val())===b&&a(this).addClass(p).val(a.data(this,k))}).each(function(g,c){if(r)new (function(i){a(i.form).submit(function(){return a.trim(a(i).val())!=a.data(i,k)})})(c);else if(s)new (function(i){a(i.form).submit(function(){a.trim(a(i).val())==a.data(i,k)&&a(i).removeClass(p).val("");return true})})(c);else e&&new (function(i){a(i.form).submit(e)})(c)})}})(jQuery); $(document).ready(function(){$("#main").corner();$("#email").corner("3px");$(".error").corner("3px");$("#email").placeholder({className:"email_grey"})});