function onBodyLoad(){if(typeof(_onload_functions)!="undefined"){for(var i=0;i<_onload_functions.length;i++){_onload_functions[i]()}}}function changeTextFieldFromSelect(select,textField){textField.value=select.options[select.selectedIndex].value}function changeSelectFromTextField(textField,select){for(var i=0;i<select.options.length;i++){if(select.options[i].value.toLowerCase()==textField.value.toLowerCase()){select.selectedIndex=i;return}}select.selectedIndex=0;if(textField.value.length==0){textField.value=select.options[select.selectedIndex].value}}function updateValuesByFieldName(form,value,namePrefix){for(var i=0;i<form.elements.length;i++){if(form.elements[i].name.indexOf(namePrefix)==0){form.elements[i].value=value}}}function onWithdrawTypeChanged(withdrawTypeSelect,rowName){var rows=document.getElementsByName(rowName);var withdrawType=withdrawTypeSelect.options[withdrawTypeSelect.selectedIndex].value;var i;for(i=0;i<rows.length;i++){var withdraw=rows[i].getAttribute("withdraw");if(withdraw!=null){if(withdraw==withdrawType){rows[i].style.display=""}else{rows[i].style.display="none"}}}}function showNextUploadFile(rowId,nextButtonId){var row=document.getElementById(rowId);var nextButton=document.getElementById(nextButtonId);row.style.display="";nextButton.style.visibility="hidden"};
(function($){$.fn.activebar=function(options){var options=$.fn.extend({},$.fn.activebar.defaults,options);if($.fn.activebar.container==null){$.fn.activebar.container=initializeActivebar(options);}setOptionsOnContainer($.fn.activebar.container,options);if($.fn.activebar.state>2){$.fn.activebar.state=1;$.fn.activebar.container.css("display","none");$.fn.activebar.visible=false;}$(".content",$.fn.activebar.container).empty();$(this).each(function(){$(".content",$.fn.activebar.container).append(this);});$.fn.activebar.container.unbind("click");if(options.url!=null){$.fn.activebar.container.click(function(){window.location.href=options.url;});}$.fn.activebar.container.css("top","-"+$.fn.activebar.container.height()+"px");$.fn.activebar.show();};$.fn.activebar.defaults={"background":"InfoBackground","border":"#c8c8c8","highlight":"Highlight","font":"Bitstream Vera Sans,verdana,sans-serif","fontColor":"InfoText","fontSize":"12px","icon":"images/activebar-information.png","button":"images/activebar-closebtn.png","url":null};$.fn.activebar.state=0;$.fn.activebar.container=null;$.fn.activebar.show=function(){if($.fn.activebar.state>1){return;}$.fn.activebar.state=2;$.fn.activebar.container.css("display","block");var height=$.fn.activebar.container.height();$.fn.activebar.container.animate({"top":"+="+height+"px"},height*20,"linear",function(){$.fn.activebar.state=3;});};$.fn.activebar.hide=function(){if($.fn.activebar.state<2){return;}$.fn.activebar.state=1;var height=$.fn.activebar.container.height();$.fn.activebar.container.animate({"top":"-="+height+"px"},height*20,"linear",function(){$.fn.activebar.container.css("display","none");$.fn.activebar.visible=false;});};function initializeActivebar(options){var container=$("<div></div>").attr("id","activebar-container");container.css({"display":"none","position":"fixed","zIndex":"9999","top":"0px","left":"0px","cursor":"pointer"});$(window).bind("resize",function(){container.width($(this).width());});$(window).trigger("resize");if($.browser.msie&&($.browser.version.substring(0,1)=="5"||$.browser.version.substring(0,1)=="6")){container.css("position","absolute");$(window).scroll(function(){container.stop(true,true);if($.fn.activebar.state==3){container.css("top",$(window).scrollTop()+"px");}else{container.css("top",($(window).scrollTop()-container.height())+"px");}});}container.append($("<div></div>").attr("class","icon").css({"float":"left","width":"16px","height":"16px","margin":"6px 4px 4px 4px"}));container.append($("<div></div>").attr("class","close").css({"float":"right","margin":"6px 4px 4px 4px","width":"16px","height":"16px"}).click(function(event){$.fn.activebar.hide();event.stopPropagation();}));container.append($("<div></div>").attr("class","content").css({"margin":"8px 28px 4px 28px"}));$("body").prepend(container);return container;}function setOptionsOnContainer(container,options){container.css({"background":options.background,"borderBottom":"1px solid "+options.border});container.unbind("mouseenter mouseleave");container.hover(function(){$(this).css("backgroundColor",options.highlight);},function(){$(this).css("backgroundColor",options.background);});$(".icon",container).css("background","transparent url( '"+options.icon+"' ) top left no-repeat");$(".close",container).css("background","transparent url( '"+options.button+"' ) top left no-repeat");$(".content",container).css({"color":options.fontColor,"fontFamily":options.font,"fontSize":options.fontSize});}})(jQuery);
(function($){jQuery.fn.pngFix=function(settings){settings=jQuery.extend({blankgif:"blank.gif"},settings);var ie55=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1);var ie6=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1);if(jQuery.browser.msie&&(ie55||ie6)){jQuery(this).find("img[src$=.png]").each(function(){jQuery(this).attr("width",jQuery(this).width());jQuery(this).attr("height",jQuery(this).height());var prevStyle="";var strNewHTML="";var imgId=(jQuery(this).attr("id"))?'id="'+jQuery(this).attr("id")+'" ':"";var imgClass=(jQuery(this).attr("class"))?'class="'+jQuery(this).attr("class")+'" ':"";var imgTitle=(jQuery(this).attr("title"))?'title="'+jQuery(this).attr("title")+'" ':"";var imgAlt=(jQuery(this).attr("alt"))?'alt="'+jQuery(this).attr("alt")+'" ':"";var imgAlign=(jQuery(this).attr("align"))?"float:"+jQuery(this).attr("align")+";":"";var imgHand=(jQuery(this).parent().attr("href"))?"cursor:hand;":"";if(this.style.border){prevStyle+="border:"+this.style.border+";";this.style.border="";}if(this.style.padding){prevStyle+="padding:"+this.style.padding+";";this.style.padding="";}if(this.style.margin){prevStyle+="margin:"+this.style.margin+";";this.style.margin="";}var imgStyle=(this.style.cssText);strNewHTML+="<span "+imgId+imgClass+imgTitle+imgAlt;strNewHTML+='style="position:relative;white-space:pre-line;display:inline-block;background:transparent;'+imgAlign+imgHand;strNewHTML+="width:"+jQuery(this).width()+"px;"+"height:"+jQuery(this).height()+"px;";strNewHTML+="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src='"+jQuery(this).attr("src")+"', sizingMethod='scale');";strNewHTML+=imgStyle+'"></span>';if(prevStyle!=""){strNewHTML='<span style="position:relative;display:inline-block;'+prevStyle+imgHand+"width:"+jQuery(this).width()+"px;"+"height:"+jQuery(this).height()+"px;"+'">'+strNewHTML+"</span>";}jQuery(this).hide();jQuery(this).after(strNewHTML);});jQuery(this).find("*").each(function(){var bgIMG=jQuery(this).css("background-image");if(bgIMG.indexOf(".png")!=-1){var iebg=bgIMG.split('url("')[1].split('")')[0];jQuery(this).css("background-image","none");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+iebg+"',sizingMethod='scale')";}});jQuery(this).find("input[src$=.png]").each(function(){var bgIMG=jQuery(this).attr("src");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src='"+bgIMG+"', sizingMethod='scale');";jQuery(this).attr("src",settings.blankgif);});}return jQuery;};})(jQuery);
var COOKIE_VERSION="0.1";function getCookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))){return null}if(start==-1){return null}var end=document.cookie.indexOf(";",len);if(end==-1){end=document.cookie.length}return unescape(document.cookie.substring(len,end))}function setCookie(name,value,expires,path,domain,secure){setRawCookie(name+"="+escape(value)+((expires)?";expires="+expires.toGMTString():"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+((secure)?";secure":""))}function removeCookie(name,path,domain,secure){var thepast=new Date();thepast.setYear(thepast.getYear()-2);setCookie(name,"",thepast,path,domain,secure)}function setPermCookie(name,value,path,domain,secure){var thefuture=new Date();var year=(thefuture.getYear()<1000)?thefuture.getYear()+1900:thefuture.getYear();thefuture.setYear(year+5);setCookie(name,value,thefuture,path,domain,secure)}function setRawCookie(cookie){document.cookie=cookie};
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array()}var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i]}}}}function getTimeZone(){var rightNow=new Date();var date1=new Date(rightNow.getFullYear(),0,1,0,0,0,0);var temp=date1.toGMTString();var date3=new Date(temp.substring(0,temp.lastIndexOf(" ")-1));var hoursDiffStdTime=(date1-date3)/3600000;var tz_str=hoursDiffStdTime>0?("GMT+"+hoursDiffStdTime):("GMT"+hoursDiffStdTime);return tz_str}_onload_functions[_onload_functions.length]=function(){var timezone=getTimeZone();setCookie("org.softservice.web.customer.PerformerProfilePage.Timezone",timezone,new Date(2100,1,1,1,1,1),"/");MM_preloadImages("images/icon_strel.gif","images/submenu_back_r.png","images/submenu_back_l.png","images/submenu_back_c.gif","images/submenu_back_bc.gif")};
