$(document).ready(function(){startherup()});function ResizeFrame(){var a=jQuery("#contentHolder").width();var b=jQuery("#contentHolder").height()+10;parent.$.fn.colorbox.myResize(a,b)}function startherup(){$("#uploader input[type=file]").each(function(b){$(this).change(function(){$(".overlay-reveal").eq(b).slideDown("fast",function(){ResizeFrame()})});$(".clear-link").eq(b).bind("click",function(d){var c=b+1;$("#fuImage"+c).change(function(){$(".overlay-reveal").eq(b).slideDown("fast",function(){ResizeFrame()})});clearForm(b);return false})});$(".cancel-button").bind("click",function(){parent.$.colorbox.close();return false});isOpen();var a={beforeSubmit:showRequest,success:showResponse}}function isOpen(){$(".overlay-reveal").addClass("closed").each(function(b){var a=("#uploadHasFile"+b).toString();if($(a).val()!=""){$(".overlay-reveal").eq(b).removeClass("closed")}}).eq(0).removeClass("closed");ResizeFrame()}function showRequest(b,d,c){var a=$.param(b);return true}function showResponse(d,b,c,a){alert("status: "+b+"\n\nresponseText: \n"+d+"\n\nThe output div should have already been updated with the responseText.")}function success(){$("div.overlayForm").fadeTo("fast",0).empty();$("#cboxLoadedContent").load($thanks,function(){resizer()})}function clearForm(a){$(".overlay-reveal").eq(a).slideUp("fast",function(){$(":input",this).val("");ResizeFrame()})}function resizer(){}function on(){$(this).addClass("on")}function off(){$(this).removeClass("on")}function updateHeaderH3(){var a={src:"/content/flash/helveticaThin.swf",ratios:[6,1.41,9,1.35,15,1.29,21,1.25,22,1.22,27,1.24,29,1.21,34,1.22,41,1.21,45,1.2,46,1.21,59,1.2,68,1.19,69,1.2,96,1.19,97,1.18,102,1.19,103,1.18,107,1.19,108,1.18,112,1.19,114,1.18,116,1.19,120,1.18,121,1.19,1.18]};sIFR.useStyleCheck=true;sIFR.activate(a);sIFR.replace(a,{selector:"#colorboxh3",wmode:"transparent",selectable:false,fixFocus:true,css:[".sIFR-root {color: #3D6FB7}"]})};
