(function(c){function g(){var b=""+d.poptitle+"";c(document).find("link").filter(function(){return"stylesheet"==c(this).attr("rel").tolowercase()}).filter(function(){var a=c(this).attr("media");return void 0==a?!1:""==a.tolowercase()||"print"==a.tolowercase()}).each(function(){b+=''});return b+=""}function h(b){return'
'+c(b).html()+"
"}function k(b){c("input,select,textarea",b).each(function(){var a=c(this).attr("type");"radio"==a||"checkbox"==a?c(this).is(":not(:checked)")?this.removeattribute("checked"):this.setattribute("checked",!0):"text"==a?this.setattribute("value",c(this).val()):"select-multiple"==a||"select-one"==a?c(this).find("option").each(function(){c(this).is(":not(:selected)")?this.removeattribute("selected"):this.setattribute("selected",!0)}):"textarea"==a&&(a=c(this).attr("value"),c.browser.mozilla?this.firstchild?this.firstchild.textcontent=a:this.textcontent=a:this.innerhtml=a)});return b}function l(){var b=d.id,a;try{a=document.createelement("iframe"),document.body.appendchild(a),c(a).attr({style:"border:0;position:absolute;width:0px;height:0px;left:0px;top:0px;",id:b,src:""}),a.doc=null,a.doc=a.contentdocument?a.contentdocument:a.contentwindow?a.contentwindow.document:a.document}catch(e){throw e+". iframes may not be supported in this browser.";}if(null==a.doc)throw"cannot find document.";return a}function m(){var b;b="location=no,statusbar=no,directories=no,menubar=no,titlebar=no,toolbar=no,dependent=no,width=595px,height=842px,top=0,left=0,toolbar=no,scrollbars=no,personalbar=no"+(",resizable=yes,screenx="+d.popx+",screeny="+d.popy+"");b=window.open("","_blank",b);b.doc=b.document;return b}var f=0,n={mode:"iframe",popht:500,popwd:400,popx:200,popy:200,poptitle:"",popclose:!1},d={};c.fn.printarea=function(b){c.extend(d,n,b);f++;c("[id^=printarea_]").remove();b=k(c(this));d.id="printarea_"+f;var a,e;switch(d.mode){case"iframe":e=new l;a=e.doc;e=e.contentwindow||e;break;case"popup":e=new m,a=e.doc}a.open();a.write(("iframe"!=d.mode&&d.strict?'':"")+""+g()+h(b)+"");a.close();e.focus();e.print();"popup"==d.mode&&d.popclose&&e.close()}})(jquery); (function(c){function g(){var b=""+d.poptitle+"";c(document).find("link").filter(function(){return"stylesheet"==c(this).attr("rel").tolowercase()}).filter(function(){var a=c(this).attr("media");return void 0==a?!1:""==a.tolowercase()||"print"==a.tolowercase()}).each(function(){b+=''});return b+=""}function h(b){return'
'+c(b).html()+"
"}function k(b){c("input,select,textarea",b).each(function(){var a=c(this).attr("type");"radio"==a||"checkbox"==a?c(this).is(":not(:checked)")?this.removeattribute("checked"):this.setattribute("checked",!0):"text"==a?this.setattribute("value",c(this).val()):"select-multiple"==a||"select-one"==a?c(this).find("option").each(function(){c(this).is(":not(:selected)")?this.removeattribute("selected"):this.setattribute("selected",!0)}):"textarea"==a&&(a=c(this).attr("value"),c.browser.mozilla?this.firstchild?this.firstchild.textcontent=a:this.textcontent=a:this.innerhtml=a)});return b}function l(){var b=d.id,a;try{a=document.createelement("iframe"),document.body.appendchild(a),c(a).attr({style:"border:0;position:absolute;width:0px;height:0px;left:0px;top:0px;",id:b,src:""}),a.doc=null,a.doc=a.contentdocument?a.contentdocument:a.contentwindow?a.contentwindow.document:a.document}catch(e){throw e+". iframes may not be supported in this browser.";}if(null==a.doc)throw"cannot find document.";return a}function m(){var b;b="location=no,statusbar=no,directories=no,menubar=no,titlebar=no,toolbar=no,dependent=no,width=595px,height=842px,top=0,left=0,toolbar=no,scrollbars=no,personalbar=no"+(",resizable=yes,screenx="+d.popx+",screeny="+d.popy+"");b=window.open("","_blank",b);b.doc=b.document;return b}var f=0,n={mode:"iframe",popht:500,popwd:400,popx:200,popy:200,poptitle:"",popclose:!1},d={};c.fn.printarea=function(b){c.extend(d,n,b);f++;c("[id^=printarea_]").remove();b=k(c(this));d.id="printarea_"+f;var a,e;switch(d.mode){case"iframe":e=new l;a=e.doc;e=e.contentwindow||e;break;case"popup":e=new m,a=e.doc}a.open();a.write(("iframe"!=d.mode&&d.strict?'':"")+""+g()+h(b)+"");a.close();e.focus();e.print();"popup"==d.mode&&d.popclose&&e.close()}})(jquery);