if(!window.console||!console.firebug){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i){window.console[names[i]]=function(){}}}function function_exists(A){if(typeof A=="string"){return(typeof window[A]=="function")}else{return(A instanceof Function)}}function windowHeight(){var A=document.documentElement;return self.innerHeight||(A&&A.clientHeight)||document.body.clientHeight}function windowWidth(){var A=document.documentElement;return self.innerWidth||(A&&A.clientWidth)||document.body.clientWidth}var hchw=hchml=hchcentered=0;function hchShowPage(A){hchcentered=parseInt(A)>0?1:0;var B=w=divw=divh=1;var C=new Array();jQuery("#container div:visible").each(function(E){var D=jQuery(this);divh=D.height()+(parseInt(D.offset().top)||0);B=divh>B?divh:B;divw=D.width()+(parseInt(D.css("left"))||0);w=divw>w?divw:w;C[E]=w});jQuery("#container").height(B).css({width:w});hchFixCentered();jQuery("div[rel$=footer]").css("top",B)}function hchFixCentered(){if(hchcentered>0){jQuery("#container").css({position: 'relative', padding: '0', margin: '0 auto'})}else{jQuery("#container").css({position: 'absolute', left: 0, marginLeft: 0})}}
function hchInit(B,A){hchcentered=parseInt(B)>0?true:false;if(hchcentered){/*document.body.style.overflow="hidden";*/document.write('<div id="hch_loa" style="z-index:99999;position:absolute;width:'+windowWidth()+"px;height:"+windowHeight()+"px;top:0;left:0;background-color:"+A+'"></div>')}jQuery(document).ready(function(){hchShowPage(B);if(hchcentered){jQuery("#hch_loa").hide();/*document.body.style.overflow="auto"*/}})}function onloadInit(){jQuery(document).ready(function(){})}function vdom_evt_setvalue(C,B){jQuery(C.domCont).val(B);var A=new VDOM_Event();A.srcObj=C.domCont;A.name="valuechange";A.addParameter("itemValue",B);C.execEvent(A)}function vdom_ui_hide(C,E,B,A){if(jQuery(C).css("display")!="none"){if(parseInt(E)>0){var G=jQuery(C).queue("fx");if(G.length<=0){var F=parseInt(E);jQuery(C).fadeOut(F)}}else{C.style.display="none"}if(B!=undefined&&parseInt(B)>0){if(A!=undefined&&parseInt(A)>0){var D=C.parentNode.style.zIndex}else{var D=C.style.zIndex}D=B}}}function vdom_ui_show(C,E,B,A){if(jQuery(C).css("display")=="none"){if(parseInt(E)>0){var G=jQuery(C).queue("fx");if(G.length<=0){var F=parseInt(E);jQuery(C).stop().fadeIn(F)}}else{C.style.display="block"}if(B!=undefined&&parseInt(B)>0){if(A!=undefined&&parseInt(A)>0){var D=jQuery(C).parent()}else{var D=jQuery(C)}D.css("z-index",B)}}}function vdom_ui_moveZindexTo(B,A){B.style.zindex=parseInt(A)}function vdom_ui_moveTo(D,F,C,A){var E=parseInt(F)+"px";var H=parseInt(C)+"px";if(parseInt(A)>0){var G=jQuery(D).queue("fx");if(G.length<=0){var B=parseInt(A);jQuery(D).animate({left:E,top:H},B)}}else{D.style.left=E;D.style.top=H}}function vdom_ui_addItem(D,C,E,B){var A=D.appendChild(document.createElement("option"));A.value=jQuery.trim(E);A.innerHTML=C;if(parseInt(B)>0){A.selected=true}}function vdom_ui_removeItem(E,D,F){if(E.length>0&&(D!==""||F!=="")){for(i=0;i<E.length;i++){var C=E[i];if(C){if(/option/i.test(C.nodeName)){var B=D!==""?(D==C.innerHTML?true:false):true;var A=F!==""?(F==C.value?true:false):true;if(B&&A){E.removeChild(C);break}}}}}}function vdom_ui_sortItem(D,B){var C=D;var A=C[D.selectedIndex].value;arrTexts=new Array();for(i=0;i<C.length;i++){arrTexts[i]=C.options[i].text+":"+C.options[i].value}arrTexts.sort();var E=B>0?C.length-1:0;for(i=0;i<C.length;i++){op=C.options[E-(E-i<0?0:E-i)];el=arrTexts[i].split(":");op.text=el[0];op.value=el[1];if(A==op.value){op.selected=true}else{op.selected=false}}}function vdom_ui_setButtonImage(D,A){var B=jQuery(D).find("img:first");var C=jQuery(B).attr("width");var H=jQuery(B).attr("height");var G=A;var E=jQuery(B).attr("srcover");var F="this.src='"+E+"'";var I="this.src='"+A+"'";jQuery(B).replaceWith('<img width="'+C+'" height="'+H+'" border="0" alt="" src="'+G+'" srcover="'+E+'" onmouseover="'+F+'" onmouseout="'+I+'" />')}function vdom_ui_setButtonRollover(D,A){var B=jQuery(D).find("img:first");var C=jQuery(B).attr("width");var H=jQuery(B).attr("height");var G=jQuery(B).attr("src");var E=A;var F="this.src='"+A+"'";var I="this.src='"+G+"'";jQuery(B).replaceWith('<img width="'+C+'" height="'+H+'" border="0" alt="" src="'+G+'" srcover="'+E+'" onmouseover="'+F+'" onmouseout="'+I+'" />')}function vdom_ui_setLink(C,B){var A=jQuery(C).find("a:first");jQuery(A).attr("href",B)}function vdom_ui_unselect(B){var A=B.childNodes;if(A.length){for(i=0;i<A.length;i++){if(A[i].type=="checkbox"){A[i].checked=false}}}}function vdom_ui_select(B){var A=B.childNodes;if(A.length){for(i=0;i<A.length;i++){if(A[i].type=="checkbox"){A[i].checked=true}}}}function vdom_ui_addHTML(B,A){tt=jQuery(B).html(A)+A;jQuery(B).html(tt)}function vdom_ui_resizeTo(C,B,A){C.style.width=parseInt(newZindex);C.style.height=parseInt(newZindex)}function vdom_ui_dragStart(A){if(drag_current_obj!==null){dragStop_()}drag_current_obj=A;dragInit_(A)}function vdom_ui_dragStop(){dragStop_()}function vdom_ui_setMenuHide(D,C,B,A){jQuery("#"+D.id).stopTime(D.id);jQuery("#"+D.id).mouseover(function(E){jQuery("#"+D.id).stopTime(D.id)}).mouseout(function(){jQuery("#"+D.id).oneTime(C,D.id,function(){jQuery("#"+D.id).hide();if(B!=undefined&&parseInt(B)>0){if(A!=undefined&&parseInt(A)>0){var E=jQuery(D).parent()}else{var E=jQuery(D)}E.css("z-index",B)}})});jQuery("#"+D.id).oneTime(C,D.id,function(){jQuery("#"+D.id).hide();if(B!=undefined&&parseInt(B)>0){if(A!=undefined&&parseInt(A)>0){var E=jQuery(D).parent()}else{var E=jQuery(D)}E.css("z-index",B)}})}function vdom_ui_startResizeXY(A){jQuery(A).resizable({transparent:true})}function vdom_ui_startResizeX(B){var A=jQuery(B).height();jQuery(B).resizable({transparent:true,minHeight:A,maxHeight:A})}function vdom_ui_startResizeY(B){var A=jQuery(B).width();jQuery(B).resizable({transparent:true,minWidth:A,maxWidth:A})}function vdom_ui_timerStart(B,A){if(A==undefined){A=500}jQuery(B).stopTime();B.timerfreeze=0;jQuery(B).everyTime(A,function(D){if(parseInt(B.timerfreeze)==0){var C=new VDOM_Event();C.srcObj=B.domCont;C.name="timechange";C.addParameter("count",D);C.addParameter("time",new Date);B.execEvent(C)}})}function vdom_ui_timerStop(A){jQuery(A).stopTime()}function vdom_ui_timerFreeze(B,A){B.timerfreeze=parseInt(A)}function vdom_ui_timerSetInterval(B,A){vdom_ui_timerStart(B,A)}function vdom_ui_calendarDateChange(C,B,A,D){execEventBinded(C,"datechange",{day:B,month:A,year:D})}function showFlash(F){var B,D,C,A;if(F.bgcolor){B=F.bgcolor}else{B="#FFFFFF"}if(F.quality){D=F.quality}else{D="high"}if(F.scale){C=F.scale}else{C="noscale"}x=(F.x)?F.x:0;y=(F.y)?F.y:0;sty=(F.x||F.y)?'style="position:absolute;left:'+x+"px;top:"+y+"px;width:"+F.width+"px;height:"+F.height+'px"':"";if(F.nocache=="true"){F.name+="?"+new Date().getTime()}if(F.ver){A=F.ver}else{A="9,0,0,0"}var E="<object "+sty+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+A+'" ';E+='id="'+F.id+'" ';if(F.align){E+='align="'+F.align+'" '}E+='width="'+F.width+'" height="'+F.height+'"><param name="movie" value="'+F.name+'"/><param name="bgcolor" value="'+B+'"/><param name="quality" value="'+D+'"/>';if(F.base){E+='<param name="base" value="'+F.base+'"/>'}if(F.flashvars){E+='<param name="flashvars" value="'+F.flashvars+'"/>'}if(F.allowScriptAccess){E+='<param name="allowScriptAccess" value="'+F.allowScriptAccess+'"/>'}if(F.salign){E+='<param name="salign" value="'+F.salign+'"/>'}if(F.wmode){E+='<param name="wmode" value="'+F.wmode+'"/>'}E+='<param name="scale" value="'+C+'"/><embed '+sty+' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="'+F.id+'" src="'+F.name+'" bgcolor="'+B+'" ';if(F.flashvars){E+='flashvars="'+F.flashvars+'" '}if(F.swLiveConnect){E+='swLiveConnect="'+F.swLiveConnect+'" '}if(F.allowScriptAccess){E+='allowScriptAccess="'+F.allowScriptAccess+'" '}E+='quality="'+D+'" ';if(F.base){E+='base="'+F.base+'" '}if(F.wmode){E+='wmode="'+F.wmode+'" '}if(F.salign){E+='salign="'+F.salign+'" '}E+='scale="'+C+'" width="'+F.width+'" height="'+F.height+'"></embed></object>';jQuery("body").append(E)}document.attachCP=[];document.attachCP.length=0;function attachPickColor(A){jQuery(document).ready(function(){attachPickColorDo(A)})}function attachPickColorDo(B){if(jQuery.inArray(B,document.attachCP)<0){document.attachCP.length++;document.attachCP[document.attachCP.length-1]=B;var A=jQuery("#"+B);A.colorpickered=true;A.ColorPicker({onShow:function(C){jQuery(C).css("z-index",9999).fadeIn(100);return false},onSubmit:function(C,E,D){jQuery("#"+B).css("backgroundColor","#"+E);execEventBinded(B.substring(2,B.length),"changecolor",{color:"#"+E});jQuery("#"+B+">span").text("#"+E);jQuery("#"+B).ColorPickerHidePicker()}});A.ColorPickerSetColor("#"+A.find("span").text())}};
function vdom_ui_formSubmit(o,x){
if (x == 0) return true;
if (o.alreadySubmitted == undefined) {
	o.alreadySubmitted = true;
	return true;
}
return false;
}

