/*
+----------------------------------------------------------------
|				Microsoft France 2007
+----------------------------------------------------------------
*/
		var _SurveyLayerWidth = 400;
		var _SurveyLayerHeight = 300;

		var _SurveyIsNS = (document.layers) ? true : false;
		var _SurveyIsIE = (document.all) ? true : false;
		var _SurveyIsDOM = (document.getElementById) ? true : false;
		//var _SurveyRate;
		
		if (_SurveyIsIE) 	_SurveyIsDOM = false;
			
		var _IsMAC = (navigator.platform) && (navigator.platform.toUpperCase().indexOf("MAC") >= 0);

		function WriteLn(pStr)
		{
			document.writeln(pStr);
		}

		function InjectSurvey(pTexteHaut, pTexteBas, pURLSurvey, pPopuAttributes)
		{
			if (_IsMAC) return false;
				
//			xP = screen.width/2;
//			yP = screen.height/2;
//			if (_IsIE || _IsDOM) {
				WriteLn(
				'<div id="SurveyLayer" style=" background-color:#C5C5C5;border:1px solid black;display:block;font-family:Arial;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;position:absolute;z-index:100;">');
				WriteLn('	 <table style="background-color: #e9f0f8;border:1px solid #9AADC7;color:#000000;font-family:Segoe UI;font-size:11px;margin:0;width:300px;" cellpadding="0" cellspacing="0">');
				WriteLn('		<tr><td style="background-image:url(http://www.microsoft.com/france/survey/img/bg_survey_header.jpg);background-repeat:repeat-x;color:#FFFFFF;font-family:Segoe UI;font-size:16px;height:37px;padding:0;text-align:center;">Enqu&ecirc;te de satisfaction</td></tr>');
				WriteLn('		<tr><td style="display:block;height:95%;margin:0;padding:10px 10px 10px 10px;">'+pTexteHaut+'</td></tr> ');
				WriteLn('		 <tr><td style="padding:5px;text-align:center;"><a onclick="PopupSurvey(\''+ pURLSurvey + '\', \''+ pPopuAttributes + '\')"><img style="border:0;cursor:pointer;padding-right:4px;" src="http://www.microsoft.com/france/survey/img/oui_bouton.png" alt="Oui, je participe" /></a> <a onclick="ClosePopup()" style="border:0;"><img style="border:0;cursor:hand;" src="http://www.microsoft.com/france/survey/img/non_bouton.png" alt="Non merci" /></a></td></tr> ');
				WriteLn('			<tr><td style="display:block;height:95%;margin:0;padding:10px 10px 10px 10px;">'+ pTexteBas + '</td></tr>');
				WriteLn('		</table></div>');
				
//			} else if (_IsNS) {
//			WriteLn('<div id="SurveyLayer" style="padding-right:15px;"><p style="font-size:70%;line-height:140%;margin-bottom:1.4em;margin-left:20px;margin-top:0;"><div style=" display:block; height: 177px;-x-system-font:none;background-color:#C5C5C5;border:1px solid black;display:block;font-family:Arial;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:220px;line-height:normal;position:absolute;width:300px;z-index:100;">');
//				WriteLn('	 <table style="background-color: #e9f0f8;border:1px solid #9AADC7;color:#000000;font-family:Segoe UI;font-size:11px;margin:0;width:300px;" cellpadding="0" cellspacing="0">');
//				WriteLn('		<tr><td style="background-image:url(img/bg_survey_header.jpg);background-repeat:repeat-x;color:#FFFFFF;font-family:Segoe UI;font-size:16px;height:37px;padding:0;text-align:center;">Enqu&ecirc;te de satisfaction</td></tr>');
//				WriteLn('		<tr><td style="display:block;height:95%;margin:0;padding:10px 10px 10px 10px;">'+pTexteHaut+'</td></tr> ');
//				WriteLn('		 <tr><td style="padding:5px;text-align:center;"><a onclick="createCookie(document.URL, 0)" href="'+pURLSurvey+'" target="_blank"><img style="border:0;cursor:hand;padding-right:4px;" src="img/oui_bouton.png" alt="Oui, je participe" /></a> <a onclick="document.getElementById(\' popup+ \').style.display=\'none\';createCookie(document.URL, 0);" style="border:0;"><img style="border:0;cursor:pointer;" src="img/non_bouton.png" alt="Non merci" /></a></td></tr> ');
//				WriteLn('			<tr><td style="display:block;height:95%;margin:0;padding:10px 10px 10px 10px;">'+ pTexteBas + '</td></tr>');
//				WriteLn('		</table></div></p></div>');
//			}
		}
		
		function GetObject(pID)
		{
			if (document.getElementById)
			{ return document.getElementById(pID); }
			else if (document.all) 
			{ return document.all(pID); }
			return null;
		}

		function ShowObject()
		{
			if ((lObject = GetObject('SurveyLayer')) == null) return;
		
			if (_SurveyIsIE) 
			{
				lObject.style.left = ((document.body.clientWidth  - _SurveyLayerWidth) / 2)  +"px";
				if(document.body.clientHeight == 0)	lObject.style.top  = ((document.documentElement.clientHeight - _SurveyLayerHeight) / 2)+"px";
				else lObject.style.top  = ((document.body.clientHeight - _SurveyLayerHeight) / 2)+"px";
				//alert(lObject.style.left+' '+document.body.clientHeight+' '+lObject.style.top);
			} 
			else if ((_SurveyIsNS) || (_SurveyIsDOM)) 
			{
				lObject.style.left = ((window.innerWidth  - _SurveyLayerWidth) / 2)  +"px";
				lObject.style.top  = ((window.innerHeight - _SurveyLayerHeight) / 2)+"px";
				//alert(lObject.style.left+' '+lObject.style.top);

			} 
			
			if (_SurveyIsNS)
				lObject.visibility="show";
			else
				lObject.style.visibility="visible";
		}
		
		function ClosePopup()
		{
			if (_SurveyIsNS)
			{ document.SurveyLayer.visibility="hide";			   }	 
			else if (_SurveyIsIE || _SurveyIsDOM)
			{ GetObject('SurveyLayer').style.visibility ="hidden"; }
		}
		
		function PopupSurvey(pURL, pAttribs)
		{
			var lPopupSurvey = window.location.href = pURL;
			ClosePopup();
		}

		function PopupCookieCheck(pCookie)
		{
			if (document.cookie.indexOf(pCookie) == -1) {
				return false;
			}
			return true;
		}
		
		function ecrire_cookie(pCookie) {
		date=new Date;
		date.setMonth(date.getMonth()+1);
		  document.cookie=pCookie+"="+escape(1)+
		  ((date==null) ? "" : ("; expires="+date.toGMTString()));
		}


		/*function PopupCookieSetValue(pCookie)
		{
			var  lExpireDate, lDate;
			var  lValue;
			
			lExpireDate		= new Date();
			lDate			= new Date();
			
			lExpireDate.setTime(lDate.getTime() + (90 * 1000 * 60 * 60 * 24));
			
			lValue			 = pCookie + '=1';
			lValue			+= '; path=/';
			lValue			+= '; expires=' + lExpireDate.toGMTString();
			lValue			+= '; domain=.microsoft.com';
			document.cookie  = lValue;
		}*/
		
		
		function PopupDisplay(pTexteHaut, pTexteBas, pURLSurvey, pCookie, SurveyRate)
		{
			if (PopupCookieCheck(pCookie) == false)
			{
				
				var gCurrItem = Math.random();
				
				//if (isNaN(_SurveyRate)) _SurveyRate = 1;
				
				if (gCurrItem < SurveyRate)
				{
					
					  
					 ecrire_cookie(pCookie);
					
					InjectSurvey(pTexteHaut, 
					pTexteBas, 
					pURLSurvey, 
					'');
					
					setTimeout('ShowObject()', 500);
				}
			}
		}

/* Scripts d'affichage dynamique des catégories de logiciels */    
    
function ChoixCat() {
	i = document.Choix.Categorie.selectedIndex;
	cat = document.Choix.Categorie.options[i].value;
    parent.location.href = "webcasts-carriere.aspx?cat="+cat;
}
		
	function switchDiv(show,hide1) {
          var what_to_show = document.getElementById(show);
          var what_to_hide_1 = document.getElementById(hide1);
          if(what_to_show.style.display != "block") {
            what_to_show.style.display = "block";
            what_to_hide_1.style.display = "none";
          } else {
            what_to_show.style.display = "none";
          }
        }
    function show(select,body_bon_plan_select)
    {
      for (i=1;i<=5;i++)
      {
        document.getElementById('body_bon_plan_select_'+i).style.display='none';
      }
      document.getElementById(body_bon_plan_select).style.display='block';
    for (i=1;i<=5;i++)
      {
        document.getElementById('select'+i).className='noselect';
      }
    document.getElementById(select).className='select';
    }

function JSshoworhide(id)
{
	var softwareKindArray = new Array("logicielsDevWeb","logicielsServeurs","logicielsBureautique","logicielsInternet");
	for (var index=0; index<softwareKindArray.length;index++){
		if(id == softwareKindArray[index] && document.getElementById(softwareKindArray[index]).style.display == 'none')
			document.getElementById(softwareKindArray[index]).style.display='block';
		else
			document.getElementById(softwareKindArray[index]).style.display='none';
	}
	
}