function ajouterFavoris(){if(navigator.appName!="Microsoft Internet Explorer"){window.sidebar.addPanel("Abc Bourse, L'indispensable pour investir en Bourse",location.href,"")}else{window.external.AddFavorite(location.href,document.title)}}var watermarkClassName="watermarked";(function($){$.fn.watermark=function(settings){var defaults={className:watermarkClassName,text:this.val()};settings=$.extend({},defaults,settings);if($(this).val().length==0||$(this).val()===settings.text){$(this).addClass(settings.className);$(this).val(settings.text)}this.focus(function(){$(this).removeWatermark({className:settings.className,text:settings.text})});this.blur(function(){$(this).addWatermark({className:settings.className,text:settings.text})});var id=this.attr("id");this.parents("form:first").submit(function(){$("#"+id).removeWatermark({className:settings.className,text:settings.text})})};$.fn.addWatermark=function(settings){var defaults={className:watermarkClassName,text:this.val()};settings=$.extend({},defaults,settings);if(this.val().length==0||this.val()===settings.text){this.addClass(settings.className);this.val(settings.text)}};$.fn.removeWatermark=function(settings){var defaults={className:watermarkClassName,text:this.val()};settings=$.extend({},defaults,settings);if(this.hasClass(settings.className)&&this.val()===settings.text){this.removeClass(settings.className);this.val("")}}})(jQuery);(function(jQuery){jQuery.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,attr){jQuery.fx.step[attr]=function(fx){if(fx.state==0){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end)}try{fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")"}catch(e){return false}}});function getRGB(color){var result;if(color&&color.constructor==Array&&color.length==3)return color;if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))return[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))return[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)];if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))return[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)];if(result=/rgba\(0, 0, 0, 0\)/.exec(color))return colors['transparent'];return colors[jQuery.trim(color).toLowerCase()]}function getColor(elem,attr){var color;do{color=jQuery.curCSS(elem,attr);if(color!=''&&color!='transparent'||jQuery.nodeName(elem,"body"))break;attr="backgroundColor"}while(elem=elem.parentNode);return getRGB(color)};var colors={black:[0,0,0],blue:[0,0,255],green:[0,128,0],lightgreen:[144,238,144],vlightgreen:[242,255,242],lightgrey:[221,221,221],lightred:[231,91,91],vlightred:[255,242,242],red:[255,0,0],white:[255,255,255],transparent:[255,255,255]}})(jQuery);function isMarketOpen(){now=new Date();hour=now.getHours();day=now.getDay();minute=now.getMinutes();var openTime=540;var closeTime=1051;var actualTime=hour*60+minute;if(day==0||day==6)return false;if((actualTime<openTime)||(actualTime>closeTime))return false}var popupStatus=0;function loadPopupHelp(path){if(popupStatus==0){$("#backgroundPopupHelp").css({"opacity":"0.7"});$("#backgroundPopupHelp").fadeIn("slow");$("#helpContent").load("../help/"+path);$("#popupHelp").fadeIn("slow");popupStatus=1}}function disablePopupHelp(){if(popupStatus==1){$("#backgroundPopupHelp").fadeOut("slow");$("#popupHelp").fadeOut("slow");popupStatus=0}}function centerPopupHelp(){var windowWidth=document.documentElement.clientWidth;var windowHeight=document.documentElement.clientHeight;var popupHeight=$("#popupHelp").height();var popupWidth=$("#popupHelp").width();$("#popupHelp").css({"position":"absolute","top":windowHeight/2-popupHeight/2,"left":windowWidth/2-popupWidth/2});$("#backgroundPopupHelp").css({"height":windowHeight})}sas_tmstp=Math.round(Math.random()*10000000000);sas_masterflag=1;function SmartAdServer(sas_pageid,sas_formatid,sas_target){if(sas_masterflag==1){sas_masterflag=0;sas_master='M'}else{sas_master='S'};document.write('<scr'+'ipt src="http://www4.smartadserver.com/call/pubj/'+sas_pageid+'/'+sas_formatid+'/'+sas_master+'/'+sas_tmstp+'/'+escape(sas_target)+'?"></scr'+'ipt>')}
