/* jQuery Corners 1.7 */
$.fn.corner=function(o){function t(a){var a=parseInt(a).toString(16);return(a.length<2)?"0"+a:a}function z(b){for(;b&&b.nodeName.toLowerCase()!="html";b=b.parentNode){var a=jQuery.css(b,"backgroundColor");if(a.indexOf("rgb")>=0){rgb=a.match(/\d+/g);return"#"+t(rgb[0])+t(rgb[1])+t(rgb[2])}if(a&&a!="transparent"){return a}}return"#ffffff"}function v(a){return Math.round(n*(1-Math.cos(Math.asin(a/n))))}o=(o||"").toLowerCase();var x=/keep/.test(o);var p=((o.match(/cc:(#[0-9a-f]+)/)||[])[1]);var s=((o.match(/sc:(#[0-9a-f]+)/)||[])[1]);var n=parseInt((o.match(/(\d+)px/)||[])[1])||10;var u=/round/;var q=((o.match(u)||["round"])[0]);var r={T:0,B:1};var w={TL:/top|tl/.test(o),TR:/top|tr/.test(o),BL:/bottom|bl/.test(o),BR:/bottom|br/.test(o)};if(!w.TL&&!w.TR&&!w.BL&&!w.BR){w={TL:1,TR:1,BL:1,BR:1}}var y=document.createElement("div");y.style.overflow="hidden";y.style.height="1px";y.style.backgroundColor=s||"transparent";y.style.borderStyle="solid";return this.each(function(j){var g={T:parseInt(jQuery.css(this,"paddingTop"))||0,R:parseInt(jQuery.css(this,"paddingRight"))||0,B:parseInt(jQuery.css(this,"paddingBottom"))||0,L:parseInt(jQuery.css(this,"paddingLeft"))||0};if(jQuery.browser.msie){this.style.zoom=1}if(!x){this.style.border="none"}y.style.borderColor=p||z(this.parentNode);var b=jQuery.curCSS(this,"height");for(var h in r){var c=r[h];y.style.borderStyle="none "+(w[h+"R"]?"solid":"none")+" none "+(w[h+"L"]?"solid":"none");var d=document.createElement("div");var f=d.style;c?this.appendChild(d):this.insertBefore(d,this.firstChild);if(c&&b!="auto"){if(jQuery.css(this,"position")=="static"){this.style.position="relative"}f.position="absolute";f.bottom=f.left=f.padding=f.margin="0";if(jQuery.browser.msie){f.setExpression("width","this.parentNode.offsetWidth")}else{f.width="100%"}}else{f.margin=!c?"-"+g.T+"px -"+g.R+"px "+(g.T-n)+"px -"+g.L+"px":(g.B-n)+"px -"+g.R+"px -"+g.B+"px -"+g.L+"px"}for(var i=0;i<n;i++){var e=Math.max(0,v(i));var a=y.cloneNode(false);a.style.borderWidth="0 "+(w[h+"R"]?e:0)+"px 0 "+(w[h+"L"]?e:0)+"px";c?d.appendChild(a):d.insertBefore(a,d.firstChild)}}})};

$(document).ready(function(){
	$.fn.colorbox.settings.bgOpacity = "0.9";
});


