var agt=navigator.userAgent.toLowerCase();var is_opera=(agt.indexOf('opera')!=-1);var is_msie=(agt.indexOf('msie')!=-1&&!is_opera);var is_safari_103=(agt.indexOf('safari/312')!=-1);var oldBrowser=false;var isNS4=false;var isNS6=false;var isIE4=false;var isIE5=false;var xPosition=0;if(parseInt(navigator.appVersion)<4){oldBrowser=true}else{isNS4=(document.layers)?true:false;isIE4=(document.all&&!document.getElementById)?true:false;isIE5=(document.all&&document.getElementById)?true:false;isNS6=(!document.all&&document.getElementById)?true:false;}
document.hasWindow=0;var Komodo_Tour_Window;var PDK_Tour_Window;var AS_Popup='AS_Popup';var AS_Popup_Window;var d_win;function ToggleTab(tabID,contentID,isUpsell){if(document.getElementById('upgrade_upsell_box')){if(document.getElementById(tabID).getElementsByTagName('a')[0].href.split("tab=")[1]==0)
{document.getElementById('upgrade_upsell_box').style.display="";}else{document.getElementById('upgrade_upsell_box').style.display="none";}}
if(isUpsell){var nextActiveTab=document.getElementById(tabID);var nextActiveContent=document.getElementById(contentID);if(nextActiveTab==currActiveUpsellTab){return;}
nextActiveTab.className="activeTab";nextActiveContent.className="visible";currActiveUpsellTab.className="";currActiveUpsellContent.className="hidden";currActiveUpsellTab=nextActiveTab;currActiveUpsellContent=nextActiveContent;}else{var nextActiveTab=document.getElementById(tabID);var nextActiveContent=document.getElementById(contentID);if(nextActiveTab==currActiveTab){return;}
currActiveTab.className="";currActiveContent.className="hidden";nextActiveTab.className="activeTab";nextActiveContent.className="visible";currActiveTab=nextActiveTab;currActiveContent=nextActiveContent;}}
function ShowPopup(filepath,h,w){var width=568;var height=420;if(h>0){height=h;}
if(w>0){width=w;}
var resize="yes";var scrollbars="yes";var features='width='+width+',height='+height+',scrollbars='+scrollbars+',resizable='+resize+'';AS_Popup_Window=window.open(filepath,AS_Popup,features);AS_Popup_Window.focus;return false;}
function ShowScreen(my_id,productid,h,w){var my_options='width='+w+',height='+h+',scrollbars=no,resize=no';if(productid=='Komodo'){my_options='width=830,height=620,scrollbars=no,resize=no';Komodo_Tour_Window=window.open('/products/komodo_ide/Tour/'+my_id+'/',AS_Popup,my_options);Komodo_Tour_Window.focus();}else if(productid=='PerlDevKit'){my_options='width=620,height=730,scrollbars=no,resize=no';PDK_Tour_Window=window.open('/Products/Perl_Dev_Kit/Tour/'+my_id+'/',AS_Popup,my_options);PDK_Tour_Window.focus();}
return false;}
function ShowTour(productid,h,w){var my_options='width='+w+',height='+h+',scrollbars=no,resize=no';if(productid=='Komodo'){my_options='width=830,height=620,scrollbars=no,resize=no';Komodo_Tour_Window=window.open('/products/komodo_ide/Tour/',AS_Popup,my_options);Komodo_Tour_Window.focus();}else if(productid=='PerlDevKit'){my_options='width=620,height=730,scrollbars=no,resize=no';PDK_Tour_Window=window.open('/Products/Perl_Dev_Kit/Tour/',AS_Popup,my_options);PDK_Tour_Window.focus();}
return false;}
function TabRedirect(baseURL,currentURL){var subject=location.href;var escapedCurrentURL=currentURL.replace(/\//,'\/');var regexStr='(.*)'+escapedCurrentURL+'(.+)$';var regexStr2='(http:\/\/.*?)\/';var regexObj=new RegExp(regexStr);var matches=regexObj.exec(subject);var regexObj2=new RegExp(regexStr2);var matches2=regexObj2.exec(subject);if(matches==null){if(matches2!=null){var path=matches2[1]+baseURL;location.href=path;return false;}else{return true;}}else{if(matches2!=null){var path=matches2[1]+baseURL+matches[2];location.href=path;return false;}else{return true;}}}
function findPosX(obj){var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curleft+=obj.offsetLeft
obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;}
function toggleDiv(chk,id){var div=document.getElementById(id);if(div&&chk){if(chk.checked){div.style.display='block';}
else{div.style.display='none';}}}
function GetImageXPos(imgId){if(isIE5||isNS6){xPosition=findPosX(document.getElementById(imgId));}else if(isNS4){}else{xPosition=findPosX(document.all[imgId])}
return(xPosition);}
function toggleFeature(listitem){var description=$(listitem).children().filter(".description");var featureName=$(listitem).children().filter(".feature-name");listitem.toggleClass("expanded");if(description.css("display")=="block"){description.slideToggle("fast");listitem.css({backgroundImage:"url(/_images/icons/icon-toggle-plus.gif)"});}else{description.slideToggle("fast");listitem.css({backgroundImage:"url(/_images/icons/icon-toggle-minus.gif)"});}}
function mouseover(listitem){var featureName=$(listitem).children().filter(".feature-name");featureName.toggleClass("selected");listitem.toggleClass("hovered");}
function mouseout(listitem){var featureName=$(listitem).children().filter(".feature-name");featureName.toggleClass("selected");listitem.toggleClass("hovered");}
function preLoadImages(img_array){for(var i=0;i<=img_array.length;i++){var tmp=new Image();if(img_array[i]){tmp.src=img_array[i];}}};function isDefined(property){return(typeof property!='undefined');}
var rolloverInitialized=false;function rolloverInit(){if(!rolloverInitialized&&isDefined(document.images)){var images=new Array();if(isDefined(document.getElementsByTagName)){imagesCollection=document.getElementsByTagName('img');for(var elementIndex=0;elementIndex<imagesCollection.length;elementIndex++){images[images.length]=imagesCollection[elementIndex];}
var inputs=document.getElementsByTagName('input');for(var i=0;i<inputs.length;i++){if(inputs[i].type=='image'){images[images.length]=inputs[i];}}}
else{images=document.images;inputs=new Array();for(var formIndex=0;formIndex<document.forms.length;formIndex++){for(var elementIndex=0;elementIndex<document.forms.elements.length;elementIndex++){if(isDefined(document.forms.elements[i].src)){inputs[inputs.length]=document.forms.elements[i];}}}}
for(var i=0;i<images.length;i++){if(images[i].src.indexOf('_off.')!=-1){var image=images[i];image.offImage=new Image();image.offImage.src=image.src;image.onImage=new Image();image.onImage.imageElement=image;if(navigator.userAgent.toLowerCase().indexOf('safari')!=-1){image.onmouseover=function(){this.onerror=isBad;this.src=this.onImage.src;};image.onmouseout=function(){this.src=this.offImage.src;};}
else{image.onImage.onload=function(){this.imageElement.onmouseover=function(){this.src=this.onImage.src;};this.imageElement.onmouseout=function(){this.src=this.offImage.src;};};}
image.onImage.src=image.src.replace(/_off\./,'_on.');}}}
rolloverInitialized=true;}
function isBad(image,src){this.src=this.offImage.src;}
if(isDefined(window.addEventListener)){window.addEventListener('load',rolloverInit,false);}
else if(isDefined(window.attachEvent)){window.attachEvent('onload',rolloverInit);};var utils={debug:0,debugObj:null,getObj:function(items,c){var _s=items.length;if(_s>0){for(var i=0;i<_s;i++){if(items[i].className==c){return items[i];}}}
this.trace("didn't find");return null;},trace:function(m){if(1==this.debug){if(null==this.debugObj){this.debugObj=document.getElementById("trace");this.debugObj.style.visibility="visible";}
this.debugObj.value+=m+"\n";}}}
var flyNav={visibleFlyout:null,activeItem:null,timer:null,itemActivatedClass:"flyoutActive",itemDefaultClass:"",itemPrevClass:"",flyoutClass:"flyout",show:function(t){t=t.parentNode;utils.trace("showing");if(this.timer!=null){clearTimeout(this.timer);}
this.itemPrevClass=this.itemDefaultClass;if(t.className.indexOf(this.itemActivatedClass)==-1){this.itemDefaultClass=t.className;if(this.itemPrevClass==""){this.itemPrevClass=t.className;}}
var tmp_f=this._getFlyout(t);if(this.activeItem!=null||this.visibleFlyout!=null){if(this.activeItem===t||this.visibleFlyout===tmp_f){return;}else{flyNav._hideFlyout();}}
this.activeItem=t;this.visibleFlyout=tmp_f;if(this.visibleFlyout!=null){this.visibleFlyout.style.display="block";}else{throw new Error("'this.visibleFlyout' is null when it should not be.");}
if(this.activeItem!=null){this.activeItem.className=this.itemDefaultClass+" "+this.itemActivatedClass;}
this.hold();},_getFlyout:function(t){utils.trace("get helper");return utils.getObj(t.childNodes,this.flyoutClass);},hold:function(){utils.trace("holding");this.itemPrevClass=this.itemDefaultClass;if(this.timer!=null){clearTimeout(this.timer);}},hide:function(){utils.trace("hiding");if(this.visibleFlyout!=null){this.timer=setTimeout("flyNav._hideFlyout();",300);}},_hideFlyout:function(){utils.trace("hide helper");if(flyNav.activeItem!=null){this.activeItem.className=this.itemPrevClass;flyNav.activeItem=null;}
if(flyNav.visibleFlyout!=null){flyNav.visibleFlyout.style.display="none";flyNav.visibleFlyout=null;}}};$(document).ready(TB_init);function TB_init(){$("a.thickbox").click(function(event){event.preventDefault();this.blur();var caption=this.title||this.name||"";var group=this.rel||false;TB_show(caption,this.href,group);});}
function TB_show(caption,url,rel){if(!$("#TB_HideSelect").length){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(TB_remove);}
TB_overlaySize();$("body").append("<div id='TB_load'><img src='/_images/thickbox/loadingAnimation.gif' /></div>");TB_load_position();var baseURL=url.match(/(.+)?/)[1]||url;var imageURL=/\.(jpe?g|png|gif|bmp)/gi;if(baseURL.match(imageURL)){var dummy={caption:"",url:"",html:""};var prev=dummy,next=dummy,imageCount="";if(rel){function getInfo(image,id,label){return{caption:image.title,url:image.href,html:"<span id='TB_"+id+"'>&nbsp;&nbsp;<a href='#'>"+label+"</a></span>"}}
var imageGroup=$("a[@rel="+rel+"]").get();var foundSelf=false;for(var i=0;i<imageGroup.length;i++){var image=imageGroup[i];var urlTypeTemp=image.href.match(imageURL);if(image.href==url){foundSelf=true;imageCount="Screenshot "+(i+1)+" of "+(imageGroup.length);}else{if(foundSelf){next=getInfo(image,"next","Next &gt;");break;}else{prev=getInfo(image,"prev","&lt; Previous");}}}}
imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=TB_getPageSize();var x=1000;var y=1000;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;}}else if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;}}
TB_WIDTH=imageWidth+40;TB_HEIGHT=imageHeight;$("#TB_window").append("<div id='top-bar'><!-- --><div id='right-edge'><!-- --></div></div> "+"<div id='popup-contents'><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'><img src='/_images/screenshots/screenshot-close-button.gif'></a></div><div id='TB_caption'><span id='name'>"+caption+"</span><div id='TB_secondLine'>"+imageCount+prev.html+next.html+"</div></div>"+"<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a></div>");$("#TB_closeWindowButton").click(TB_remove);function buildClickHandler(image){return function(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");TB_show(image.caption,image.url,rel);return false;};}
var goPrev=buildClickHandler(prev);var goNext=buildClickHandler(next);if(prev.html){$("#TB_prev").click(goPrev);}
if(next.html){$("#TB_next").click(goNext);}
document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
switch(keycode){case 27:TB_remove();break;case 190:if(next.html){document.onkeydown=null;goNext();}
break;case 188:if(prev.html){document.onkeydown=null;goPrev();}
break;}}
TB_position();$("#TB_load").remove();$("#TB_ImageOff").click(TB_remove);$("#TB_window").css({display:"block"});}
imgPreloader.src=url;}else{var queryString=url.match(/\?(.+)/)[1];var params=TB_parseQuery(queryString);TB_WIDTH=(params['width']*1)+30;TB_HEIGHT=(params['height']*1)+40;var ajaxContentW=TB_WIDTH-30,ajaxContentH=TB_HEIGHT-45;if(url.indexOf('TB_iframe')!=-1){urlNoQuery=url.split('TB_');$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' onload='TB_showIframe()'> </iframe>");}else{$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}
$("#TB_closeWindowButton").click(TB_remove);if(url.indexOf('TB_inline')!=-1){$("#TB_ajaxContent").html($('#'+params['inlineId']).html());TB_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});}else if(url.indexOf('TB_iframe')!=-1){TB_position();if(frames['TB_iframeContent']==undefined){$("#TB_load").remove();$("#TB_window").css({display:"block"});$(document).keyup(function(e){var key=e.keyCode;if(key==27){TB_remove()}});}}else{$("#TB_ajaxContent").load(url,function(){TB_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});});}}
$(window).resize(TB_position);document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){TB_remove();}}}
function TB_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}
function TB_remove(){$("#TB_imageOff").unbind("click");$("#TB_overlay").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").css({display:"none"});$('#TB_window,#TB_overlay,#TB_HideSelect').remove();$("#TB_load").remove();return false;}
function TB_position(){var pagesize=TB_getPageSize();var arrayPageScroll=TB_getPageScrollTop();var style={width:TB_WIDTH,left:(arrayPageScroll[0]+(pagesize[0]-TB_WIDTH)/2-8),top:(arrayPageScroll[1]+70)};$("#TB_window").css(style);}
function TB_overlaySize(){if(window.innerHeight&&window.scrollMaxY||window.innerWidth&&window.scrollMaxX){yScroll=window.innerHeight+window.scrollMaxY;xScroll=window.innerWidth+window.scrollMaxX;var deff=document.documentElement;var wff=(deff&&deff.clientWidth)||document.body.clientWidth||window.innerWidth||self.innerWidth;var hff=(deff&&deff.clientHeight)||document.body.clientHeight||window.innerHeight||self.innerHeight;xScroll-=(window.innerWidth-wff);yScroll-=(window.innerHeight-hff);}else if(document.body.scrollHeight>document.body.offsetHeight||document.body.scrollWidth>document.body.offsetWidth){yScroll=document.body.scrollHeight;xScroll=document.body.scrollWidth;}else{yScroll=document.body.offsetHeight;xScroll=document.body.offsetWidth;}
$("#TB_overlay").css({"height":yScroll,"width":xScroll});$("#TB_HideSelect").css({"height":yScroll,"width":xScroll});}
function TB_load_position(){var pagesize=TB_getPageSize();var arrayPageScroll=TB_getPageScrollTop();$("#TB_load").css({left:(arrayPageScroll[0]+(pagesize[0]-100)/2),top:(arrayPageScroll[1]+((pagesize[1]-100)/2))}).css({display:"block"});}
function TB_parseQuery(query){if(!query)
return{};var params={};var pairs=query.split(/[;&]/);for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');if(!pair||pair.length!=2)
continue;params[unescape(pair[0])]=unescape(pair[1]).replace(/\+/g,' ');}
return params;}
function TB_getPageScrollTop(){var yScrolltop;var xScrollleft;if(self.pageYOffset||self.pageXOffset){yScrolltop=self.pageYOffset;xScrollleft=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop||document.documentElement.scrollLeft){yScrolltop=document.documentElement.scrollTop;xScrollleft=document.documentElement.scrollLeft;}else if(document.body){yScrolltop=document.body.scrollTop;xScrollleft=document.body.scrollLeft;}
arrayPageScroll=new Array(xScrollleft,yScrolltop)
return arrayPageScroll;}
function TB_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight
arrayPageSize=new Array(w,h)
return arrayPageSize;}
(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length)settings.single='metadata';var data=$.data(elem,settings.single);if(data)return data;data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m)
data=m[1];}else if(settings.type=="elem"){if(!elem.getElementsByTagName)
return undefined;var e=elem.getElementsByTagName(settings.name);if(e.length)
data=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)
data=attr;}
if(data.indexOf('{')<0)
data="{"+data+"}";data=eval("("+data+")");$.data(elem,settings.single,data);return data;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);;;(function($){$.extend($.event.special,{focusin:{setup:function(){if($.browser.msie)
return false;this.addEventListener("focus",$.event.special.focusin.handler,true);},teardown:function(){if($.browser.msie)
return false;this.removeEventListener("focus",$.event.special.focusin.handler,true);},handler:function(event){var args=Array.prototype.slice.call(arguments,1);args.unshift($.extend($.event.fix(event),{type:"focusin"}));return $.event.handle.apply(this,args);}},focusout:{setup:function(){if($.browser.msie)
return false;this.addEventListener("blur",$.event.special.focusout.handler,true);},teardown:function(){if($.browser.msie)
return false;this.removeEventListener("blur",$.event.special.focusout.handler,true);},handler:function(event){var args=Array.prototype.slice.call(arguments,1);args.unshift($.extend($.event.fix(event),{type:"focusout"}));return $.event.handle.apply(this,args);}}});$.extend($.fn,{delegate:function(type,delegate,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments);}});},triggerEvent:function(type,target){return this.triggerHandler(type,[jQuery.event.fix({type:type,target:target})]);}})})(jQuery);;jQuery.extend(jQuery.fn,{validate:function(options){var validator=new jQuery.validator(options,this[0]);var validator=jQuery.data(this[0],'validator');if(validator){return validator;}
validator=new jQuery.validator(options,this[0]);jQuery.data(this[0],'validator',validator);if(validator.settings.onsubmit){this.find("input.cancel:submit").click(function(){validator.cancelSubmit=true;});this.submit(function(event){if(validator.settings.debug)
event.preventDefault();function handle(){if(validator.settings.submitHandler){validator.settings.submitHandler.call(validator,validator.currentForm);return false;}
return true;}
if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}
if(validator.form()){return handle();}else{validator.focusInvalid();return false;}});}
return validator;},push:function(t){return this.setArray(jQuery.merge(this.get(),t));}});jQuery.extend(jQuery.expr[":"],{blank:"!jQuery.trim(a.value)",filled:"!!jQuery.trim(a.value)",unchecked:"!a.checked"});jQuery.format=function(source,params){if(arguments.length==1)
return function(){var args=jQuery.makeArray(arguments);args.unshift(source);return jQuery.format.apply(this,args);};if(arguments.length>2&&params.constructor!=Array){params=jQuery.makeArray(arguments).slice(1);}
if(params.constructor!=Array){params=[params];}
jQuery.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),n);});return source;};jQuery.validator=function(options,form){this.settings=jQuery.extend({},jQuery.validator.defaults,options);this.currentForm=form;this.labelContainer=jQuery(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||jQuery(form);this.containers=jQuery(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.invalid={};this.reset();this.refresh();};jQuery.extend(jQuery.validator,{defaults:{messages:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:jQuery([]),errorLabelContainer:jQuery([]),onsubmit:true,ignore:[],onblur:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.required(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element);}},onclick:function(element){if(element.name in this.submitted)
this.element(element);}},setDefaults:function(settings){jQuery.extend(jQuery.validator.defaults,settings);},messages:{required:"This field is required.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxLength:jQuery.format("Please enter a value no longer than {0} characters."),minLength:jQuery.format("Please enter a value of at least {0} characters."),rangeLength:jQuery.format("Please enter a value between {0} and {1} characters long."),rangeValue:jQuery.format("Please enter a value between {0} and {1}."),maxValue:jQuery.format("Please enter a value less than or equal to {0}."),minValue:jQuery.format("Please enter a value greater than or equal to {0}.")},prototype:{form:function(){this.prepareForm();for(var i=0;this.elements[i];i++){this.check(this.elements[i]);}
jQuery.extend(this.submitted,this.errorMap);this.invalid=jQuery.extend({},this.errorMap);this.settings.invalidHandler&&this.settings.invalidHandler.call(this);this.showErrors();return this.valid();},element:function(element){element=this.clean(element);this.lastElement=element;this.prepareElement(element);var result=this.check(element);if(result){delete this.invalid[element.name];}else{this.invalid[element.name]=true;}
if(!this.numberOfInvalids()){this.toHide.push(this.containers);}
this.showErrors();return result;},showErrors:function(errors){if(errors){jQuery.extend(this.errorMap,errors);this.errorList=[];for(name in errors){this.errorList.push({message:errors[name],element:jQuery("[@name='"+name+"']:first",this.currentForm)[0]});}
this.successList=jQuery.grep(this.successList,function(element){return!(element.name in errors);});}
this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();},resetForm:function(){if(jQuery.fn.resetForm)
jQuery(this.currentForm).resetForm();this.prepareForm();this.hideErrors();this.elements.removeClass(this.settings.errorClass);},numberOfInvalids:function(){var count=0;for(i in this.invalid)
count++;return count;},hideErrors:function(){this.addWrapper(this.toHide).hide();},valid:function(){return this.size()==0;},size:function(){return this.errorList.length;},focusInvalid:function(){if(this.settings.focusInvalid){try{jQuery(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus();}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&jQuery.grep(this.errorList,function(n){return n.element.name==lastActive.name;}).length==1&&lastActive;},refresh:function(){var validator=this;validator.rulesCache={};function focused(){validator.lastActive=this;if(validator.settings.focusCleanup&&!validator.blockFocusCleanup){jQuery(this).removeClass(validator.settings.errorClass);validator.errorsFor(this).hide();}}
this.elements=jQuery(this.currentForm).find("input, select, textarea").not(":submit, :reset").not("[@disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in validator.rulesCache||!validator.rules(this).length)
return false;validator.rulesCache[this.name]=validator.rules(this);return true;});this.elements.focus(focused);validator.settings.onblur&&validator.elements.blur(function(){validator.settings.onblur.call(validator,this);});validator.settings.onkeyup&&validator.elements.keyup(function(){validator.settings.onkeyup.call(validator,this);});if(validator.settings.onclick){var checkables=jQuery([]);validator.elements.each(function(){if(validator.checkable(this))
checkables.push(validator.checkableGroup(this));});checkables.click(function(){validator.settings.onclick.call(validator,this);});}},clean:function(selector){return jQuery(selector)[0];},errors:function(){return jQuery(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=jQuery([]);this.toHide=jQuery([]);},prepareForm:function(){this.reset();this.toHide=this.errors().push(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(this.clean(element));},check:function(element){element=this.clean(element);jQuery(element).removeClass(this.settings.errorClass);var rules=this.rulesCache[element.name];for(var i=0;rules[i];i++){var rule=rules[i];try{var result=jQuery.validator.methods[rule.method].call(this,jQuery.trim(element.value),element,rule.parameters);if(result===-1)
break;if(!result){jQuery(element).addClass(this.settings.errorClass);this.formatAndAdd(rule,element);return false;}}catch(e){this.settings.debug&&window.console&&console.warn("exception occured when checking element "+element.id
+", check the '"+rule.method+"' method");throw e;}}
if(rules.length&&this.settings.success)
this.successList.push(element);return true;},configuredMessage:function(id,method){var m=this.settings.messages[id];return m&&(m.constructor==String?m:m[method]);},defaultMessage:function(element,method){return this.configuredMessage(element.name,method)||element.title||jQuery.validator.messages[method]||"<strong>Warning: No message defined for "+element.name+"</strong>";},formatAndAdd:function(rule,element){var message=this.defaultMessage(element,rule.method);if(typeof message=="function")
message=message.call(this,rule.parameters,element);this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper)
toToggle.push(toToggle.parents(this.settings.wrapper));return toToggle;},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var error=this.errorList[i];this.showLabel(error.element,error.message);}
if(this.errorList.length){this.toShow.push(this.containers);}
for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}
this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);if(this.settings.overrideErrors||label.attr("generated")){label.html(message);}}else{label=jQuery("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+">").parent();}
if(!this.labelContainer.append(label).length)
this.settings.errorPlacement?this.settings.errorPlacement(label,jQuery(element)):label.insertAfter(element);}
if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}
this.toShow.push(label);},errorsFor:function(element){return this.errors().filter("[@for='"+this.idOrName(element)+"']");},idOrName:function(element){return this.checkable(element)?element.name:element.id||element.name;},rules:function(element){var data=this.data(element);if(!data)
return[];var rules=[];if(typeof data=="string"){var transformed={};transformed[data]=true;data=transformed;}
jQuery.each(data,function(key,value){rules[rules.length]={method:key,parameters:value};});return rules;},data:function(element){return this.settings.rules?this.settings.rules[element.name]:this.settings.meta?jQuery(element).metadata()[this.settings.meta]:jQuery(element).metadata();},checkable:function(element){return/radio|checkbox/i.test(element.type);},checkableGroup:function(element){return jQuery(element.form||document).find('[@name="'+element.name+'"]');},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case'select':return jQuery("option:selected",element).length;case'input':if(this.checkable(element))
return this.checkableGroup(element).filter(':checked').length;}
return value.length;},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true;},dependTypes:{"boolean":function(param,element){return param;},"string":function(param,element){return!!jQuery(param,element.form).length;},"function":function(param,element){return param(element);}},required:function(element){return!jQuery.validator.methods.required.call(this,jQuery.trim(element.value),element);}},methods:{required:function(value,element,param){if(!this.depend(param,element))
return-1;switch(element.nodeName.toLowerCase()){case'select':var options=jQuery("option:selected",element);return options.length>0&&(element.type=="select-multiple"||(jQuery.browser.msie&&!(options[0].attributes['value'].specified)?options[0].text:options[0].value).length>0);case'input':if(this.checkable(element))
return this.getLength(value,element)>0;default:return value.length>0;}},minLength:function(value,element,param){return this.required(element)||this.getLength(value,element)>=param;},maxLength:function(value,element,param){return this.required(element)||this.getLength(value,element)<=param;},rangeLength:function(value,element,param){var length=this.getLength(value,element);return this.required(element)||(length>=param[0]&&length<=param[1]);},minValue:function(value,element,param){return this.required(element)||value>=param;},maxValue:function(value,element,param){return this.required(element)||value<=param;},rangeValue:function(value,element,param){return this.required(element)||(value>=param[0]&&value<=param[1]);},email:function(value,element){return this.required(element)||/^[^\s,;]+@([^\s.,;]+\.)+[\w-]{2,}$/i.test(value);},url:function(value,element){return this.required(element)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);},date:function(value,element){return this.required(element)||!/Invalid|NaN/.test(new Date(value));},dateISO:function(value,element){return this.required(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},dateDE:function(value,element){return this.required(element)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);},number:function(value,element){return this.required(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);},numberDE:function(value,element){return this.required(element)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);},digits:function(value,element){return this.required(element)||/^\d+$/.test(value);},creditcard:function(value,element){if(this.required(element))
return true;var nCheck=0,nDigit=0,bEven=false;value=value.replace(/\D/g,"");for(n=value.length-1;n>=0;n--){var cDigit=value.charAt(n);var nDigit=parseInt(cDigit,10);if(bEven){if((nDigit*=2)>9)
nDigit-=9;}
nCheck+=nDigit;bEven=!bEven;}
return(nCheck%10)==0;},accept:function(value,element,param){param=typeof param=="string"?param:"png|jpe?g|gif";return this.required(element)||value.match(new RegExp(".("+param+")$","i"));},equalTo:function(value,element,param){return value==jQuery(param).val();}},addMethod:function(name,method,message){jQuery.validator.methods[name]=method;jQuery.validator.messages[name]=message;}});;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(3($){$.x={};$.A($.x,{1b:{u:"1r",t:R,F:\'z\',11:"1q"},X:{z:3(c,a){c=$.A({m:"1a",p:1I},c,a);2(!c.B.D()){c.C.Y({o:"K"},{p:c.p,m:c.m,16:c.G});6}7 b=c.B.o();c.C.1S({o:0,1O:\'19\'}).K();c.B.w(":19").P(c.G).1H().w(":1F").Y({o:"M"},{1C:3(n){c.C.o(13.1A(b-($.10.1w?n*b:n)))},p:c.p,m:c.m,16:c.G})},1t:3(a){5.z(a,{m:a.v?"1o":"1a",p:a.v?1n:1m})},1k:3(a){5.z(a,{m:"1j",p:1h})}}});$.10.A({q:3(b){7 a=[];5.P(3(){1g(7 i=5.S;i;i=i.S){2(i.1d!=1)1c;2($.w(b,[i]).r.l)1R;a.1Q(i)}});6 5.1P(a)},x:3(j){2(!5.l)6 5;j=$.A({},$.x.1b,{8:$(\':1N-1M\',5)[0].1L},j);2(j.1K){7 h=5.17("a").w(3(){6 5.W==1G.W});2(h.l){2(h.w(j.8).l){j.4=h}y{j.4=h.N().N().1E();h.L("1B")}}}7 k=5,9=k.17(j.8),4=J(j.4),s=0;2(j.1z){7 i=0;9.q(j.8).P(3(){i=13.1y(i,$(5).o())}).o(i)}9.I(4||"").q(j.8).M();4.L(j.u);3 J(a){6 a!=1x?1v a=="1u"?9.Z(a):9.I(9.I(a)):a===1s?$("<1p>"):9.Z(0)}3 E(g,e,d,f,b){7 c=3(a){s=a?0:--s;2(s)6;k.12("1D",d)};s=e.D()==0?g.D():e.D();2(j.F){2(!j.t&&f){g.1l(j.F);c(R)}y{$.x.X[j.F]({C:g,B:e,G:c,v:b})}}y{2(!j.t&&f){g.E()}y{e.M();g.K()}c(R)}}3 O(a){2(!a.Q&&!j.t){4.18(j.u);7 c=4.q(j.8);7 e=4=$([]);E(e,c);6}7 b=$(a.Q);2(b.1i(j.8).l)1J(!b.14(j.8))b=b.N();7 d=b[0]==4[0];2(s||(j.t&&d)||!b.14(j.8))6;4.18(j.u);2(!d){b.L(j.u)}7 e=b.q(j.8),c=4.q(j.8),15=[b,4,e,c],v=9.V(4[0])>9.V(b[0]);4=d?$([]):b;E(e,c,15,d,v);6!e.l};3 U(a,b){2(1f.l==1)6;O({Q:J(b)[0]})};6 k.T(j.11,O).T("H",U)},H:3(a){6 5.12(\'H\',[a])}})})(1e);',62,117,'||if|function|active|this|return|var|header|headers||||||||||||length|easing||height|duration|nextUntil||running|alwaysOpen|selectedClass|down|filter|Accordion|else|slide|extend|toHide|toShow|size|toggle|animated|finished|activate|not|findActive|show|addClass|hide|parent|clickHandler|each|target|true|nextSibling|bind|activateHandler|index|href|Animations|animate|eq|fn|event|trigger|Math|is|data|complete|find|toggleClass|hidden|swing|defaults|continue|nodeType|jQuery|arguments|for|700|parents|easeinout|easeslide|slideToggle|200|1000|bounceout|div|click|selected|false|bounceslide|number|typeof|stop|undefined|max|autoheight|ceil|current|step|change|prev|visible|location|end|300|while|navigation|tagName|child|first|overflow|pushStack|push|break|css'.split('|'),0,{}));var pdk_json='\
[\
  {\
    "platform" : "AIX",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/Aix/7.3/PDK-Pro-7.3.0.287519-aix.tar.gz",\
    "label"    : "AIX",\
    "type"     : "AS package",\
    "size"     : "15MB"\
  },\
  {\
    "platform" : "HP-UX",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/HP-UX/7.3/PDK-Pro-7.3.0.287519-hpux-parisc.tar.gz",\
    "label"    : "HP-UX",\
    "type"     : "AS package",\
    "size"     : "19MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/Linux/7.3/PDK-Pro-7.3.0.287519-linux.tar.gz",\
    "label"    : "Linux (x86)",\
    "type"     : "AS package",\
    "size"     : "14MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/Linux/7.3/PDK-Deployment-7.3.0.287519-linux-64.tar.gz",\
    "label"    : "Linux 64-bit (x86_64)",\
    "type"     : "AS package",\
    "size"     : "8.6MB"\
  },\
  {\
    "platform" : "MacIntel",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/MacOSX/7.3/PDK-Pro-7.3.0.287519-darwin.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "20MB"\
  },\
  {\
    "platform" : "MacPPC",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/MacOSX/7.3/PDK-Pro-7.3.0.287519-darwin.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "20MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/Solaris/7.3/PDK-Pro-7.3.0.287519-solaris-sparc.tar.gz",\
    "label"    : "Solaris (SPARC)",\
    "type"     : "AS package",\
    "size"     : "16MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/Solaris/7.3/PDK-Pro-7.3.0.287519-solaris-x86.tar.gz",\
    "label"    : "Solaris (x86)",\
    "type"     : "AS package",\
    "size"     : "13MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/Solaris/7.3/PDK-Deployment-7.3.0.287519-solaris-sparc-64.tar.gz",\
    "label"    : "Solaris 64-bit (SPARC)",\
    "type"     : "AS package",\
    "size"     : "9MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/Windows/7.3/PDK-Pro-7.3.0.287519-windows.msi",\
    "label"    : "Windows (x86)",\
    "type"     : "MSI",\
    "size"     : "11MB"\
  },\
  {\
    "platform" : "Win64",\
    "link"     : "http://downloads.activestate.com/Perl_Dev_Kit/Windows/7.3/PDK-Deployment-7.3.0.287519-windows-64.msi",\
    "label"    : "Windows 64-bit (x64)",\
    "type"     : "MSI",\
    "size"     : "4.8MB"\
  }\
]\
';var tdk_json='\
[\
  {\
    "platform" : "AIX",\
    "link"     : "http://downloads.activestate.com/TDK/Aix/5.0/TclDevKit5.0.1.288034-aix-rs6000-threaded.tar.gz",\
    "label"    : "AIX",\
    "type"     : "AS package",\
    "size"     : "20MB"\
  },\
  {\
    "platform" : "HP-UX",\
    "link"     : "http://downloads.activestate.com/TDK/HP-UX/5.0/TclDevKit5.0.1.288034-hpux-parisc-threaded.tar.gz",\
    "label"    : "HP-UX",\
    "type"     : "AS package",\
    "size"     : "22MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/TDK/Linux/5.0/TclDevKit5.0.1.288034-linux-ix86-threaded.tar.gz",\
    "label"    : "Linux (x86)",\
    "type"     : "AS package",\
    "size"     : "19MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/TDK/Linux/5.0/TclDevKit5.0.1.288034-linux-x86_64-threaded.tar.gz",\
    "label"    : "Linux 64-bit (x86_64)",\
    "type"     : "AS package",\
    "size"     : "19MB"\
  },\
  {\
    "platform" : "MacIntel",\
    "link"     : "http://downloads.activestate.com/TDK/MacOSX/5.0/TclDevKit5.0.1.288034-macosx-universal-threaded.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "22MB"\
  },\
  {\
    "platform" : "MacPPC",\
    "link"     : "http://downloads.activestate.com/TDK/MacOSX/5.0/TclDevKit5.0.1.288034-macosx-universal-threaded.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "22MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/TDK/Solaris/5.0/TclDevKit5.0.1.288034-solaris-ix86-threaded.tar.gz",\
    "label"    : "Solaris (x86)",\
    "type"     : "AS package",\
    "size"     : "19MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/TDK/Solaris/5.0/TclDevKit5.0.1.288034-solaris-sparc-2.8-threaded.tar.gz",\
    "label"    : "Solaris (SPARC)",\
    "type"     : "AS package",\
    "size"     : "21MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/TDK/Windows/5.0/TclDevKit5.0.1.288034-win32-ix86-threaded.exe",\
    "label"    : "Windows",\
    "type"     : "MSI",\
    "size"     : "37MB"\
  }\
]\
';var activeperl_json='\
[\
  {\
    "platform" : "AIX",\
    "link"     : "http://downloads.activestate.com/ActivePerl/AIX/5.10/ActivePerl-5.10.0.1004-aix-5.1.0.0-cc-287188.tar.gz",\
    "label"    : "AIX",\
    "type"     : "AS package",\
    "size"     : "27.1MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Linux/5.10/ActivePerl-5.10.0.1004-i686-linux-glibc-2.3.2-287188.tar.gz",\
    "label"    : "Linux (x86)",\
    "type"     : "AS package",\
    "size"     : "23.4MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Linux/5.10/ActivePerl-5.10.0.1004-i686-linux-glibc-2.3.2-287188.deb",\
    "label"    : "Linux (x86)",\
    "type"     : "DEB",\
    "size"     : "28.6MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Linux/5.10/ActivePerl-5.10.0.1004-i686-linux-glibc-2.3.2-287188.rpm",\
    "label"    : "Linux (x86)",\
    "type"     : "RPM",\
    "size"     : "28.6MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Linux/5.10/ActivePerl-5.10.0.1004-x86_64-linux-glibc-2.3.3-287188.tar.gz",\
    "label"    : "Linux 64-bit (x86_64)",\
    "type"     : "AS package",\
    "size"     : "20.7MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Linux/5.10/ActivePerl-5.10.0.1004-x86_64-linux-glibc-2.3.3-287188.deb",\
    "label"    : "Linux 64-bit (x86_64)",\
    "type"     : "DEB",\
    "size"     : "25.8MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Linux/5.10/ActivePerl-5.10.0.1004-x86_64-linux-glibc-2.3.3-287188.rpm",\
    "label"    : "Linux 64-bit (x86_64)",\
    "type"     : "RPM",\
    "size"     : "21.4MB"\
  },\
  {\
    "platform" : "MacIntel",\
    "link"     : "http://downloads.activestate.com/ActivePerl/MacOSX/5.10/ActivePerl-5.10.0.1004-darwin-9.4.0-287188.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "37.6MB"\
  },\
  {\
    "platform" : "MacPPC",\
    "link"     : "http://downloads.activestate.com/ActivePerl/MacOSX/5.10/ActivePerl-5.10.0.1004-darwin-9.4.0-287188.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "37.6MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Solaris/5.10/ActivePerl-5.10.0.1004-sun4-solaris-2.8-cc-287188.tar.gz",\
    "label"    : "Solaris (SPARC)",\
    "type"     : "AS package",\
    "size"     : "25.0MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Solaris/5.10/ActivePerl-5.10.0.1004-sun4-solaris-2.8-cc-287188.pkg.gz",\
    "label"    : "Solaris (SPARC)",\
    "type"     : "pkgadd",\
    "size"     : "30.1MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Solaris/5.10/ActivePerl-5.10.0.1004-x86-solaris-2.10-cc-287188.tar.gz",\
    "label"    : "Solaris (x86)",\
    "type"     : "AS package",\
    "size"     : "22.8MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Solaris/5.10/ActivePerl-5.10.0.1004-x86-solaris-2.10-cc-287188.pkg.gz",\
    "label"    : "Solaris (x86)",\
    "type"     : "pkgadd",\
    "size"     : "27.9MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Solaris/5.10/ActivePerl-5.10.0.1004-sun4-solaris-64-2.8-cc-287188.tar.gz",\
    "label"    : "Solaris 64-bit (SPARC)",\
    "type"     : "AS package",\
    "size"     : "22.0MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Solaris/5.10/ActivePerl-5.10.0.1004-sun4-solaris-64-2.8-cc-287188.pkg.gz",\
    "label"    : "Solaris 64-bit (SPARC)",\
    "type"     : "pkgadd",\
    "size"     : "27.1MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1004-MSWin32-x86-287188.msi",\
    "label"    : "Windows (x86)",\
    "type"     : "MSI",\
    "size"     : "17.0MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1004-MSWin32-x86-287188.zip",\
    "label"    : "Windows (x86)",\
    "type"     : "AS package",\
    "size"     : "17.3MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1004-MSWin32-x86-287188-symbols.zip",\
    "label"    : "Windows (x86)",\
    "type"     : "Symbols",\
    "size"     : "5.6MB"\
  },\
  {\
    "platform" : "Win64",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1004-MSWin32-x64-287188.msi",\
    "label"    : "Windows 64-bit (x64)",\
    "type"     : "MSI",\
    "size"     : "15.0MB"\
  },\
  {\
    "platform" : "Win64",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1004-MSWin32-x64-287188.zip",\
    "label"    : "Windows 64-bit (x64)",\
    "type"     : "AS package",\
    "size"     : "15.2MB"\
  },\
  {\
    "platform" : "Win64",\
    "link"     : "http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1004-MSWin32-x64-287188-symbols.zip",\
    "label"    : "Windows 64-bit (x64)",\
    "type"     : "Symbols",\
    "size"     : "6.7MB"\
  },\
  {\
    "platform" : "Source Distributions",\
    "link"     : "http://downloads.activestate.com/ActivePerl/src/5.10/AP1004_source.tgz",\
    "label"    : "Source Distributions",\
    "type"     : "AP1004_source.tgz",\
    "size"     : "15.1MB"\
  },\
  {\
    "platform" : "Source Distributions",\
    "link"     : "http://downloads.activestate.com/ActivePerl/src/5.10/AP1004_source.zip",\
    "label"    : "Source Distributions",\
    "type"     : "AP1004_source.zip",\
    "size"     : "17.4MB"\
  },\
  {\
    "platform" : "Source Distributions",\
    "link"     : "http://downloads.activestate.com/ActivePerl/src/5.10/AP1004_diff.txt",\
    "label"    : "Source Distributions",\
    "type"     : "AP1004_diff.txt",\
    "size"     : "0.9MB"\
  },\
]\
';var activepython_json='\
[\
  {\
    "platform" : "AIX",\
    "link"     : "http://downloads.activestate.com/ActivePython/aix/2.6/ActivePython-2.6.0.0-aix5-powerpc.tar.gz",\
    "label"    : "AIX (PowerPC)",\
    "type"     : "AS package",\
    "size"     : "17B"\
  },\
  {\
    "platform" : "HP-UX",\
    "link"     : "http://downloads.activestate.com/ActivePython/hp-ux/2.6/ActivePython-2.6.0.0-hpux11.00-parisc.tar.gz",\
    "label"    : "HP-UX (PA-RISC)",\
    "type"     : "AS package",\
    "size"     : "19MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActivePython/linux/2.6/ActivePython-2.6.0.0-linux-x86.tar.gz",\
    "label"    : "Linux (x86)",\
    "type"     : "AS package",\
    "size"     : "21MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActivePython/linux/2.6/ActivePython-2.6.0.0-linux-x86_64.tar.gz",\
    "label"    : "Linux 64-bit (x86_64)",\
    "type"     : "AS package",\
    "size"     : "22MB"\
  },\
  {\
    "platform" : "MacIntel",\
    "link"     : "http://downloads.activestate.com/ActivePython/macosx/2.6/ActivePython-2.6.0.0-macosx.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "23MB"\
  },\
  {\
    "platform" : "MacPPC",\
    "link"     : "http://downloads.activestate.com/ActivePython/macosx/2.6/ActivePython-2.6.0.0-macosx.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "23MB"\
  },\
  {\
    "platform" : "Solaris (SPARC)",\
    "link"     : "http://downloads.activestate.com/ActivePython/solaris/2.6/ActivePython-2.6.0.0-solaris8-sparc.tar.gz",\
    "label"    : "Solaris 8+ (SPARC)",\
    "type"     : "AS package",\
    "size"     : "18MB"\
  },\
  {\
    "platform" : "Solaris (SPARC 64-bit)",\
    "link"     : "http://downloads.activestate.com/ActivePython/solaris/2.6/ActivePython-2.6.0.0-solaris8-sparc64.tar.gz",\
    "label"    : "Solaris 8+ (SPARC 64-bit)",\
    "type"     : "AS package",\
    "size"     : "19MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActivePython/solaris/2.6/ActivePython-2.6.0.0-solaris10-x86.tar.gz",\
    "label"    : "Solaris 10 (x86)",\
    "type"     : "AS package",\
    "size"     : "16MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/ActivePython/windows/2.6/ActivePython-2.6.0.0-win32-x86.msi",\
    "label"    : "Windows (x86)",\
    "type"     : "AS package",\
    "size"     : "30MB"\
  }\
]\
';var activetcl_json='\
[\
  {\
    "platform" : "AIX",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/AIX/8.5.5/ActiveTcl8.5.5.0.287690-aix-rs6000-threaded.tar.gz",\
    "label"    : "AIX",\
    "type"     : "AS package",\
    "size"     : "19.3MB"\
  },\
  {\
    "platform" : "HP-UX",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/HP-UX/8.5.5/ActiveTcl8.5.5.0.287690-hpux-parisc-threaded.tar.gz",\
    "label"    : "HP-UX",\
    "type"     : "AS package (PA-RISC)",\
    "size"     : "21.2MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/Linux/8.5.5/ActiveTcl8.5.5.0.287690-linux-ix86-threaded.tar.gz",\
    "label"    : "Linux - x86",\
    "type"     : "AS package (x86)",\
    "size"     : "18.1MB"\
  },\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/Linux/8.5.5/ActiveTcl8.5.5.0.287690-linux-x86_64-threaded.tar.gz",\
    "label"    : "Linux - x86_64",\
    "type"     : "AS package (x86_64)",\
    "size"     : "17.6MB"\
  },\
  {\
    "platform" : "MacIntel",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/MacOSX/8.5.5/ActiveTcl8.5.5.0.287690-macosx-universal-threaded.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "20.7MB"\
  },\
  {\
    "platform" : "MacPPC",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/MacOSX/8.5.5/ActiveTcl8.5.5.0.287690-macosx-universal-threaded.dmg",\
    "label"    : "Mac OS X (Universal)",\
    "type"     : "DMG",\
    "size"     : "20.7MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/Solaris/8.5.5/ActiveTcl8.5.5.0.287690-solaris-ix86-threaded.tar.gz",\
    "label"    : "Solaris",\
    "type"     : "AS package (x86)",\
    "size"     : "17.4MB"\
  },\
  {\
    "platform" : "Solaris",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/Solaris/8.5.5/ActiveTcl8.5.5.0.287690-solaris-sparc-2.8-threaded.tar.gz",\
    "label"    : "Solaris",\
    "type"     : "AS package (SPARC)",\
    "size"     : "19.6MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/ActiveTcl/Windows/8.5.5/ActiveTcl8.5.5.0.287690-win32-ix86-threaded.exe",\
    "label"    : "Windows",\
    "type"     : "AS package",\
    "size"     : "20.9MB"\
  },\
]\
';var komodo_edit_json='\
[\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/Komodo/releases/5.0.2/Komodo-Edit-5.0.2-2604-linux-libcpp6-x86.tar.gz",\
    "label"    : "Linux (x86)",\
    "type"     : "AS package (libcpp6)",\
    "size"     : "37MB"\
  },\
  {\
    "platform" : "MacIntel",\
    "link"     : "http://downloads.activestate.com/Komodo/releases/5.0.2/Komodo-Edit-5.0.2-2604-macosx-x86.dmg",\
    "label"    : "Mac OS X (Intel)",\
    "type"     : "DMG",\
    "size"     : "38MB"\
  },\
  {\
    "platform" : "MacPPC",\
    "link"     : "http://downloads.activestate.com/Komodo/releases/5.0.2/Komodo-Edit-5.0.2-2604-macosx-powerpc.dmg",\
    "label"    : "Mac OS X (PowerPC)",\
    "type"     : "DMG",\
    "size"     : "38MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/Komodo/releases/5.0.2/Komodo-Edit-5.0.2-2604.msi",\
    "label"    : "Windows",\
    "type"     : "MSI",\
    "size"     : "31MB"\
  },\
]\
';var komodo_ide_json='\
[\
  {\
    "platform" : "Linux",\
    "link"     : "http://downloads.activestate.com/Komodo/releases/5.0.2/Komodo-IDE-5.0.2-24939-linux-libcpp6-x86.tar.gz",\
    "label"    : "Linux (x86)",\
    "type"     : "AS package (libcpp6)",\
    "size"     : "44MB"\
  },\
  {\
    "platform" : "MacIntel",\
    "link"     : "http://downloads.activestate.com/Komodo/releases/5.0.2/Komodo-IDE-5.0.2-24939-macosx-x86.dmg",\
    "label"    : "Mac OS X (Intel)",\
    "type"     : "DMG",\
    "size"     : "45MB"\
  },\
  {\
    "platform" : "MacPPC",\
    "link"     : "http://downloads.activestate.com/Komodo/releases/5.0.2/Komodo-IDE-5.0.2-24939-macosx-powerpc.dmg",\
    "label"    : "Mac OS X (PowerPC)",\
    "type"     : "DMG",\
    "size"     : "46MB"\
  },\
  {\
    "platform" : "Win32",\
    "link"     : "http://downloads.activestate.com/Komodo/releases/5.0.2/Komodo-IDE-5.0.2-24939.msi",\
    "label"    : "Windows",\
    "type"     : "MSI",\
    "size"     : "38MB"\
  }\
]\
';function bin_dl(product){var self=this;self._product_name=product;self._btn_id="";self._json=$.secureEvalJSON(eval(product.toLowerCase()+"_json"));self._pop_message="";self._return_url="";self._nothanks_url="";self._pop_height=420;self._pop_width=470;self._survey_cookie_expire=3650;self._survey_cookie_name=product.toLowerCase()+"_oneclick";self._reminder_cookie_expire=7;self._reminder_cookie_name=product.toLowerCase()+"_reminder";self.setJSON=function(txt_JSON){self._json=$.secureEvalJSON(txt_JSON);}
self.getJSON=function(){return self._json;}
self.setProductName=function(value){self._product_name=value;}
self.getProductName=function(){return self._product_name;}
self.setPopMessage=function(value){self._pop_message=value;}
self.getPopMessage=function(){return self._pop_message;}
self.setCookieName=function(value){self._cookie_name=value;}
self.getCookieName=function(){return _cookie_name;}
self.setPopHeight=function(value){self._pop_height=value;}
self.getPopHeight=function(){return _pop_height;}
self.setPopWidth=function(value){self._pop_width=value;}
self.getPopWidth=function(){return _pop_width;}
self.current_label=function(){return self.from_current("label");};self.current_binary=function(){return self.from_current("link");};self.current_size=function(){return self.from_current("size");};self.current_type=function(){return self.from_current("type");};self.current_platform=function(){return self.from_current("platform");};self.from_current=function(data_type){for(var i in self._json){if(navigator.platform.toLowerCase().indexOf(self._json[i].platform.toLowerCase())>=0){return self._json[i][data_type];}}
return"";};self.from_specific=function(record,data_type){if(self._json[record]){return self._json[record][data_type];}
return false;};self.get_dl_folder=function(){tmp_link=self.from_specific(0,"link");tmp_var=(tmp_link.split(".com/")[1])?tmp_link.split(".com/")[1]:tmp_link;tmp_var=tmp_var.split('/');return tmp_var[0]+"/"+tmp_var[1]+"/"+tmp_var[2];};self.check_url=function(url_to_check){for(var i in self._json){if(self._json[i].link==url_to_check){return true;}}
return false;};self.rewrite_urls=function(){var cur_url=location.href;if(cur_url.indexOf(self.get_dl_folder())>=0){if($("a[href^='"+cur_url+"']").length>1){$("a[href^='"+cur_url+"']").each(function(){if(self.check_url($(this).attr('href'))){$(this).click(function(){self.pop_prompt($(this).attr('href'));return false;});}});}}}
self.init=function(id,return_url,nothanks_url){self._btn_id=(id==null||id=="")?self._product_name+"_btn":id;self._return_url=(return_url==null)?window.location.href+"?success=1":return_url;self._nothanks_url=(nothanks_url==null)?return_url:nothanks_url;self._nothanks_url=(self._nothanks_url.length==0)?return_url:nothanks_url;if(document.getElementById(self._btn_id)){$("#"+self._btn_id+" div.all_binaries").hide();$("#"+self._btn_id+" div.featured_binary .dl_trial").attr('href',self.current_binary());$("#"+self._btn_id+" div.featured_binary .dl_trial").click(function(){self.pop_prompt();return false;});$("#"+self._btn_id+" div.featured_binary h3 a span").append(self.current_label()+" ("+self.current_size()+")");$("#"+self._btn_id+" div.featured_binary h3").append('<br />');dropdown_open="slideDown(500);";dropdown_close="slideUp(500);";if($.browser['msie']&&$.browser['version']<7){dropdown_open="show();";dropdown_close="hide();";}
$("#"+self._btn_id+" div.featured_binary h3").append('<span class="view_binaries"><a href="#" onclick=\'$("#'+self._btn_id+' div.all_binaries").'+dropdown_open+' $("#'+self._btn_id+' .view_binaries").hide();$("#'+self._btn_id+' .hide_binaries").show(); return false;\'>&raquo; view all binaries</a></span>\n');$("#"+self._btn_id+" div.featured_binary h3").append('<span class="hide_binaries"><a href="#" onclick=\'$("#'+self._btn_id+' div.all_binaries").'+dropdown_close+' $("#'+self._btn_id+' .hide_binaries").hide();$("#'+self._btn_id+' .view_binaries").show(); return false;\'>&laquo; hide all binaries</a></span>\n');$("#"+self._btn_id+" div.all_binaries div.binary_container").append(self.populate());}}
self.populate=function(){var output="<dl>\r\n";var current_heading="";var current_link="";for(var i in self._json){if(current_heading!=self._json[i]['label']){if(current_heading!=""){output+="</dl>\n";output+="<dl class=\""+self._json[i]['platform']+"\">\n";}
current_heading=self._json[i]['label'];output+="<dt>"+current_heading+"</dt>\n";}
if(current_link!=self._json[i]['link']){current_link=self._json[i]['link'];output+="<dd><a href=\""+self._json[i]['link']+"\" onclick=\""+self._btn_id+"_obj.pop_prompt('"+self._json[i]['link']+"'); return false;\">"+self._json[i]['type']+"</a> ("+self._json[i]['size']+")</dd>\n";}}
output+="</dl>\r\n"
return output;};self.pop_prompt=function(link){destination_url=(self._return_url.indexOf("?")>0)?self._return_url+"&success=1":self._return_url+"?success=1";self._pop_message="<div id=\"oneclick_pop\">\
  <h1 class=\"komodopop_title\">Subscribe to the ActiveState Newsletter!</h1>\
  <div id=\"oneclick_content_container\">\
    <div id=\"oneclick_content\">\
      <p>Get product resources delivered to your inbox. Or choose our Business Solutions option and receive industry insights.</p>\
      <form method=\"post\" name=\""+self._btn_id+"_form\" id=\""+self._btn_id+"_form\" action=\"/crm/leadCapture.php\">\
        <input type=\"hidden\" value=\""+destination_url+"\" name=\"redirect\" id=\"redirect\" />\
        <input type=\"hidden\" name=\"first_name\" value=\""+self._product_name+"\" />\
        <input type=\"hidden\" value=\""+window.location.href+"\" name=\"lead_source_description\" />\
        <input type=\"hidden\" value=\"Oneclick Download\" name=\"lead_source\" />\
        <input type=\"hidden\" value=\"eeccd70e-7390-0e2a-1e15-4613ee3c8c65\" name=\"assigned_user_id\" />\
        <input type=\"hidden\" value=\"f3708a9e-a100-e174-d548-48a34127e518\" name=\"team_id\" />\
        <input type=\"hidden\" name=\"last_name\" value=\"Oneclick Download\" />\
        <input type=\"hidden\" name=\"user\" value=\"99d98d16-8138-102a-91c0-001372fc751b\" />\
        <div class=\"required\">\
           <label id='email1_label'>Email Address</label>\
           <input size=\"25\" name=\"email1\" id='email1' value=\"\" class=\"text_box\" />\
           <input type=\"image\" src=\"/_images/one_click/subscribe_button.gif\" value=\" Subscribe \" name=\"submit\" id=\"submit\" onclick=\""+self._btn_id+"_obj.check_submit(this.form); return false;\" />\
        </div>\
        <div class=\"optional_fields\">\
          <div class=\"email_prefs\">\
             <label>Email Preference</label>\
             HTML: <input type=\"radio\" name=\"email_pref_c\" id='email_pref_html' value=\"html\" class=\"\" checked=\"checked\" />\
             Text: <input type=\"radio\" name=\"email_pref_c\" id='email_pref_text' value=\"text\" class=\"\" />\
          </div>\
          <div>\
            <p>Customize your news interests</p>\
            <div class=\"label_container\">\
              <p><label>Komodo IDE</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='Komodo IDE' ";if(self._product_name=="komodo_ide"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/> \
              <label>Komodo Edit</label> <input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='Komodo Edit' ";if(self._product_name=="komodo_edit"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/></p> \
              <p><label>Perl Dev Kit</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='PDK' ";if(self._product_name=="pdk"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/> \
              <label>Tcl Dev Kit</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='TDK' ";if(self._product_name=="tdk"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/> </p> \
              <p><label>Active Perl Pro Studio</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='ActivePerlProStudio' ";if(self._product_name=="apps"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/> \
              <label>ActiveTcl Pro Studio</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='ActiveTclProStudio' ";if(self._product_name=="apps"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/> </p> \
              <p><label>ActivePerl</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='ActivePerl' ";if(self._product_name=="activeperl"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/> \
              <label>ActivePython</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='ActivePython' ";if(self._product_name=="activepython"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/> </p> \
              <p><label>ActiveTcl</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='ActiveTcl' ";if(self._product_name=="activetcl"){self._pop_message+="checked=\"checked\" ";}
self._pop_message+="/> \
              <label>Business Solutions</label><input type=\"checkbox\" name=\"lead_product_interest4_c[]\" value='Enterprise Business Solutions' /></p>     \
              <br class=\"clear\" />\
            </div>\
          </div>\
        </div>\
      </form>\
      <p>We value your <a href=\"/privacy\">privacy</a>. We will not rent or sell your email address, and we make it easy to unsubscribe or change your preferences.</p>\
    </div><!-- /oneclick_content -->\
  </div><!-- /oneclick_content_container -->\
  <a href=\""+self._nothanks_url+"\" onclick=\"TB_remove(); "+self._btn_id+"_obj.set_reminder(); pageTracker._trackPageview('/' + self._product_name + '/close_form');\" id=\"oneclick_close\">close</a>\
</div><!-- /oneclick_pop -->";self.pop_dl(link);if(pageTracker){pageTracker._trackPageview('/'+self._product_name+'/download');}
var show_form=false;if(!self.checkCookie(self._survey_cookie_name)){if(!self.checkCookie(self._reminder_cookie_name)){show_form=true;}}
if(show_form){if(pageTracker){pageTracker._trackPageview('/'+self._product_name+'/pop_up');}
self.generate();}else{var current_link=(self._nothanks_url==null)?self.current_binary():self._nothanks_url;window.location=current_link;}
return false;};self.check_submit=function(form){var tmp_email=form.email1.value;var regex=/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i;if(regex.test(tmp_email)){if(pageTracker){pageTracker._trackPageview("/"+self._product_name+"/submit_form");}
self.set_filled_out();form.submit();}else{form.email1.style.color="red"
if(form.email1.value.length==0){form.email1.value="missing";}}
return false;};self.pop_dl=function(link){var current_link=(link==null)?self.current_binary():link;window.open(current_link,'download_window','toolbar=0,location=no,directories=0,status=0,scrollbars=0,resizeable=0,width=1,height=1,top=0,left=0');window.focus();};self.trigger_dl=function(link){var current_link=(link==null)?self.current_binary():link;window.location=current_link;return false;};self.generate=function()
{$("body").append("<div id=\"survey_pop_content\" style=\"display:none;\">"+self._pop_message+"</div>");TB_show(" ","#TB_inline?height="+self._pop_height+"&width="+self._pop_width+"&inlineId=survey_pop_content",null);$("#TB_window").css("background","none");$("#TB_window").css("border","none");$("#TB_title").hide();}
self.set_reminder=function(){self.setCookie(self._reminder_cookie_name,location.href,self._reminder_cookie_expire);};self.set_filled_out=function(){self.setCookie(self._survey_cookie_name,location.href,self._survey_cookie_expire);};self.setCookie=function(c_name,value,expiredays)
{var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+
((expiredays==null)?"":";domain=.activestate.com;path=/;expires="+exdate.toGMTString());}
self.getCookie=function(c_name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
self.checkCookie=function(cookie_name)
{cookie_val=self.getCookie(cookie_name);if(cookie_val!=null&&cookie_val!="")
{return true;}
else
{return false;}}};$(document).ready(TB_init);function TB_init(){$("a.thickbox").click(function(event){event.preventDefault();this.blur();var caption=this.title||this.name||"";var group=this.rel||false;TB_show(caption,this.href,group);});}
function TB_show(caption,url,rel){if(!$("#TB_HideSelect").length){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");}
TB_overlaySize();$("body").append("<div id='TB_load'><img src='/_images/thickbox/loadingAnimation.gif' /></div>");TB_load_position();var baseURL=url.match(/(.+)?/)[1]||url;var imageURL=/\.(jpe?g|png|gif|bmp)/gi;if(baseURL.match(imageURL)){var dummy={caption:"",url:"",html:""};var prev=dummy,next=dummy,imageCount="";if(rel){function getInfo(image,id,label){return{caption:image.title,url:image.href,html:"<span id='TB_"+id+"'>&nbsp;&nbsp;<a href='#'>"+label+"</a></span>"}}
var imageGroup=$("a[@rel="+rel+"]").get();var foundSelf=false;for(var i=0;i<imageGroup.length;i++){var image=imageGroup[i];var urlTypeTemp=image.href.match(imageURL);if(image.href==url){foundSelf=true;imageCount="Screenshot "+(i+1)+" of "+(imageGroup.length);}else{if(foundSelf){next=getInfo(image,"next","Next &gt;");break;}else{prev=getInfo(image,"prev","&lt; Previous");}}}}
imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=TB_getPageSize();var x=1000;var y=1000;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;}}else if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;}}
TB_WIDTH=imageWidth+40;TB_HEIGHT=imageHeight;$("#TB_window").append("<div id='top-bar'><!-- --><div id='right-edge'><!-- --></div></div> "+"<div id='popup-contents'><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'><img src='/_images/screenshots/screenshot-close-button.gif'></a></div><div id='TB_caption'><span id='name'>"+caption+"</span><div id='TB_secondLine'>"+imageCount+prev.html+next.html+"</div></div>"+"<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a></div>");$("#TB_closeWindowButton").click(TB_remove);function buildClickHandler(image){return function(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");TB_show(image.caption,image.url,rel);return false;};}
var goPrev=buildClickHandler(prev);var goNext=buildClickHandler(next);if(prev.html){$("#TB_prev").click(goPrev);}
if(next.html){$("#TB_next").click(goNext);}
document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
switch(keycode){case 27:break;case 190:if(next.html){document.onkeydown=null;goNext();}
break;case 188:if(prev.html){document.onkeydown=null;goPrev();}
break;}}
TB_position();$("#TB_load").remove();$("#TB_ImageOff").click(TB_remove);$("#TB_window").css({display:"block"});}
imgPreloader.src=url;}else{var queryString=url.match(/\?(.+)/)[1];var params=TB_parseQuery(queryString);TB_WIDTH=(params['width']*1)+30;TB_HEIGHT=(params['height']*1)+40;var ajaxContentW=TB_WIDTH-30,ajaxContentH=TB_HEIGHT-45;if(url.indexOf('TB_iframe')!=-1){urlNoQuery=url.split('TB_');$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' onload='TB_showIframe()'> </iframe>");}else{$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}
$("#TB_closeWindowButton").click(TB_remove);if(url.indexOf('TB_inline')!=-1){$("#TB_ajaxContent").html($('#'+params['inlineId']).html());TB_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});}else if(url.indexOf('TB_iframe')!=-1){TB_position();if(frames['TB_iframeContent']==undefined){$("#TB_load").remove();$("#TB_window").css({display:"block"});}}else{$("#TB_ajaxContent").load(url,function(){TB_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});});}}
$(window).resize(TB_position);document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){}}}
function TB_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}
function TB_remove(){$("#TB_imageOff").unbind("click");$("#TB_overlay").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").css({display:"none"});$('#TB_window,#TB_overlay,#TB_HideSelect').remove();$("#TB_load").remove();return false;}
function TB_position(){var pagesize=TB_getPageSize();var arrayPageScroll=TB_getPageScrollTop();var style={width:TB_WIDTH,left:(arrayPageScroll[0]+(pagesize[0]-TB_WIDTH)/2-8),top:(arrayPageScroll[1]+70)};$("#TB_window").css(style);}
function TB_overlaySize(){if(window.innerHeight&&window.scrollMaxY||window.innerWidth&&window.scrollMaxX){yScroll=window.innerHeight+window.scrollMaxY;xScroll=window.innerWidth+window.scrollMaxX;var deff=document.documentElement;var wff=(deff&&deff.clientWidth)||document.body.clientWidth||window.innerWidth||self.innerWidth;var hff=(deff&&deff.clientHeight)||document.body.clientHeight||window.innerHeight||self.innerHeight;xScroll-=(window.innerWidth-wff);yScroll-=(window.innerHeight-hff);}else if(document.body.scrollHeight>document.body.offsetHeight||document.body.scrollWidth>document.body.offsetWidth){yScroll=document.body.scrollHeight;xScroll=document.body.scrollWidth;}else{yScroll=document.body.offsetHeight;xScroll=document.body.offsetWidth;}
$("#TB_overlay").css({"height":yScroll,"width":xScroll});$("#TB_HideSelect").css({"height":yScroll,"width":xScroll});}
function TB_load_position(){var pagesize=TB_getPageSize();var arrayPageScroll=TB_getPageScrollTop();$("#TB_load").css({left:(arrayPageScroll[0]+(pagesize[0]-100)/2),top:(arrayPageScroll[1]+((pagesize[1]-100)/2))}).css({display:"block"});}
function TB_parseQuery(query){if(!query)
return{};var params={};var pairs=query.split(/[;&]/);for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');if(!pair||pair.length!=2)
continue;params[unescape(pair[0])]=unescape(pair[1]).replace(/\+/g,' ');}
return params;}
function TB_getPageScrollTop(){var yScrolltop;var xScrollleft;if(self.pageYOffset||self.pageXOffset){yScrolltop=self.pageYOffset;xScrollleft=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop||document.documentElement.scrollLeft){yScrolltop=document.documentElement.scrollTop;xScrollleft=document.documentElement.scrollLeft;}else if(document.body){yScrolltop=document.body.scrollTop;xScrollleft=document.body.scrollLeft;}
arrayPageScroll=new Array(xScrollleft,yScrolltop)
return arrayPageScroll;}
function TB_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight
arrayPageSize=new Array(w,h)
return arrayPageSize;}
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function AC_AddExtension(src,ext)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
function AC_Generateobj(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
{str+=i+'="'+objAttrs[i]+'" ';}
str+='>';for(var i in params)
{str+='<param name="'+i+'" value="'+params[i]+'" /> ';}
str+='</object>';}
else
{str+='<embed ';for(var i in embedAttrs)
{str+=i+'="'+embedAttrs[i]+'" ';}
str+='> </embed>';}
document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_SW_RunContent(){var ret=AC_GetArgs
(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;};(function($){function toIntegersAtLease(n)
{return n<10?'0'+n:n;}
Date.prototype.toJSON=function(date)
{return date.getUTCFullYear()+'-'+
toIntegersAtLease(date.getUTCMonth()+1)+'-'+
toIntegersAtLease(date.getUTCDate());};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'}
$.quoteString=function(string)
{if(escapeable.test(string))
{return'"'+string.replace(escapeable,function(a)
{var c=meta[a];if(typeof c==='string'){return c;}
c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"'}
return'"'+string+'"';}
$.toJSON=function(o)
{var type=typeof(o);if(type=="undefined")
return"undefined";else if(type=="number"||type=="boolean")
return o+"";else if(o===null)
return"null";if(type=="string")
{return $.quoteString(o);}
if(type=="object"&&typeof o.toJSON=="function")
return o.toJSON();if(type!="function"&&typeof(o.length)=="number")
{var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i]));}
return"["+ret.join(", ")+"]";}
if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.");}
ret=[];for(var k in o){var name;var type=typeof(k);if(type=="number")
name='"'+k+'"';else if(type=="string")
name=$.quoteString(k);else
continue;val=$.toJSON(o[k]);if(typeof(val)!="string"){continue;}
ret.push(name+": "+val);}
return"{"+ret.join(", ")+"}";}
$.evalJSON=function(src)
{return eval("("+src+")");}
$.secureEvalJSON=function(src)
{var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,'@');filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']');filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,'');if(/^[\],:{}\s]*$/.test(filtered))
return eval("("+src+")");else
throw new SyntaxError("Error parsing JSON, source is not valid.");}})(jQuery);