window.onload=rolloverInit;function rolloverInit(){var a=getElementsByClassName(document,"img","navlink");if(a!=""){for(var b=0;b<a.length;b++){setupRollover(a[b])}}}function setupRollover(a){a.outImage=new Image();a.outImage.src=a.src;a.onmouseout=rollOut;a.overImage=new Image();a.overImage.src=a.src.substring(0,a.src.length-4)+"_on.gif";a.onmouseover=rollOver}function rollOver(){if(this.src.indexOf("_on")==-1){this.src=this.overImage.src}}function rollOut(){this.src=this.outImage.src}function getElementsByClassName(f,c,a){var b=(c=="*"&&f.all)?f.all:f.getElementsByTagName(c);var e=new Array();a=a.replace(/\-/g,"\\-");var h=new RegExp("(^|\\s)"+a+"(\\s|$)");var d;for(var g=0;g<b.length;g++){d=b[g];if(h.test(d.className)){e.push(d)}}return(e)}function getElementsByClassName(m,e,h){var d=(e=="*"&&m.all)?m.all:m.getElementsByTagName(e);var l=new Array();var n=new Array();if(typeof h=="object"){for(var a=0;a<h.length;a++){n.push(new RegExp("(^|\\s)"+h[a].replace(/\-/g,"\\-")+"(\\s|$)"))}}else{n.push(new RegExp("(^|\\s)"+h.replace(/\-/g,"\\-")+"(\\s|$)"))}var g;var f;for(var b=0;b<d.length;b++){g=d[b];f=true;for(var c=0;c<n.length;c++){if(!n[c].test(g.className)){f=false;break}}if(f){l.push(g)}}return(l)}if(typeof Array.prototype.push!="function"){Array.prototype.push=ArrayPush;function ArrayPush(a){this[this.length]=a}}function HC_Sagentia_MapInitialize(b,c){if(GBrowserIsCompatible()){try{var d=new GMap2(document.getElementById("map_canvas"));d.setCenter(new GLatLng(b,c));d.setZoom(13);d.addControl(new GSmallMapControl());var e=new GLatLng(b,c);d.addOverlay(new GMarker(e))}catch(a){}}}var SearchType={Site:"Site",Resources:"Resources"};function HC_Sagentia_SearchDisplay(n,e,p,l,b,i,a,f){try{var d=document.getElementById(e);var m=document.getElementById(p);var h=document.getElementById(i);var o=document.getElementById(a);var g=document.getElementById(f);var c=document.getElementById(l);var k=document.getElementById(b);switch(n){case SearchType.Site:d.disabled=true;m.disabled=true;h.disabled=true;o.disabled=true;g.disabled=true;c.disabled=true;k.disabled=true;break;case SearchType.Resources:d.disabled=false;m.disabled=false;h.disabled=false;o.disabled=false;g.disabled=false;c.disabled=false;k.disabled=false;break}}catch(j){}}function HC_Sagentia_WriteFlash(e,c,a,b,f){var g=document.getElementById(e);if(g!=null){var d="";d="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+b+"' height='"+f+"' id='"+a+"' align='middle' >";d+="<param name='allowScriptAccess' value='sameDomain' />";d+="<param name='wmode' value='transparent' />";d+="<param name='movie' value='"+c+"' />";d+="<param name='quality' value='high' />";d+="<param name='bgcolor' value='#ffffff' />";d+="<embed wmode='opaque' src='"+c+"' quality='high' bgcolor='#ffffff' width='"+b+"' height='"+f+"' name='"+a+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";d+="</object>";g.innerHTML=d}}function DoSubmitOnEnter(a,d,b){if(d.keyCode==13){var c=document.getElementById(b);if(c!=null){d.cancelBubble=true;d.returnValue=false;if(d.preventDefault){d.preventDefault()}c.click()}}};$(document).ready(function(){$("img").each(function(){if($(this).attr("src")[0]=="~"){$(this).attr("src","/"+$(this).attr("src"))}});$(".header .navigation li.dd").hover(function(){$(this).addClass("active")},function(){$(this).removeClass("active");Cufon.refresh()});$(".splash .image .sections .more").click(function(){$(".splash .image .sections .item").removeClass("item_selected");$(".splash .image .sections .mask").show();$(this).parent().parent().addClass("item_selected");$(".splash .image .sections .item_selected .mask").hide();$(".splash .proposition").hide()});$(".splash .image .popup .close ").click(function(){$(".splash .products").hide();$(".splash .popup").hide();$(".splash .popup .nav li").removeClass("selected");$(".splash .image .sections .mask").hide();$(".splash .image .sections .item").removeClass("item_selected");$(".splash .proposition").show()})});function LoadSectorProducts(a){$(".splash .popup").hide();$(".splash ."+a).show();$(".splash ."+a+" .products").hide();$(".splash ."+a+" .product_1").show();$(".splash ."+a+" .nav li").removeClass("selected");$(".splash ."+a+" .nav li:first").addClass("selected");return false}function SelectSectorProduct(c,b,a){$(".splash ."+b+" .nav li").removeClass("selected");$(".splash ."+b+" .products").hide();$(c).parent().addClass("selected");$(".splash ."+b+" ."+a).show()}var hottopic={baseurl:"/layouts/v2_Sagentia/ajax.asmx/",step1:function(){$("#hot-topic-panel #comments-step2").hide();$("#hot-topic-panel .comment_add").show()},step2:function(){$(".error").hide();if($("#hot-topic-panel .comment-add-name").val()==""){$("#comment-add-name-error").show()}else{if($("#hot-topic-panel .comment-add-comments").val()==""){$("#comment-add-comments-error").show()}else{$.post(this.baseurl+"ValidateNameAndComment",{name:$("#hot-topic-panel .comment-add-name").val(),comments:$("#hot-topic-panel .comment-add-comments").val()},function(a){if(a.success){$("#comment-preview-name").html(a.name+" <strong>"+a.date+"</strong>");$("#comment-preview-comments").html(a.comments);$("#hot-topic-panel .comment_add").hide();$("#hot-topic-panel #comments-step2").show();$(".comment-add-company").focus()}hottopic.parseerror(a.error,a.errormsg)},"json")}}},parseerror:function(b,a){switch(b){case"name-comments":$("#comment-add-name-error").show();$("#comment-add-comments-error").show();hottopic.step1();break;case"email":$("#comment-add-email-error").show();break;case"name":$("#comment-add-name-error").show();hottopic.step1();break;case"comments":$("#comment-add-comments-error").show();hottopic.step1();break}if(a){alert(a)}},postcomment:function(a){$(".error").hide();if($(".comment-add-email").val()==""){$("#comment-add-email-error").show()}else{if(!$(".comment-add-terms").is(":checked")){alert("You cannot post comments unless you agree to our Terms & Conditions.")}else{$.post(this.baseurl+"PostComment",{topicid:a,name:$("#hot-topic-panel .comment-add-name").val(),comments:$("#hot-topic-panel .comment-add-comments").val(),company:$(".comment-add-company").val(),email:$(".comment-add-email").val(),rememberme:$(".comment-add-rem").is(":checked"),receivenotifications:$(".comment-add-notify").is(":checked"),signuptocommunications:$(".comment-add-comms").is(":checked")},function(b){if(b.success){$("#hot-topic-panel #comments-step2").hide();$("#hot-topic-panel .comment_add").hide();$("#hot-topic-panel #comment-posted").show();$("#hot-topic-panel .comment_results").html(b.html);$("#hot-topic-panel .comments .icon").html(b.numcomments)}else{hottopic.parseerror(b.error,b.errormsg)}},"json")}}},loadcomments:function(b,a){$.post(this.baseurl+"LoadComments",{topicid:b,startat:a},function(c){if(c.success){$(".comment_results").html(c.html)}else{alert(c.error)}},"json")}};var whitepapers={complete:false,baseurl:"/layouts/v2_Sagentia/ajax.asmx/",parseerror:function(c,a){if(c){for(var b=0;b<c.length;b++){$("#wp-"+c[b]+"-error").show()}}if(a){alert(a)}},showregistration:function(a){if(this.complete){return true}else{$(".wp-registration-form").show();$(".wp-name").focus();$.scrollTo(".wp-name",500);$(".wp-download-value").val(a);return false}},register:function(){$(".error").hide();if($(".wp-jobtitle").val()==""){$("#wp-jobtitle-error").show()}if($(".wp-name").val()==""){$("#wp-name-error").show()}if($(".wp-email").val()==""){$("#wp-email-error").show()}if($(".wp-company").val()==""){$("#wp-company-error").show()}if($(".error:visible").length==0){if(!$(".wp-terms").is(":checked")){alert("You cannot continue unless you agree to our Terms & Conditions.")}else{$.post(this.baseurl+"WhitePaperRegistration",{name:$(".wp-name").val(),jobtitle:$(".wp-jobtitle").val(),company:$(".wp-company").val(),email:$(".wp-email").val(),rememberme:$(".wp-rememberme").is(":checked")},function(a){if(a.success){$(".wp-registration-form").hide();document.location=document.location.href.substring(0,document.location.href.indexOf(".aspx"))+".aspx?rdownload="+$(".wp-download-value").val();whitepapers.complete=true}else{whitepapers.parseerror(a.errcodes,a.errormsg)}},"json")}}}};var vacancies={baseurl:"/layouts/v2_Sagentia/ajax.asmx/",show:function(a){$(".vacancies-panel .filters a").removeClass("selected");if(a=="ALL"){$(".vacancies-panel .item").show();$(".vacancies-panel .filters a").removeClass("selected")}else{$(".vacancies-panel .item").hide();$(".vacancies-panel .item."+a).show()}$(".vacancies-panel .filters a."+a).addClass("selected")},checkext:function(c,e){var a=(/[.]/.exec(c))?/[^.]+$/.exec(c):null;if(a){var b=e.split(";");for(var d=0;d<b.length;d++){if(a[0].toLowerCase()==b[d].toLowerCase()){return true}}}return false},apply:function(b){$(".error").hide();if($(".apply-name").val().length==0){$(".apply-name-error").show()}if($(".apply-phone").val().length==0){$(".apply-phone-error").show()}if($(".apply-cv").val().length==0){$(".apply-cv-error").show()}else{if(!this.checkext($(".apply-cv").val(),b)){$(".apply-cv-ext-error").show()}}if($(".apply-hear").val().length==0){$(".apply-hear-error").show()}if(!$(".apply-terms input").is(":checked")){$(".apply-terms-error").show()}if($(".apply-email").val().length==0){$(".apply-email-error").show()}else{try{if($(".error:visible").length==0){jQuery.ajax({url:this.baseurl+"EmailValidation",type:"POST",dataType:"json",data:{email:$(".apply-email").val()},success:function(c){if(!c.success){$(".apply-email-error").show()}},error:function(c){},async:false})}}catch(a){}}return $(".error:visible").length==0}};function limitText(b,a,c,d){if($("#"+a).val().length>d){$("#"+a).val($("#"+a).val().substring(0,d))}$("#"+c).html(d-$("#"+a).val().length)}var Continuum={height:0,init:function(){var a=0,b=0,d=false,c=true;this.evenHeights(".panel");this.evenHeights(".continuum .headings li a");this.height=$(".panel").height();$(".continuum .headings li a, .continuum .intro .column img").hover(function(){$(".continuum .headings li a").addClass("inactive");a=$(this).parent().index();$(".continuum .headings li a:eq("+a+")").removeClass("inactive")},function(){$(".continuum .headings li a").removeClass("inactive")}).click(function(){b=$(this).parent().index();if(d===false){d=true;function e(){$(".continuum .shown").animate({opacity:0},300,function(){$(this).hide();$(".continuum .panel:eq("+b+")").show().animate({opacity:1},300,function(){d=false}).addClass("shown")}).removeClass("shown")}if(c===true){c=false;$(".continuum .intro").animate({height:Continuum.height},300);e()}else{e()}}return false})},evenHeights:function(b){var a=0;$(b).each(function(){if($(this).height()>a){a=$(this).height()}});$(b).each(function(){$(this).css("min-height",a+"px")})}};$(document).ready(function(){var a=$(".continuum").length;if(a>0){Continuum.init()}});
