var imgpath="/staticweb/images/";var theSite=location.protocol+"//"+location.host;function getServerRoot(overrideProtocol){var protocol=location.protocol;var port=location.port;var result="";if(overrideProtocol){protocol=overrideProtocol;if(protocol.indexOf(":")<0){protocol+=":";}}result+=protocol+"//"+location.host;
if(port!=""&&port!="80"){result+=":";result+=location.port;}return result;}function doMastheadSearch(){var cookieVal=document.forms["searchMastForm"].elements["searchMastElement"].value;var options={path:"/",expires:1,secure:true};$.cookie("searchMastCookie",cookieVal,options);window.location.href=portalURI+"search";
}function iframeload(){var iframe=($.cookie("https_iframe"));if(iframe=="complete"){$("#cboxTopCenter #top_hdr h1").html("Complete Registration");}else{if(iframe=="forgetPW"){$("#cboxTopCenter #top_hdr h1").html("Forgot Your Pioneer.com Password?");}else{if(iframe=="goback"){var urlpath=($.cookie("goback"));
window.location(urlpath);$.cookie("goback",null,{path:"/",secure:true});}else{if(iframe=="homepage"){$.cookie("https_iframe",null,{path:"/",secure:true});window.location.assign(portalURI);}else{if(iframe=="signin-adv"){$("#cboxTopCenter #top_hdr h1").html("To Take Advantage of This Feature, Sign In or Register");
}else{if(iframe=="signout"){$("#cboxTopCenter #top_hdr h1").html("You have signed out successfully");}else{if(iframe=="tech"){$("#cboxTopCenter #top_hdr h1").html("New Technology Agreement");}}}}}}}}function getBodyContent(data){return data.substring(data.indexOf("<body>")+6,data.indexOf("</body>"));
}function runRegAnalytics(){if(location.search.indexOf("customer")>=0){dcsMultiTrack("DCS.dcsuri","/Customer/ProspectRegistrationFIS","WT.si_n","CustomerProspectRegistrationFIS","WT.si_x","3");}if(location.search.indexOf("guest")>=0){dcsMultiTrack("DCS.dcsuri","/GuestRegistration","WT.si_n","GuestRegistration","WT.si_x","3");
}}function makeLoginFormsAjax(){function callAjax(formData,formAction,formMethod,formId){$.ajax({url:formAction,type:formMethod,contentType:"application/x-www-form-urlencoded",dataType:"html",data:formData,success:function(data){var content=getBodyContent(data);$(formId).html(content);if($("#updateSecurityForm").length>0){$("#cboxLoadedContent").css("overflow","scroll");
}else{$("#cboxLoadedContent").css("overflow","hidden");}runRegAnalytics();},complete:function(){makeLoginFormsAjax();if(!$("div.modalWrapper").hasClass("alreadyStyled")){$("div.modalWrapper").customformelements();$("div.modalWrapper").addClass("alreadyStyled");}}});}$("#loginForm,#activateForm,#updateSecurityForm").submit(function(){return false;
});$("#loginForm :input[name='btnLogin'], [name='btnLink']").click(function(){$("#loginForm :input[name='btnLogin']").attr("disabled","disabled");$("#loginForm :input[name='btnLogin']").parent().next().show();var formData=$("#loginForm").serialize();var formAction=$("#loginForm").attr("action");var formMethod=$("#loginForm").attr("method");
if(!formMethod){formMethod="GET";}callAjax(formData,formAction,formMethod,"#loginForms");});$("#activateForm :input[name='btnLogin']").click(function(){var formData=$("#activateForm").serialize();var formAction=$("#activateForm").attr("action");var formMethod=$("#activateForm").attr("method");if(!formMethod){formMethod="GET";
}callAjax(formData,formAction,formMethod,"#emailiframe");});$("#updateSecurityForm :input[name='btnLogin']").click(function(){var formData=$("#updateSecurityForm").serialize();var formAction=$("#updateSecurityForm").attr("action");var formMethod=$("#updateSecurityForm").attr("method");if(!formMethod){formMethod="GET";
}callAjax(formData,formAction,formMethod,"#loginForms");});$("#TechAgreementsSpeedBump").submit(function(){return false;});$("[name='btnSignNow']").click(function(){var formAction=$("#TechAgreementsSpeedBump").attr("action");callAjax("btnSignNow=",formAction,"GET","#loginForms");dcsMultiTrack("DCS.dcsuri","/home/site/us/signin/submit","WT.ti","Sign In | Submit","WT.si_n","SignIn","WT.si_x","2");
});$("[name='btnSignLater']").click(function(){var formAction=$("#TechAgreementsSpeedBump").attr("action");callAjax("btnSignLater=",formAction,"GET","#loginForms");});$("#btnRegister").click(function(){var labelPathMap={"regGuest":"registrationGuest","regCust":"registrationCustomer","regCustRedir":"registrationCustomerRedirect"};
window.location.assign(portalURI+labelPathMap[$("#registerForm input:checked").val()]);});registerRadioPersist();$("#forgetUid").click(function(){$("#forgetUid-msg").toggle();});$("#rememberMe").click(function(){$("#rememberMe-msg").toggle();});}function registerRadioPersist(){var pageLocation=window.location.href;
if(pageLocation.indexOf("regGuest")!=-1){$("#radRegCust").removeAttr("checked");$("#radRegGuest").attr("checked","checked");}}var tl_loc0=(window.location.protocol=="https:")?"https://secure.comodo.net/trustlogo/javascript/trustlogo.js":"http://www.trustlogo.com/trustlogo/javascript/trustlogo.js";document.writeln("<scr"+'ipt language="JavaScript" src="'+tl_loc0+'" type="text/javascript">'+"</scr"+"ipt>");
$(document).ready(function(){$(".hiddenYieldResults").css("display","none");$(".hiddenYieldResults").removeClass("hiddenYieldResults");$("#yieldEstimate").click(function(){harvestableEars=$("#harvestableEars").val();kernelRowsPerEar=$("#kernelRowsPerEar").val();kernelsPerRow=$("#kernelsPerRow").val();
if(!checkNumberRange(harvestableEars,0,99)[0]){alert("Harvestable ears in 1/1000th Acre\nmust be a valid number between 0 and 99");$("#harvestableEars").focus();return false;}if(!checkNumberRange(kernelRowsPerEar,0,49)[0]){alert("Average number of kernel rows per ear\nmust be a valid number between 0 and 49");
$("#kernelRowsPerEar").focus();return false;}if(!checkNumberRange(kernelsPerRow,0,99)[0]){alert("Average number of kernels per row\nmust be a valid number between 0 and 99");$("#kernelsPerRow").focus();return false;}baseAmount=harvestableEars*kernelRowsPerEar*kernelsPerRow;avgYield=Math.floor(baseAmount/90);
aboveAvgYield=Math.floor(baseAmount/80);belowAvgYield=Math.floor(baseAmount/100);$("#yieldEstRow1 .yieldEstAmount").html("<span>"+avgYield+"</span> Bu/Acre");$("#yieldEstRow2 .yieldEstAmount").html("<span>"+aboveAvgYield+"</span> Bu/Acre");$("#yieldEstRow3 .yieldEstAmount").html("<span>"+belowAvgYield+"</span> Bu/Acre");
if(!$("#resultsContainer").hasClass("resultsToggled")){$("#resultsContainer").addClass("resultsToggled");$("#resultsContainer").fadeIn();}});});function isNumeric(n){return !isNaN(parseFloat(n))&&isFinite(n);}function checkNumberRange(n,l,h){if(isNumeric(n)){return(n>=l&&n<=h)?[true]:[false,l,h];}else{return[false,l,h];
}}function roundNumber(n,places){var roundedNum=Math.round(n*Math.pow(10,places))/Math.pow(10,places);return roundedNum;}function updateCustomizeLinks(){$("a.customize-lnk").click(function(){$(this).attr("href","#");loginIframe($(this).text());});}function colorDelta(){$(".colorDelta").each(function(){var num=parseFloat($.trim($(this).text()));
if(num>0){$(this).html("+"+$(this).text()).css("color","#427730");}else{if(num<0){$(this).css("color","#f80707");}else{$(this).css("color","#292929");}}$(this).removeClass("colorDelta");$(this).addClass("dataValue");});}function getSiteNameFromPortalURI(){var splitPortalURI=portalURI.split("/");splitPortalURI.pop();
var siteDNSName=splitPortalURI.pop();return siteDNSName;}function flashProductLineup(){var siteDNSName=getSiteNameFromPortalURI();var params={quality:"high",scale:"noscale",wmode:"transparent",allowscriptaccess:"always",bgcolor:"#FFFFFF"};var attributes={id:"lineup",name:"lineup"};var flashvars={datasource:"/staticweb/flash/products_"+siteDNSName+".json",searchUrl:portalURI+"products/catalog/",basePath:"/staticweb/"};
swfobject.embedSWF("/staticweb/flash/ProductLineup10-11-15.swf","marquee-flash","950","277","10.0.0",null,flashvars,params,attributes);$("#heroContainer-ext").height(310);$("#marquee .carousel").css("position","absolute");$("#marquee .carousel").css("top","20px").css("left","0");$("#marquee .carousel img").attr("usemap","#prodImgMap");
}function shareBarFix(){$("#printMailShareToolsContainer-right").next("br").remove();}var flashTipsCategory="AGRONOMY_INFO";function flashTimelyTips(){var siteDNSName=getSiteNameFromPortalURI();var params={quality:"high",scale:"noscale",wmode:"transparent",bgcolor:"#FFFFFF"};var attributes={id:"timelytips",name:"timelytips"};
var flashvars={datasource:"/messageService/message/json/topTips/custom/flash?category="+flashTipsCategory+"%26site="+siteDNSName,allTips:portalURI+"agronomy/seasonal-insights/timely-tips",basePath:"./"};swfobject.embedSWF("/staticweb/flash/TimelyTips.swf","marquee-flash","290","192","10.0.0",null,flashvars,params,attributes);
}function flashProductCarousel(){var siteDNSName=getSiteNameFromPortalURI();var params={quality:"high",scale:"noscale",wmode:"transparent",allowscriptaccess:"always",bgcolor:"#FFFFFF"};var attributes={id:"pcarousel",name:"pcarousel"};var flashvars={datasource:"/staticweb/flash/productsHome_"+siteDNSName+".json",contactServiceUrl:"/salesContactService/salescontactsingle",contactUrl:portalURI+"contact-directory",basePath:"/staticweb/"};
swfobject.embedSWF("/staticweb/flash/ProductCarousel10-11-08.swf","marquee-flash","287","267","10.0.0",null,flashvars,params,attributes);}function splitIntoColumns(){var linknum=0;var numleft=0;var nummiddle=0;$("div.loltabs").each(function(t){$("#loltabs-"+(t+1)+" li").each(function(i){linknum++;var linktext=($(this).text());
});numleft=Math.ceil(linknum/3);nummiddle=numleft+numleft;$("#loltabs-"+(t+1)+" .lol-navcolumns li").unwrap();$("#loltabs-"+(t+1)+" li").slice(0,numleft).wrapAll('<ul class="lol-left" />');$("#loltabs-"+(t+1)+" li").slice(numleft,nummiddle).wrapAll('<ul class="lol-middle" />');$("#loltabs-"+(t+1)+" li").slice(nummiddle,linknum).wrapAll('</ul><ul class="lol-right" />');
linknum=0;numleft=0;nummiddle=0;});}function tableCompare(){var numberChecked=$(".tablesorter input:checked").length;if(numberChecked>=1){$(".tablesorter input:checkbox").not(":checked").parent("td").parent("tr").hide();$(".spinner").fadeOut("slow");$(".viewSelected").hide();$(".resetSelected").show();
$(".tablesorter").trigger("applyWidgets");}}function tableReset(){$(".tablesorter tr").each(function(){$(this).show();});$(".viewSelected").show();$(".resetSelected").hide();$(".tablesorter").trigger("applyWidgets");ProductSearch.toggleTopProductSpinners();ProductSearch.toggleAllProductSpinners();var activeTab=$("#controls p a[class='on']").html();
if(activeTab=="New"){ProductSearch.toggleResults("New");}}var winWidth=$(window).width();$(window).resize(function(){winWidth=$(window).width();});function megaMenu(){var navLIBG="#FFFFFF";var navimgSet="over.png";if(typeof(pageType)=="undefined"){navLIBG="#F5F2E7";}$(".mainNav-li.active a.mainNav").addClass("hover").css({"background-color":navLIBG});
$(".mainNav-li > .dropdown").parent(".mainNav-li").hoverIntent({sensitivity:1,interval:20,over:function(){if($(this).children(".dropdown").length>0){$(this).children(".dropdown").css({"background-color":navLIBG,"z-index":"8999"}).slideDown("fast");$(this).find(".dropdown").css({"z-index":"9002"});$(this).parent().parent().parent().parent().css("z-index","9999");
$(this).find("a.mainNav").css({"background-color":navLIBG}).addClass("hover");if($(this).prev("li.mainNav-sep").children().length==0){$(this).prev(".mainNav-sep").css({"background":"#6d4d24"});}if($(this).next("li.mainNav-sep").children().length==0){$(this).next(".mainNav-sep").css({"background":"#6d4d24"});
}}},timeout:50,out:function(){$(this).children(".dropdown").slideUp("fast");$(this).find(".dropdown").css({"z-index":"9000"});$(this).find("a.mainNav").removeClass("hover").css({"background-color":"transparent"});$(".mainNav-li.active a.mainNav").addClass("hover").css({"background-color":navLIBG});if($(this).prev("li.mainNav-sep").children().length==0){$(this).prev(".mainNav-sep").css({"background":"#628d51"});
}if($(this).next(".mainNav-sep").children().length==0){$(this).next(".mainNav-sep").css({"background":"#628d51"});}}});$(".mainNav-li").each(function(){if(!$(this).is(":visible")||$(this).find(".dropdown").length==0){if($(this).next().hasClass("mainNav-sep")){$(this).next().css("display","none");}}});
$(".mainNav-sep:visible:last").remove();}function hdrLocationDropdown(){$("#hdr_content > a:eq(0)").click(function(){$("#hdrUpdateResults").hide();$("#hdrLocationDropdown").css({"height":"73px"}).slideDown("fast");$("#hdr_content").css({"background":"#6e4c26","color":"#FFF"}).find("#hdr_close").css("display","inline").before('<div class="hiddenSpacerDIV"><img src="'+theSite+'/staticweb/images/spacer.gif" alt="" /></div>');
$(this).css("display","none");$(this).next("a").css("display","none");});$("#hdr_close").click(function(){headerLocationClose();});var hdrTextFieldVal=$("#hdrLocationDropdown .textfield input").val();var recommendationsHeight=($("#hdrRecommendations > span > a").length*14+13);$("#hdrLocationDropdown .textfield input").focus(function(){if(hdrTextFieldVal==$(this).val()){$(this).val("");
hdrTextFieldVal="";}$("#hdrRecommendations").css("height",recommendationsHeight+"px").stop(true,true).slideDown("fast");$("#hdrUpdateResults").hide();$("#hdrLocationDropdown").css("height",(recommendationsHeight+60)+"px");});$("#hdrLocationDropdown .textfield input").blur(function(){$("#hdrRecommendations").stop(true,true).slideUp("fast",function(){if($("#hdrLocationDropdown").height()==recommendationsHeight+60){$("#hdrLocationDropdown").css("height","50px");
}});});$("#updatebtn").click(function(){$("#hdrlocloadinggif").show();$("#hdrUpdateResults").show();$("#hdrLocTips").hide();$("#hdrUpdateResults > h1 > span").text($("#hdrLocationDropdown .textfield input").val());$("#hdrLocationDropdown").css("height",($("#hdrUpdateResults > h1").height()+205)+"px");
});$("#hdrRecommendations a").mousedown(function(){$("#hdrLocationDropdown .textfield input").val($(this).text());$("#hdrRecommendations").stop(true,true).slideUp("fast",function(){if($("#hdrLocationDropdown").css("height")=="115px"){$("#hdrLocationDropdown").css("height","50px");}});});var $mainNavli=$(".mainNav-li");
var prevFigurePosition=0;var prevcolumnNum=0;$mainNavli.each(function(i){var selUL=$(this).find(".dropdown > .subMenu > ul");selUL.find("li:first").addClass("subnavHead");selUL.each(function(x){var thisUL=selUL.eq(x);var nextUL=selUL.eq(x+1);if(thisUL.find("li:first").hasClass("break")){var newDiv=thisUL.parent(".subMenu").after('<div class="subMenu" />').next();
newDiv.append(thisUL.prev().nextAll());}if(thisUL.attr("class")!=""){if(thisUL.attr("class")==nextUL.attr("class")&&thisUL.attr("class")!="group"){nextUL.addClass("float").find("li:eq(0)").remove();thisUL.addClass("float").before('<div class="subnavHead">'+selUL.eq(x).find("li:eq(0)").html()+"</div>").find("li:eq(0)").remove();
if(thisUL.nextAll("ul").length!=1){nextUL.after('<div class="navgroupUL"></div>');}}}});var columnNum=$(this).find(".dropdown > .subMenu").length;selUL.parent(".subMenu").find("ul:last").css({"border":"none","padding":"0px"});var dropDownMenu=$(this).find("div:eq(0)");var dropDownWidth=dropDownMenu.width();
dropDownMenu.width(dropDownMenu.width()*columnNum);var menuOffset=$(this).offset().left;var figurePosition=menuOffset+dropDownMenu.width()-(20-4);var myAccountOff=winWidth;if($("#myAccount").length>0){myAccountOff=$("#myAccount").offset().left;}var correctOffset=0;if(figurePosition>=myAccountOff&&dropDownMenu.attr("id")!="myAccount"){if(i==0){correctOffset-=1;
}else{correctOffset-=(prevFigurePosition-myAccountOff)+2+$(this).prevAll(".mainNav-li").find("a").width()-((4*dropDownWidth)-(columnNum*dropDownWidth))+((4*dropDownWidth)-(prevcolumnNum*dropDownWidth));}if($("div.mainNavUS-ext").length==0){correctOffset-=4*20;}}dropDownMenu.css("left",correctOffset+"px");
prevFigurePosition=figurePosition;prevcolumnNum=columnNum;});$(".mainNav-li .dropdown li.hide").parent("ul").each(function(){$(this).find("li:gt(0)").hide();});$("#myAccount a").hoverIntent({sensitivity:5,interval:2,over:function(){if(!$(this).find("img").hasClass("on")){$(this).find("img").addClass("over");
}},timeout:50,out:function(){if(!$(this).find("img").hasClass("on")){$(this).find("img").removeClass("over");}}});}function headerLocationClose(){$("#hdrLocationDropdown").slideUp("fast",function(){$("#hdrLocTips").show();$("#hdrUpdateResults").hide();$("#hdr_content > a").css("display","inline");$("#hdr_content").css({"background":"none","color":"#6D4D24"});
$("#hdr_close").css("display","none");$("#hdr_content .hiddenSpacerDIV").remove();});}var dockbgimage;var dockClick=true;var dockOpen="";var dockDiv=$("#dock");function bindDocForIPad(){$(document).bind("touchstart",function(e){dockDiv.hide();});$(document).bind("touchmove",function(e){dockDiv.hide();
setTimeout("manageDockforIPad()",5);});$(document).bind("touchend",function(e){setTimeout("manageDockforIPad()",5);});$(document).bind("touchcancel",function(e){setTimeout("manageDockforIPad()",5);});}function unbindDocForIPad(){$(document).unbind("touchstart");$(document).unbind("touchmove");$(document).unbind("touchend");
$(document).unbind("touchcancel");}function manageDockforIPad(){dockY=parseInt(dockDiv.css("top").substring(0,dockDiv.css("top").indexOf("px")));dockH=dockDiv.height();offset=$(document).scrollTop()+$(window).height()-dockH;if(dockY!=offset){dockDiv.hide();dockDiv.stop();dockDiv.css("top",offset+"px");
dockDiv.fadeIn(125,function(){$(this).css("opacity","1.0");});}else{dockDiv.show();dockDiv.css("opacity","1.0");}}function dockers(){if(navigator.platform=="iPad"||navigator.platform=="iPhone"||navigator.platform=="iPod"){dockDiv.css("position","absolute");bindDocForIPad();setTimeout("manageDockforIPad()",1);
}$(".dockTabTitle").each(function(){if($(this).find("p").length==0){$(this).height(51);}});dockbgimage=new Array();$("#dock .dockbutton-ext").click(function(event,idopen){if(dockClick){dockClick=false;if(dockOpen==$(this).attr("id")){closeOpenDockTabs($(this));dockOpen="";return;}else{if(dockOpen!=""){closeOpenDockTabs($("#"+dockOpen),$(this).attr("id"));
}}dockOpen=$(this).attr("id");$(this).parents(".dockbutton").prev(".dockseparator").css({"background-image":"url("+theSite+"/staticweb/images/dockseparatorclickleft.gif)"});$(this).parents(".dockbutton").next(".dockseparator").css({"background-image":"url("+theSite+"/staticweb/images/dockseparatorclickright.gif)"});
var newDockBG="#eef3ec "+$(this).css("background-image").replace(".jpg","over.jpg").replace(".png",".jpg")+" no-repeat left 3px";$(this).css({"z-index":"2002","background":newDockBG,"color":"#b25c11"});$(this).parents(".dockbutton").prev(".dockseparator").css({"background-image":"url("+theSite+"/staticweb/images/dockseparatorclickleft.gif)"});
$(this).parents(".dockbutton").next(".dockseparator").css({"background-image":"url("+theSite+"/staticweb/images/dockseparatorclickright.gif)"});$("."+$(this).attr("id")).stop(true,true).slideDown("fast",function(){$(this).divshadows();dockClick=true;}).css("z-index","2001");if(dockOpen=="dockweather"){dcsMultiTrack("DCS.dcsuri","/weather","WT.ti","Weather","WT.cg_n","PioneerGlobal","WT.cg_s","Weather");
}else{if(dockOpen=="dockmarkets"){dcsMultiTrack("DCS.dcsuri","/markets","WT.ti","Markets","WT.cg_n","PioneerGlobal","WT.cg_s","Markets");}else{if(dockOpen=="docktools"){dcsMultiTrack("DCS.dcsuri","/tools","WT.ti","Tools","WT.cg_n","PioneerGlobal","WT.cg_s","Tools");}}}}}).css("MozUserSelect","none").bind("selectstart",function(){return false;
}).mousedown(function(){return false;}).hover(function(){if(dockbgimage[$(this).attr("id")]==null){dockbgimage[$(this).attr("id")]=$(this).css("background-image");}if(dockbgimage[$(this).attr("id")]==$(this).css("background-image")){var newDockBG=$(this).css("background-image").replace(".jpg","over.png")+" no-repeat left 3px";
$(this).css({"background":newDockBG,"color":"#b25c11"});}},function(){if(dockbgimage[$(this).attr("id")].replace(".jpg","over.png")==$(this).css("background-image")){var oldDockBG="transparent "+dockbgimage[$(this).attr("id")]+" no-repeat left 3px";$(this).css({"background":oldDockBG,"color":"#497B37"});
}});$(".dockTabTitle img").click(function(){closeOpenDockTabs($(this).parents(".dockslideup").prev(".dockbutton-ext"));dockOpen="";});}function closeOpenDockTabs(dockSel,idopen){dockClick=false;var thisid=dockSel.attr("id");var oldDockBG="transparent "+dockbgimage[thisid]+" no-repeat left 3px";$("."+thisid).stop(true,true).slideUp("fast",function(){$("#"+thisid).css({"z-index":"2000","background":oldDockBG,"color":"#497B37"});
dockSel.parents(".dockbutton").prev(".dockseparator").css({"background-image":"url("+theSite+"/staticweb/images/dockseparator.gif)"});dockSel.parents(".dockbutton").next(".dockseparator").css({"background-image":"url("+theSite+"/staticweb/images/dockseparator.gif)"});if(idopen!=null){$("."+idopen).parents(".dockbutton").prev(".dockseparator").css({"background-image":"url("+theSite+"/staticweb/images/dockseparatorclickleft.gif)"});
$("."+idopen).parents(".dockbutton").next(".dockseparator").css({"background-image":"url("+theSite+"/staticweb/images/dockseparatorclickright.gif)"});}dockClick=true;}).css("z-index","1999");}function printMailShare(){var mailtoLink="mailto:?subject=Pioneer Seeds: "+$("title").html()+"&body=I wanted to share this link with you: "+encodeURIComponent(window.location.href);
if($("meta[name=description]").attr("content")!=null){mailtoLink+="%0D%0A%0D%0A"+$("meta[name=description]").attr("content");}$("#mailTool").attr("href",mailtoLink);$(function(){var delay=400;function hideMenu(){if(!$(".custom_button").data("in")&&!$(".hover_menu").data("in")&&!$(".hover_menu").data("hidden")){$(".hover_menu").fadeOut("fast");
$(".custom_button").removeClass("active");$(".hover_menu").data("hidden",true);}}$(".custom_button, .hover_menu").mouseenter(function(){$(".hover_menu").fadeIn("fast");$(".custom_button").addClass("active");$(this).data("in",true);$(".hover_menu").data("hidden",false);}).mouseleave(function(){$(this).data("in",false);
setTimeout(hideMenu,delay);});});}function marketPointMarquee(){$("#mpmarquee > div").click(function(){$("#mpmarquee > div").removeClass("selected");$(this).addClass("selected");if($(this).hasClass("top")){$("#mpmarquee").css("background","url("+theSite+"/staticweb/images/mpmarquee-bg.jpg) no-repeat 0 0").children("p").css("top","110px").html($("#mpmarquee-p1").html());
}else{if($(this).hasClass("middle")){$("#mpmarquee").css("background","url("+theSite+"/staticweb/images/mpmarquee-bg.jpg) no-repeat 0 -294px").children("p").css("top","68px").html($("#mpmarquee-p2").html());}else{$("#mpmarquee").css("background","url("+theSite+"/staticweb/images/mpmarquee-bg.jpg) no-repeat 0 -588px").children("p").css("top","68px").html($("#mpmarquee-p3").html());
}}});if($("#mpmarquee").length>0){$("#mpbuttons :button, #mpmarquee :button").removeAttr("disabled").removeAttr("readonly").removeAttr("checked");}}var $farmaccountsTD;function myFarmsAccounts(){if($("#farmaccMarquee").length>0){$farmaccountsTD=$("#farmaccounts td");$farmaccountsTD.click(function(){$farmaccountsTD.removeClass("active");
var tdclass=$(this).attr("class");$(this).addClass("active");$("#farmaccMarquee").css("background","url("+theSite+"/staticweb/images/myFields-marquee"+($farmaccountsTD.index(this)+1)+".jpg) no-repeat");$("#farmaccounts #farmaccMarquee h1").html($("#"+tdclass+"-h1").html());$("#farmaccounts #farmaccMarquee p").html($("#"+tdclass+"-p").html());
});var hashstr=self.document.location.hash;var numclick=0;switch(hashstr){case"#online":numclick=1;break;case"#save":numclick=2;break;case"#improve":numclick=3;break;case"#local":numclick=4;break;case"#customize":numclick=5;break;default:numclick=0;break;}$farmaccountsTD.filter(":eq("+numclick+")").trigger("click");
}}function processWAPxml(path){var dataTemp;$.ajax({type:"GET",dataType:"text",async:false,url:path,success:function(data){dataTemp=data.split("<sectionBody>");dataTemp=dataTemp[1].split("</sectionBody>");}});return dataTemp[0];}function wapmarquee(){if($("#wapmarquee").length>0){var current_hash=window.location.hash;
current_hash=current_hash.substring(1,current_hash.length);if(current_hash!=-1){$("#marquee-p1, #marquee-p2, #marquee-p3, #marquee-p4, #marquee-p5").removeClass("selected");switch(current_hash){case"benefits":$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 0");
$("#marquee-p1").addClass("selected");break;case"work":$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 -291px");$("#marquee-p2").addClass("selected");break;case"culture":$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 -582px");
$("#marquee-p3").addClass("selected");break;case"diversity":$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 -873px");$("#marquee-p4").addClass("selected");break;case"career":$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 -1164px");
$("#marquee-p5").addClass("selected");break;}}$("#wapDisplayTxt").html(processWAPxml("/cmroot/pioneer/About_Global/careers/working_at_pioneer/Benefits.xml"));$("#wapmarquee-p1").html($("#wapDisplayTxt").html());$("#wapmarquee-p2").html(processWAPxml("/cmroot/pioneer/About_Global/careers/working_at_pioneer/WorkFamily.xml"));
$("#wapmarquee-p3").html(processWAPxml("/cmroot/pioneer/About_Global/careers/working_at_pioneer/Culture.xml"));$("#wapmarquee-p4").html(processWAPxml("/cmroot/pioneer/About_Global/careers/working_at_pioneer/Diversity.xml"));$("#wapmarquee-p5").html(processWAPxml("/cmroot/pioneer/About_Global/careers/working_at_pioneer/CareerGrowth.xml"));
$("#wapmarquee div").click(function(){$("#wapmarquee div").removeClass("selected");$(this).addClass("selected");if($(this).attr("id")=="marquee-p1"){window.location.hash="benefits";$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 0");$("#wapDisplayTxt").html($("#wapmarquee-p1").html());
}else{if($(this).attr("id")=="marquee-p2"){window.location.hash="work";$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 -291px");$("#wapDisplayTxt").html($("#wapmarquee-p2").html());}else{if($(this).attr("id")=="marquee-p3"){window.location.hash="culture";
$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 -582px");$("#wapDisplayTxt").html($("#wapmarquee-p3").html());}else{if($(this).attr("id")=="marquee-p4"){window.location.hash="diversity";$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 -873px");
$("#wapDisplayTxt").html($("#wapmarquee-p4").html());}else{if($(this).attr("id")=="marquee-p5"){window.location.hash="career";$("#wapmarquee").css("background","url("+theSite+"/staticweb/images/wapmarquee-bg.jpg) no-repeat 0 -1164px");$("#wapDisplayTxt").html($("#wapmarquee-p5").html());}}}}}});}}function countryStore(){var hoverMouseCS=true;
if($("#countryStoreMarqueeBox").length>0){var $countryStoreProducts=$("#countryStoreMarqueeBox > li > span");$countryStoreProducts.hoverIntent({sensitivity:5,interval:1,over:function(){var getPPos=$(this).parent().offset().left;$("#showTip").html($(this).parent().find("p").html()).css("left",getPPos-parPPos-53+"px").stop(true,true).fadeIn("med");
$("#showTip").mouseenter(function(){hoverMouseCS=false;});$("#showTip").mouseleave(function(){hoverMouseCS=true;$("#showTip").html("").stop(true,true).fadeOut("med");});},timeout:10,out:function(){if(hoverMouseCS){$("#showTip").html("").stop(true,true).fadeOut("med");}}});$("#countryStoreMarqueeBox").jcarousel();
var parPPos=$("#countryStoreMarqueeBox").offset().left;var $countryStoreParent=$(".jcarousel-skin-countrystore > .jcarousel-container");$countryStoreParent.prepend('<p id="showTip"></p>');}}function productsPerformance(){if($("#marketsLocalYieldRequest").length>0&&$("#marketsWeighRequest").length>0){$("#tabs > ul > li > a").click(function(){$("#tabs form select:visible").width($("#tabs form select:visible").width());
});}}function LineNumberTracker(){$removeBtns=$("#seedInformationRequest input[name=removeBtn]");var maxlineindex=$removeBtns.length-1;$removeBtns.each(function(b){$("#seedInformationRequest input[name=removeBtn]").filter(":eq("+b+")").parents("#seedInformationRequest tr").find(":input:not(:button)").each(function(){if($(this).parent("span.select").length==1){$(this).parent("span.select").attr("id",$(this).parent("span.select").attr("id").replace(/\d+$/,b));
}$(this).attr("name",$(this).attr("name").replace(/\d+$/,b));});$("#seedInformationRequest input[name=removeBtn]").filter(":eq("+b+")").parents("#seedInformationRequest tr").next().find(":input").each(function(){$(this).attr("name",$(this).attr("name").replace(/\d+$/,b));});});$("#seedInformationRequestForm input[name=hdnLineNumber]").val(maxlineindex);
}function DeleteLine(line){if($("#seedInformationRequest input[name=removeBtn]").length>1){line.parents("#seedInformationRequestForm tr").next().remove();line.parents("#seedInformationRequestForm tr").remove();LineNumberTracker();}}function AddLine(){if($("#seedInformationRequest input[name=removeBtn]").length<9){var $lasttr=$("#seedInformationRequest tr:last");
var lastind=$lasttr.index();$("#seedInformationRequest tr:gt("+(lastind-3)+"):not(:last)").clone(true).insertBefore($lasttr);LineNumberTracker();var tempnum=$("#seedInformationRequestForm input[name=hdnLineNumber]").val();$("#seedInformationRequestForm select[name=cboProdLine"+tempnum+"]").val("-1").change();
$("#seedInformationRequestForm select[name=cboProduct"+tempnum+"]").val("-1").change();$("#seedInformationRequestForm select[name=cboSoilType"+tempnum+"]").val("Clay").change();$("#seedInformationRequestForm select[name=cboDrainage"+tempnum+"]").val("Very Poorly").change();$("#seedInformationRequestForm input[name=txtNotes"+tempnum+"]").val("");
$("#seedInformationRequestForm input[name=txtUnits"+tempnum+"]").val("0");$("#seedInformationRequestForm input[name$="+tempnum+"]").customformelements();$("#seedInformationRequestForm select[name$="+tempnum+"]").customformelements();}}function locationAutocomplete(sel){function getLocationHistory(locationType){var history=[];
if($.cookie("LOCATION_HISTORY")){var json=$.cookie("LOCATION_HISTORY");json=$.parseJSON(json);history=json[locationType+"History"];var i=0;if(history){for(i=0;i<history.length;i++){history[i]=history[i].replace(/\+/g," ");}}}return history;}var $autoComplete=$("input.autoComplete");if(typeof sel!="undefined"){$autoComplete=$(sel);
}$autoComplete.each(function(){var locationType=$(this).attr("name");var history;history=getLocationHistory(locationType);$(this).bind({click:function(){$(this).autocomplete({minLength:0,source:history});$(this).autocomplete("search"," ");},keydown:function(event){$(this).autocomplete({minLength:3,source:function(request,response){$.ajax({type:"GET",url:"/locationDisplayService/location/"+locationType+"/"+request.term,dataType:"json",success:function(msg){if(msg!=null&&msg.length){response(msg);
}}});}});}});});}function locationUpdate(){$("input.updateLocation").click(function(){var locationType=$(this).attr("name");var locationText=$(this).closest("form").find("input:text").val();if(locationText==null||locationText==""){$("#hdrUpdateResults").fadeIn();$("#hdrUpdateResults > h1 > span").text($("#hdrLocationDropdown .textfield input").val());
$("#hdrLocationDropdown").css("height",($("#hdrUpdateResults > h1").height()+195)+"px");$("#hdrlocloadinggif").hide();return;}$("#hdrlocloadinggif").show();var reloadUpdateLoc=true;if($(this).hasClass("noreload")){reloadUpdateLoc=false;}$.ajax({type:"GET",url:"/locationDisplayService/location/update/"+locationType+"/"+locationText,dataType:"json",success:function(data){if(data==true){if(reloadUpdateLoc){window.location.reload();
}}else{if(locationType=="market"){$("#localCashMarketsLocationError").fadeIn();$("#localCashMarketsLocationError > h1 > span").text(locationText);}else{$("#hdrUpdateResults").fadeIn();$("#hdrUpdateResults > h1 > span").text($("#hdrLocationDropdown .textfield input").val());$("#hdrLocationDropdown").css("height",($("#hdrUpdateResults > h1").height()+195)+"px");
$("#hdrlocloadinggif").hide();}}},error:function(XMLHttpRequest,textStatus,errorThrown){if(locationType==="markets"){$("#localCashMarketsLocationError").show();$("#localCashMarketsLocationError > h1 > span").text(locationText);}else{$("#hdrUpdateResults").show();$("#hdrUpdateResults > h1 > span").text($("#hdrLocationDropdown .textfield input").val());
$("#hdrLocationDropdown").css("height",($("#hdrUpdateResults > h1").height()+195)+"px");$("#hdrlocloadinggif").hide();}}});});}function goToFailWhale(){window.location.assign(getFailWhaleURL());}function getFailWhaleURL(){var failWhaleURL=getServerRoot();failWhaleURL+="/errors/error.html";return failWhaleURL;
}var minute=60000;var servert=setTimeout("serverTimeoutWarn()",(15*minute));var serverWarnI=0;function serverTimeoutSave(){serverWarnI=0;clearTimeout(servert);shadowboxClosePopup();servert=setTimeout("serverTimeoutWarn()",(15*minute));}function serverTimeoutWarn(){if(!loggedin){return;}if(serverWarnI>=5){signedTimeOut(true);
return;}var cDate=new Date();cDate.setTime(cDate.getTime()+((5-serverWarnI)*minute));var cH=cDate.getHours();var cM=cDate.getMinutes();if(cM<10){cM="0"+cM;}var cA;if(cH>11){cA="PM";cH=cH-12;}else{cA="AM";}if(cH==0){cH=12;}var cDis="Your current session will expire in less than "+(5-serverWarnI)+" minutes, at "+cH+":"+cM+" "+cA;
$("#inactivityPopup .ts").html(cDis);shadowboxClosePopup();setTimeout('shadowboxPopup($("#inactivityPopup"))',1000);serverWarnI++;servert=setTimeout("serverTimeoutWarn()",(minute));}function shadowboxClosePopup(){$.colorbox.close();}function shadowboxClearStyledInput(sel,clr){}function adjustPopupSize(msg){var somethingtemp=1;
}function shadowboxPopup(msg,callback){if(navigator.appName.indexOf("Microsoft Internet Explorer")!=-1){heightAdd=22;}else{heightAdd=10;}$.colorbox({html:msg.html(),close:"Close",innerWidth:msg.outerWidth()+"px",innerHeight:msg.outerHeight()+heightAdd+"px",scrolling:false,onComplete:function(){if(callback!=null){eval(callback);
}},onOpen:function(){$("#cboxTopCenter").html('<div id="top_hdr"><h1>'+msg.attr("title")+'</h1></div><div id="top_close" title="close">Close</div>');}});}function footnoteHide(){var prodFootnoteID=$(this).attr("id");var prodFootnoteTableID=("#prodFootnote_"+prodFootnoteID);$("#prodFootnote_links p a").each(function(){var currF=$(this);
if(currF.hasClass("on")){currF.removeClass("on");}});$(this).addClass("on");$(".prodFootnoteTable").each(function(){var currG=$(this);if(!currG.hasClass("hidden")){currG.addClass("hidden");}});$(prodFootnoteTableID).removeClass("hidden");return false;}$("#prodFootnote_links p a").click(footnoteHide);
function carousel(){$("div.carousel").show();$(".carousel").each(function(index){if($(this).parent().attr("class")=="bannerBox"){$(this).cycle({fx:"fade",speed:"fast",timeout:5000,pause:true,pauseOnPagerHover:true,pager:$(this).next(".bannerboxbottom").children(".featurepod_controls")});}else{$(this).cycle({fx:"fade",speed:"fast",timeout:5000,pause:true,pauseOnPagerHover:true,before:function(){$(this).addClass("activeIMG");
$(this).siblings().removeClass("activeIMG");},pager:$(this).next(".featurepod_controls")});}});}function addLivestockMarqueeMap(){$("#marquee .carousel img").one("load",function(){$(this).attr({name:"livestocklanding",usemap:"#m_livestocklanding",id:"livestocklanding"});var $areamap="<map name='m_livestocklanding' id='m_livestocklanding'>"+"<area shape='rect' coords='35,156,146,175' href='#' alt='' />"+"<area shape='rect' coords='860,89,886,158' href='"+portalURI+"products/inoculants' alt='' />"+"<area shape='rect' coords='782,55,834,158' href='"+portalURI+"products/alfalfa' alt='' />"+"<area shape='rect' coords='711,55,761,158' href='"+portalURI+"products/corn-silage' alt='' />"+"</map>";
$(this).append($areamap);}).each(function(){if($(this).complete){$(this).trigger("load");}});}function searchInit(){$(document).ready(function(){var options={path:"/",expires:0,secure:true};$.cookie("searchMastCookie",null,options);});var d=new Date();var thisYear=d.getFullYear();var thisMonth=(d.getMonth()+1).toString();
if(thisMonth.length==1){thisMonth="0"+thisMonth;}var thisDay=d.getDate().toString();if(thisDay.length==1){thisDay="0"+thisDay;}function fillYearFields(startYear){var optionString="";for(var di=startYear;di<=thisYear;di++){optionString+='<option value="'+di+'">'+di+"</option>";}return optionString;}function isLeapYear(checkYear){return checkYear%400==0||(checkYear%100!=0&&checkYear%4==0);
}function checkDays(checkMonth,checkYear){var optionString;if(checkMonth=="09"||checkMonth=="04"||checkMonth=="06"||checkMonth=="11"){optionString="<option value='01'>01</option><option value='02'>02</option><option value='03'>03</option><option value='04'>04</option><option value='05'>05</option><option value='06'>06</option><option value='07'>07</option><option value='08'>08</option><option value='09'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option><option value='24'>24</option><option value='25'>25</option><option value='26'>26</option><option value='27'>27</option><option value='28'>28</option><option value='29'>29</option><option value='30'>30</option>";
}else{if(checkMonth=="02"){optionString="<option value='01'>01</option><option value='02'>02</option><option value='03'>03</option><option value='04'>04</option><option value='05'>05</option><option value='06'>06</option><option value='07'>07</option><option value='08'>08</option><option value='09'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option><option value='24'>24</option><option value='25'>25</option><option value='26'>26</option><option value='27'>27</option><option value='28'>28</option>";
if(isLeapYear(checkYear)){optionString+="<option value='29'>29</option>";}}else{optionString="<option value='01'>01</option><option value='02'>02</option><option value='03'>03</option><option value='04'>04</option><option value='05'>05</option><option value='06'>06</option><option value='07'>07</option><option value='08'>08</option><option value='09'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option><option value='24'>24</option><option value='25'>25</option><option value='26'>26</option><option value='27'>27</option><option value='28'>28</option><option value='29'>29</option><option value='30'>30</option><option value='31'>31</option>";
}}return optionString;}$(document).ready(function(){$("#startYear,#endYear").append(fillYearFields($("#siteSearchStartYear").val()));$("#startMonth,#startYear").change(function(){$("#startDay").empty().append(checkDays($("#startMonth").find("option:selected").val(),$("#startYear option:selected").val())).trigger("change");
});$("#endMonth,#endYear").change(function(){$("#endDay").empty().append(checkDays($("#endMonth").find("option:selected").val(),$("#endYear option:selected").val())).trigger("change");});$("#searchMediaField #startYear").append(fillYearFields(thisYear-3));var prevSelStartYear=$("#siteSearchSelectedStartYear").val();
if(prevSelStartYear!=""){$("#startYear").find("option[value='"+prevSelStartYear+"']").attr("selected","selected");$("#startYear").parent("span").find("span").html(prevSelStartYear);}var prevSelEndYear=$("#siteSearchSelectedEndYear").val();if(prevSelEndYear==""){$("#endYear").find("option[value='"+thisYear+"']").attr("selected","selected");
$("#endMonth").find("option[value='"+thisMonth+"']").attr("selected","selected");$("#endDay").find("option[value='"+thisDay+"']").attr("selected","selected");}else{$("#endYear").find("option[value='"+prevSelEndYear+"']").attr("selected","selected");}});var searchToggleDown=true;$(document).ready(function(){$("#searchSep > #returnSearch").click(function(){if($("#searchType").val()=="sim"){$("#searchType").val("adv");
}else{$("#searchType").val("sim");$("#advancedSearchDiv input").val("");$("#startYear").find("option:eq(0)").attr("selected","selected").trigger("change");$("#startMonth").find("option:eq(0)").attr("selected","selected").trigger("change");$("#startDay").find("option:eq(0)").attr("selected","selected").trigger("change");
$("#endYear").find("option[value='"+thisYear+"']").attr("selected","selected").trigger("change");$("#endMonth").find("option[value='"+thisMonth+"']").attr("selected","selected").trigger("change");$("#endDay").find("option[value='"+thisDay+"']").attr("selected","selected").trigger("change");}if(searchToggleDown){var margintop="13px";
var atext='Advanced Search<img src="'+theSite+'/staticweb/images/spacer.gif" width="7" height="4" style="background:url('+theSite+'/staticweb/images/search-arrow.gif) 0 -4px no-repeat;" />';searchToggleDown=false;}else{var margintop="0";var atext='Return to Simple Search<img src="'+theSite+'/staticweb/images/spacer.gif" width="7" height="4" style="background:url('+theSite+'/staticweb/images/search-arrow.gif) 0 0 no-repeat;" />';
searchToggleDown=true;}$("#bigSearchDiv.noresults").stop(true,true).slideToggle(50);$("#advancedSearchDiv").stop(true,true).slideToggle(50,function(){$("#searchSep").css("margin-top",margintop).find("#returnSearch > a").html(atext);});$("#noresults,.returnSearch,.helpSearch").show();});if($("#searchType").val()=="sim"){$("#searchType").val("adv");
$("#searchSep > #returnSearch").trigger("click");}});}function pageload(){var page=($.cookie("pageload"));if(page=="signout"){var shadowt=setTimeout("shadowboxPopup($('#popupSignout'))",500);}else{if(page=="signTimeOut"){var shadowt=setTimeout("shadowboxPopup($('#popupSignTimeout'))",500);}}$.cookie("pageload",null,{path:"/",secure:true});
}function emailActivationCheck(){if(location.search.substr(0,5)=="?tkn="){var activationString=getServerRoot("https:");getActivationPage(location.search);}}function signedout(){$.cookie("pageload","signout",{path:"/"});$.cookie("USER_COOKIE",null,{path:"/"});$.cookie("GPJSESSIONID",null,{path:"/"});$.cookie("PCOMSESSIONID",null,{path:"/"});
window.location.assign(portalURI);}function signedTimeOut(){$.cookie("pageload","signTimeOut",{path:"/"});$.cookie("USER_COOKIE",null,{path:"/"});$.cookie("GPJSESSIONID",null,{path:"/"});$.cookie("PCOMSESSIONID",null,{path:"/"});window.location.assign(portalURI);}function smallScreenHeight(){return($(window).height()<565);
}function loginIframe(linkDescrip){if(smallScreenHeight()){$(".loginiframe").attr("height",300);}if(linkDescrip!=null&&linkDescrip!=""&&linkDescrip.toLowerCase()=="register"){dcsMultiTrack("DCS.dcsuri","/updatelocation/register","WT.ti","Register | Form  ","WT.cg_n","","WT.cg_s","","WT.si_n","","WT.si_x","");
}else{dcsMultiTrack("DCS.dcsuri","/home/site/us/signinform","WT.ti","Sign In | Form","WT.cg_n","","WT.cg_s","","WT.si_n","SignIn","WT.si_x","1");}getLoginPage();}function getLoginPage(){var COOKIE_NAME="PCOMSESSIONID";var loginUrl=theSite+"/loginservice/login?_userkey="+($.cookie(COOKIE_NAME));$.ajax({cache:false,type:"GET",dataType:"html",contentType:"text/html",url:loginUrl,success:function(data){showLoginSuccessCallback(data);
},error:function(request,textStatus,errorThrown){showModalErrorCallback(textStatus);}});}function showLoginSuccessCallback(data){var body=getBodyContent(data);$("#loginForms").html(body);shadowboxPopup($("#popupIframe"),'emptySeedDivs("#popupIframe .loginiframe")');$("#cboxTopCenter #top_hdr h1").html("Sign In or Register");
makeLoginFormsAjax();}function emptySeedDivs(el){$(el).html("");}function showModalErrorCallback(textStatus){$("#loginForms").html(textStatus);shadowboxPopup($("#popupIframe"));}function showActivationSuccessCallback(data){var body=getBodyContent(data);$("#emailiframe").html(body);shadowboxPopup($("#popupEmailIframe"),'emptySeedDivs("#popupEmailIframe .emailiframe")');
$("#cboxTopCenter #top_hdr h1").html("Sign In or Register");makeLoginFormsAjax();}function getActivationPage(tkn){var activationUrl=theSite+"/loginservice/activate"+tkn;$.ajax({cache:false,type:"GET",dataType:"html",contentType:"text/html",url:activationUrl,success:function(data){showActivationSuccessCallback(data);
},error:function(request,textStatus,errorThrown){showModalErrorCallback(textStatus);}});}var loggedin=false;var globalUser;function customizeMasthead(){var mastDate=new Date();$.ajax({url:"/userService/getMastheadInfo?_="+mastDate.getTime(),dataType:"json",contentType:"application/json",success:function(json){var displayName="default";
var displayLocation="";if(json.mastheadInfo){displayName=json.mastheadInfo.displayName;}if(json.userInfo){displayLocation=json.userInfo.siteLocation;var cookieExpiration=14;var cookieOptions={path:"/",expires:cookieExpiration,secure:true};var cookieVal="CC="+json.userInfo.countryCode+"|LC="+json.userInfo.languageCode+"|ST="+json.userInfo.salesTeamLocation+"|P="+json.userInfo.productLocation+"|W="+json.userInfo.weatherLocation+"|M="+json.userInfo.marketLocation+"|S="+json.userInfo.siteLocation;
$.cookie("USER_COOKIE",cookieVal,cookieOptions);$("#marketLocationText").val(json.userInfo.marketLocation);}$("#show_location_site").html(displayLocation);if(isSignedInUser(displayName)){$("#show_name").html(displayName+" <a id='signout'>Sign Out</a> | <a href='"+portalURI+"my-farm-accounts/preferences'>My Preferences</a>");
$("#signout").click(function(){signedout();});loggedin=true;if($(".mainNavUS-ext").length==0&&$(".mainNav-ext").length>0){loggedin=false;}}else{$("#show_name").html("<a class='signin-mast' href='#'>Sign In</a> or <a class='signin-mast' href='#'>Register</a>");$("a.signin-mast").click(function(){loginIframe($(this).text());
});updateCustomizeLinks();}}});}function isSignedInUser(username){return(username!="guest")&&(username!="nouser")&&(username!="default")&&(username!="undefined");}function contains(string,match){if(!string){return false;}return string.indexOf(match)!==-1;}$(document).ready(function(){emailActivationCheck();
$("a").each(function(){var link=$(this).attr("href");if(contains(link,"/home/site/about/")&&!contains(link,"http://www.pioneer.com/home/site/about/")){link="http://www.pioneer.com"+link;$(this).attr("href",link);}});$("#hdr_content a").next("a").mouseover(function(){$(this).append('<div id="location_tool_tip"><p>Make your content relevant for where you live.</p></div>');
});$("#hdr_content a").next("a").mouseout(function(){$("#location_tool_tip").remove();});$("#sectionNav ul li a").click(function(){$(this).next("ul").slideToggle("normal");$(this).toggleClass("on");});$("a.contact-us").click(function(){window.location.assign(portalURI+"contact-us");});$("#newsletterSignupSetGoback").click(function(){var urlpath=window.location.href;
$.cookie("goback",urlpath,{path:"/",secure:true});window.location.assign("./ewyf_signup");});$("#newsletterUpdateSetGoback").click(function(){var urlpath=window.location.href;$.cookie("goback",urlpath,{path:"/",secure:true});window.location.assign("./ewyf_update");});megaMenu();$(".tablesorter2 input:checkbox:checked").attr("checked","");
$(".tablesorter2").tablesorter({sortList:[[1,1]],widgets:["zebra"]}).tablesorterPager({container:$("#pager")});$("#tableCompare").click(tableCompare);hdrLocationDropdown();dockers();printMailShare();locationAutocomplete();locationUpdate();carousel();$("#btn_hdrSrchSubmit").click(function(){$("#searchMastForm").submit();
});$("#searchMastForm").submit(function(){doMastheadSearch();return false;});var related="";$("div.right-rail").each(function(){related+=$(this).html();});$("#right-rail").append(related);$("div.right-rail").empty();if(document.getElementById("tabs")){$("#tabs").tabs();}if(document.getElementById("loltabs-2")){$("#loltabs").tabs();
}marketPointMarquee();myFarmsAccounts();wapmarquee();countryStore();productsPerformance();$("#seedInformationRequest input[name=removeBtn]").live("click",function(){DeleteLine($(this));});var current_href=$(location).attr("href");if(current_href.indexOf("job-search-and-apply")!=-1){window.scrollTo(0,0);
$(".footerLinksAbout li a").click(function(){if($(this).text()=="Search for a Job"||"Interns &amp; New Graduates"||"Summer Jobs"){setTimeout(function(){window.location.reload();},150);}});}var chart_width=$('[alt="Chart: Corn Trait Technology"]').width();if(chart_width>0){$("body div.body-ext div.body div#right-side table tbody tr td table").css("width",chart_width+5+"px");
}if($("#landingForm").length==0){customizeMasthead();pageload();}$("a.signin").click(function(){$.cookie("https_iframe","signin",{path:"/",secure:true});loginIframe($(this).text());});$("a.signin-adv").click(function(){$.cookie("https_iframe","signin-adv",{path:"/",secure:true});loginIframe($(this).text());
});$(".prependHttpUrl").click(function(){$(this).attr("href",function(){return getServerRoot("https")+portalURI+$(this).attr("name");});});if($("#mailTool").length==0){$("#printMailShareToolsContainer").css("width","auto");}$("#right-rail").nextAll().addClass("no-print");$("embed").closest("table").addClass("no-print");
$("table.zebra tr:even").addClass("even");$("table.zebra td").css("border","none");colorDelta();$(".colorBoxClose").live("click",function(){$.colorbox.close();});$("#printMailShareToolsContainer-right").next("br").remove();$("h2:contains('Connect with us')").parent(".content").addClass("connectWithUsFix");
$(document).ready(function(){$("#registrationView .buttons div.btnGreen input.styled.btnGreen").css("width","208px");});if($(".wrapper .summary_header").length>0){$("#yield_widget").addClass("PPP");$("div#yield_widget.PPP #map_canvas").css("width","530px");$(".footer").first().addClass("PPP");}$("div#yield_widget.PPP").after($(".contentWrapper .performance_summary"));
$(".management-comments .page-corner").attr("src",theSite+"/staticweb/images/profile/pageCorner1_web.gif");if($("div#footerWrapper.wrapper").length>0){$("div#right-side").append($("#footerWrapper"));}if(($("td.maturity2").length<2)&&($("td.maturity2").html()==="")){$("td.bigNumber").css("border","none");
}if(($("td.maturity2").length==0)){$("td.bigNumber").css("border","none");}if($("div#contact_directory_right").length>0){$("#contact_directory_right a").attr("href",portalURI+"contact-directory");}if($("div.performance_summary a#contact_sales_team").length>0){$(".performance_summary #contact_sales_team").attr("href",portalURI+"contact-directory");
}});$(document).ready(function(){if($(".region_web").length>0){$(".locationText").append('<div class="region_web"></div>');$(".locationText .region_web").append($("td.region_web div"));var offsetRegion=12;$(".locationText .region_web a").hover(function(e){var left=mouseX(e)+($(".locationText .region_web img").width()+offsetRegion);
var top=mouseY(e)-($(".locationText .region_web img").height()/2);$(".locationText .region_web img").css("top",top);$(".locationText .region_web img").css("left",left);$(".locationText .region_web img").fadeIn();},function(){$(".locationText .region_web img").fadeOut();});$(".locationText .region_web a").mousemove(function(e){var left=mouseX(e)-($(".locationText .region_web img").width()+offsetRegion);
var top=mouseY(e)-($(".locationText .region_web img").height()/2);$(".locationText .region_web img").css("top",top);$(".locationText .region_web img").css("left",left);});}function mouseX(evt){if(evt.pageX){return evt.pageX;}else{if(evt.clientX){return evt.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);
}else{return null;}}}function mouseY(evt){if(evt.pageY){return evt.pageY;}else{if(evt.clientY){return evt.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);}else{return null;}}}if($("div#yield_widget.PPP").length==0&&$("h2.noPDF").length>0){$("h2.noPDF").hide();
}if($(".locationText .region_web").length>0){$("#printMailShareToolsContainer").parent().addClass("PPP_rightRail");}});if($(".featured_traits tbody").html()==""){$(".featured_traits").remove();}if($(".facts.market_segment").length==0){$(".wrapper .contentWrapper .ScoreHolder .keyHolder").css("margin-top","15px");
}if($(".region_web.noPDF").length>0){$(".region_web div").html($(".region_web div").html().replace("For","for"));$(".region_web div").html($(".region_web div").html().replace(":",""));}(function productsHistoryCookie(){if($("#recently-viewed").length>0){var productsCookie=$.cookie("PROFILE_HISTORY");
productsCookie=$.parseJSON(productsCookie);var recentlyHTML="<ul>";$.each(productsCookie.history,function(i,val){recentlyHTML+="<li><a href='"+productsCookie.history[i].params+"'>"+productsCookie.history[i].productName+"</a></li>";});recentlyHTML+="</ul>";$("#recently-viewed").append(recentlyHTML);}}());
if(String(document.location).indexOf("agronomy")!=-1){$("#marquee .carousel a").click(function(){dcsMultiTrack("DCS.dcsuri","/agronomypagemarquee1/"+$(this).attr("href"),"WT.z_onclick","Agronomy Page Marquee 1 / "+$(this).attr("href"));});}
