var themeJsFramework={swfResize:{contentSwfResize:function(){jQuery(".contentN object, .contentN embed").each(function(){var e=jQuery(".contentN").innerWidth();var a=jQuery(this).attr("width");var c=jQuery(this).attr("height");var d=jQuery(".contentN").innerWidth();var b=c*d/a;if(a>e){jQuery(this).attr("width",parseInt(d));jQuery(this).attr("height",parseInt(b))}})},blockSwfResize:function(){jQuery("#LeftBlocksList object, #LeftBlocksList embed, #RightBlocksList object, #RightBlocksList embed").each(function(){var b=jQuery("#LeftBlocksList").innerWidth();var a=jQuery("#RightBlocksList").innerWidth();var c=jQuery(this).attr("width");var e=jQuery(this).attr("height");var f="182";var d=e*f/c;if(c>(b&&a)){jQuery(this).attr("width",parseInt(f));jQuery(this).attr("height",parseInt(d))}})},footerSwfResize:function(){jQuery(".footer object, .footer embed").each(function(){var e=jQuery(".footer").innerWidth();var a=jQuery(this).attr("width");var c=jQuery(this).attr("height");var d=jQuery(".footer").innerWidth();var b=c*d/a;if(a>e){jQuery(this).attr("width",parseInt(d));jQuery(this).attr("height",parseInt(b))}})},headerSwfResize:function(){jQuery(".topArea object, .topArea embed").each(function(){var e=jQuery(".topArea").innerWidth();var a=jQuery(this).attr("width");var c=jQuery(this).attr("height");var d=jQuery(".topArea").innerWidth();var b=c*d/a;if(a>e){jQuery(this).attr("width",parseInt(d));jQuery(this).attr("height",parseInt(b))}})}},blockControlSystem:function(){var b=jQuery("#LeftBlocksList > li").size();var d=jQuery("#RightBlocksList > li").size();var a=jQuery(".leftBox").parents("td").innerWidth();var e=jQuery(".rightBox").parents("td").innerWidth();var c=jQuery(".contentN").parents("td").innerWidth();if(d==0){jQuery(".contentArea table tr > td:eq(2)").css({display:"none"});jQuery(".contentN").css({'width':(c+a-5),'margin':'0'})}if(b==0){jQuery(".contentArea table tr > td:eq(0)").css({display:"none"});jQuery(".contentN").css("width",(c+e))}if((d+b)==0){jQuery(".contentArea table tr > td:eq(0)").css({display:"none"});jQuery(".contentArea table tr > td:eq(2)").css({display:"none"});jQuery(".contentN").css("width",(c+e+a))}}};
jQuery(document).ready(function(){
	/*1*/ themeJsFramework.blockControlSystem();
	/*2*/ themeJsFramework.swfResize.contentSwfResize();
	/*3*/ themeJsFramework.swfResize.blockSwfResize();
	/*4*/ themeJsFramework.swfResize.footerSwfResize();
	/*5*/ themeJsFramework.swfResize.headerSwfResize();
	/*TPL V4 Group*/
});
