//<!--

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var siteversion;
siteversion = "ht ml";

function openwin(filename,height,width){
window.open(filename,"","height="+height+",width="+width)
}

function imprimer() {	
var mac = (navigator.appVersion.indexOf("Mac") != -1); 

if(mac) alert('If you are currently using a Macintosh, please print from the "File" menu. Thank you'); 
else    window.print(); 
}
 
function popupdivhome(status){
	if(status == "close"){
		document.getElementById("popupdivhome").style.visibility = "hidden";
		document.getElementById("popupdivhome").style.display = "none";
	}
}

function popupdiv(status){
	if(status == "close"){
		document.getElementById("popupdiv").style.visibility = "hidden";
		document.getElementById("popupdiv").style.display = "none";
	}
}

function PopFlash()
	{
	MM_openBrWindow('../help.htm','','width=405,height=368,left=0,top=0');
	}
	
	
function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindowCentrer(theURL,winName,w,h) 
{ //v2.0
  var top=(screen.width/2)-(w/2);
  var left=(screen.height/2)-(h/2);
  window.open(theURL,winName,'menubar=no,scrollbars=no,statusbar=no,left='+top+',top='+left+',width='+w+',height='+h);
}

function MM_openBrWindowCentrerFeatures(theURL,winName,features,w,h) 
{ //v2.1
  var top=(screen.width/2)-(w/2);
  var left=(screen.height/2)-(h/2);
  window.open(theURL,winName,features + ',left='+top+',top='+left+',width='+w+',height='+h);
}


function checkEmail(to_check) 
	{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(to_check)){
	return (true)}
	}
	
	
function open_label()
	{
		MM_openBrWindow('../../4105/label.asp','','width=740,height=445,left=0,top=0');
	}
		
		
function print_page(url) 
	{
	window.open("print.asp?url=" + url,'','scrollbars=yes,height=445,width=480,toolbar=yes,left=0,top=0');
	}

function print_page_url(print_location,url) 
	{
	window.open(print_location + "?url=" + url,'','scrollbars=yes,height=445,width=617,toolbar=yes,left=0,top=0');
	}

 
function print_page_generic(print_location,url,winName,features,w,h) 
	{
	var top=(screen.width/2)-(w/2);
	var left=(screen.height/2)-(h/2);
	window.open(print_location + "?url=" + url,winName,features + ',left='+top+',top='+left+',width='+w+',height='+h);
	}
	
function goback() 
	{
	history.back();
	}
	
	
function open_signup()
	{
		MM_openBrWindow('signup.asp','','width=450,height=445,left=0,top=0,scrollbars=yes');
	}
	
function CookieDetect(page)
	{
	chkcookie = 'test';
	document.cookie = chkcookie;
	if (document.cookie.indexOf(chkcookie,0) < 0) 
		{
	    if(page != "")
			return true;
		else
			document.location.replace(page);
			return false;
	    }
	else 
		{
	   return true;
	   }
}

//********************************************
//*Used best with the getfilename() in nav_functions to pass the page that should
//* be loaded into the content
//*detect_parent_loaded("<%=HOMEPAGE%>",content_url);
//********************************************
function detect_parent_loaded(parent_url,content_url)
	{
	if (window.parent==window)
		{
		document.location.replace("redirect.asp?content=" + content_url);
		}
	}

//*************************************************************
//netsape 6 and 7 returns a 5 but 4.7 is 4.7
//*************************************************************

var allow_trans;
allow_trans = "1";
function browser_detection(supported) {
	browsername = navigator.appName;
	platformname = navigator.platform;


	//if (browsername.indexOf("Netscape")!=-1) 
	//	{
	//	browsername="NS"
	//	}
	//else
	//	{
	//	if (browsername.indexOf("Microsoft")!=-1)
	//		{browsername="MSIE"}
	//	else 
	//		{browsername="N/A"}};
	//detect the browserversion
	
	
	var browserName = whichBrs();
	
	
	browserversion="0";

	var safari = navigator.appVersion.search(/Safari/);

	if (navigator.appVersion.indexOf("2.")!=-1) 
		{browserversion="2";
		}
	if (navigator.appVersion.indexOf("3.")!=-1) 
		{browserversion="3";
		}
	if (navigator.appVersion.indexOf("5.")!=-1) 
		{browserversion="5";
		}
	if (navigator.appVersion.indexOf("4")!=-1) 
		{browserversion="4";
		if(safari != -1)
		{browserversion="100";}	
		}
	if (navigator.appVersion.indexOf("6.")!=-1) 
		{browserversion="6";
		}
	if (navigator.appVersion.indexOf("7.")!=-1) 
		{browserversion="7";
		}
	

	
	
	// Send visitor to relevant pages
	if (browsername=="NS" && parseInt(browserversion) < supported) 
		{
		document.location.replace("../commun/flashdetect/nonetscape.html")
		}
	
	//if (browsername=="N/A") 
	//	{window.location="http://www.webcrawler.com"};
	


	//alert(browserName);
	//alert(browserversion);
	
			if(browserName == "NS" || safari != -1){
				if(parseInt(browserversion) <= 5){
					allow_trans = "0";
				}
			}else if(browserName == "Opera") {
					allow_trans = "0";
			}
}
	

function whichBrs() {
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1) return 'Opera';
	if (agt.indexOf("staroffice") != -1) return 'Star Office';
	if (agt.indexOf("beonex") != -1) return 'Beonex';
	if (agt.indexOf("chimera") != -1) return 'Chimera';
	if (agt.indexOf("netpositive") != -1) return 'NetPositive';
	if (agt.indexOf("phoenix") != -1) return 'Phoenix';
	if (agt.indexOf("firefox") != -1) return 'Firefox';
	if (agt.indexOf("safari") != -1) return 'Safari';
	if (agt.indexOf("skipstone") != -1) return 'SkipStone';
	if (agt.indexOf("msie") != -1) return 'MSIE';
	if (agt.indexOf("netscape") != -1) return 'NS';
	if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
	if (agt.indexOf('\/') != -1) {
	if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
	return navigator.userAgent.substr(0,agt.indexOf('\/'));}
	else return 'Netscape';} else if (agt.indexOf(' ') != -1)
	return navigator.userAgent.substr(0,agt.indexOf(' '));
	else return navigator.userAgent;
}
//-->


// Flash Player Version Detection - Rev 1.5
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
        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;
        
        // -----------------------------------------------------------------------------
        // Globals
        // Major version of Flash required
        var requiredMajorVersion = 6;
        // Minor version of Flash required
        var requiredMinorVersion = 0;
        // Minor version of Flash required
        var requiredRevision = 0;
        // -----------------------------------------------------------------------------

        function ControlVersion() {
	        var version;
	        var axo;
	        var e;

	        // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	        try {
		        // version will be set for 7.X or greater players
		        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		        version = axo.GetVariable("$version");
	        } catch (e) {
	        }

	        if (!version)
	        {
		        try {
			        // version will be set for 6.X players only
			        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
        			
			        // installed player is some revision of 6.0
			        // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			        // so we have to be careful. 
        			
			        // default to the first public version
			        version = "WIN 6,0,21,0";

			        // throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			        axo.AllowScriptAccess = "always";

			        // safe to call for 6.0r47 or greater
			        version = axo.GetVariable("$version");

		        } catch (e) {
		        }
	        }

	        if (!version)
	        {
		        try {
			        // version will be set for 4.X or 5.X player
			        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			        version = axo.GetVariable("$version");
		        } catch (e) {
		        }
	        }

	        if (!version)
	        {
		        try {
			        // version will be set for 3.X player
			        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			        version = "WIN 3,0,18,0";
		        } catch (e) {
		        }
	        }

	        if (!version)
	        {
		        try {
			        // version will be set for 2.X player
			        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			        version = "WIN 2,0,0,11";
		        } catch (e) {
			        version = -1;
		        }
	        }
        	
	        return version;
        }

        // JavaScript helper required to detect Flash Player PlugIn version information
        function GetSwfVer(){
	        // NS/Opera version >= 3 check for Flash plugin in plugin array
	        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];
			        if ( descArray[3] != "" ) {
				        tempArrayMinor = descArray[3].split("r");
			        } else {
				        tempArrayMinor = descArray[4].split("r");
			        }
			        var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
			        var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		        }
	        }
	        // MSN/WebTV 2.6 supports Flash 4
	        else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	        // WebTV 2.5 supports Flash 3
	        else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	        // older WebTV supports Flash 2
	        else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	        else if ( isIE && isWin && !isOpera ) {
		        flashVer = ControlVersion();
	        }	
	        return flashVer;
        }

        // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
        function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision){
	        versionStr = GetSwfVer();
	        if (versionStr == -1 ) {
		        return false;
	        } else if (versionStr != 0) {
		        if(isIE && isWin && !isOpera) {
			        // Given "WIN 2,0,0,11"
			        tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			        tempString        = tempArray[1];			// "2,0,0,11"
			        versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		        } else {
			        versionArray      = versionStr.split(".");
		        }
		        var versionMajor      = versionArray[0];
		        var versionMinor      = versionArray[1];
		        var versionRevision   = versionArray[2];

        	        // is the major.revision >= requested major.revision AND the minor version >= requested minor
		        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] + '" ';
  		        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_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 clean_utf(str)
	{
	replacement = new RegExp(String.fromCharCode(339),"g");
	str.value = str.value.replace(replacement,"oe");
	replacement = new RegExp(String.fromCharCode(8211),"g");
	str.value = str.value.replace(replacement,"-");
	replacement = new RegExp(String.fromCharCode(8212),"g");
	str.value = str.value.replace(replacement,"-");
	replacement = new RegExp(String.fromCharCode(8230),"g");
	str.value = str.value.replace(replacement,"...");

	replacement = new RegExp(String.fromCharCode(768),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(769),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(771),"g");
	str.value = str.value.replace(replacement,"~");
	replacement = new RegExp(String.fromCharCode(777),"g");
	str.value = str.value.replace(replacement,"'");	
	replacement = new RegExp(String.fromCharCode(803),"g");
	str.value = str.value.replace(replacement,".");
	replacement = new RegExp(String.fromCharCode(894),"g");
	str.value = str.value.replace(replacement,";");
	replacement = new RegExp(String.fromCharCode(900),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(171),"g");
	str.value = str.value.replace(replacement,'"');	
	replacement = new RegExp(String.fromCharCode(187),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(1764),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(1765),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(733),"g");
	str.value = str.value.replace(replacement,'"');	
	replacement = new RegExp(String.fromCharCode(8213),"g");
	str.value = str.value.replace(replacement,'_');
	replacement = new RegExp(String.fromCharCode(8215),"g");
	str.value = str.value.replace(replacement,'_');
	replacement = new RegExp(String.fromCharCode(8216),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(8217),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(8218),"g");
	str.value = str.value.replace(replacement,",");
	replacement = new RegExp(String.fromCharCode(8219),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(8220),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(8221),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(8242),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(8243),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(8722),"g");
	str.value = str.value.replace(replacement,'-');
	replacement = new RegExp(String.fromCharCode(9472),"g");
	str.value = str.value.replace(replacement,'-');
	replacement = new RegExp(String.fromCharCode(59450),"g");
	str.value = str.value.replace(replacement,'-');
	replacement = new RegExp(String.fromCharCode(61444),"g");
	str.value = str.value.replace(replacement,',');
	replacement = new RegExp(String.fromCharCode(61445),"g");
	str.value = str.value.replace(replacement,',');
	replacement = new RegExp(String.fromCharCode(61446),"g");
	str.value = str.value.replace(replacement,',');
	replacement = new RegExp(String.fromCharCode(61447),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(61448),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(61449),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(61455),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(61461),"g");
	str.value = str.value.replace(replacement,'~');
	replacement = new RegExp(String.fromCharCode(61463),"g");
	str.value = str.value.replace(replacement,'~');
	replacement = new RegExp(String.fromCharCode(61464),"g");
	str.value = str.value.replace(replacement,'~');
	replacement = new RegExp(String.fromCharCode(64465),"g");
	str.value = str.value.replace(replacement,'~');
	replacement = new RegExp(String.fromCharCode(8482),"g");
	str.value = str.value.replace(replacement,'(tm) ');
	replacement = new RegExp(String.fromCharCode(8539),"g");
	str.value = str.value.replace(replacement,'1/8');
	replacement = new RegExp(String.fromCharCode(8540),"g");
	str.value = str.value.replace(replacement,'3/8');
	replacement = new RegExp(String.fromCharCode(8541),"g");
	str.value = str.value.replace(replacement,'5/8');
	replacement = new RegExp(String.fromCharCode(8542),"g");
	str.value = str.value.replace(replacement,'7/8');
	replacement = new RegExp(String.fromCharCode(8364),"g");
	str.value = str.value.replace(replacement,' Euros');
	replacement = new RegExp(String.fromCharCode(8362),"g");
	str.value = str.value.replace(replacement,' Sheqels');
	replacement = new RegExp(String.fromCharCode(8359),"g");
	str.value = str.value.replace(replacement,' Pesetas');
	replacement = new RegExp(String.fromCharCode(8356),"g");
	str.value = str.value.replace(replacement,' Liras');
	replacement = new RegExp(String.fromCharCode(8355),"g");
	str.value = str.value.replace(replacement,' Francs');
	replacement = new RegExp(String.fromCharCode(64830),"g");
	str.value = str.value.replace(replacement,'(');
	replacement = new RegExp(String.fromCharCode(64831),"g");
	str.value = str.value.replace(replacement,')');
	
	//alert(title.charCodeAt(i) + " = " + title.charAt(i));
	
	}

function switchLanguage(currLanguage,newLanguage,currLocation){
newLocation = currLocation.replace(currLanguage,newLanguage)
document.location.href = newLocation
}



function openDivCenter(divname,w,h){
	switch(browsername)
	{
		case "MSIE":
			ypos = document.body.scrollTop;
			break;
		case "NS":
			ypos = window.scrollY;
			break;
		default:
			ypos = document.body.scrollTop;
			break;
	}

	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    //Non-IE
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	  } else if( document.documentElement &&
	      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	  }
	  
	//if(siteversion != "html"){
		//alert(ypos);
	//	contenu = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='447' HEIGHT='179' id='popup_calendar' ALIGN=''> <PARAM NAME=movie VALUE='flash/popup_calendar.swf'> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#F4F3F0> <EMBED src='flash/popup_calendar.swf' quality=high wmode=transparent bgcolor=#F4F3F0  WIDTH='447' HEIGHT='179' NAME='popup_calendar' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";
	//	document.getElementById(divname).style.top = ypos + (myHeight/2) - 179;
	//	document.getElementById(divname).style.visibility = "visible";
	//	document.getElementById(divname).innerHTML = contenu;
	//}else{
		//alert(ypos);
		document.getElementById(divname).style.top = ypos + (myHeight/2) - (h/2);
		document.getElementById(divname).style.left = (myWidth/2) - (w/2);
		document.getElementById(divname).style.visibility = "visible";
	//}
	
}

function closeDivCenter(divname){
	//if(siteversion != "html"){
	//	document.getElementById(divname).style.visibility = "hidden";
	//}else{
		document.getElementById(divname).style.visibility = "hidden";
	//}
}

function positionneDiv(divname,w,h){
	switch(browsername)
	{
		case "MSIE":
			ypos = document.body.scrollTop;
			break;
		case "NS":
			ypos = window.scrollY;
			break;
		default:
			ypos = document.body.scrollTop;
			break;
	}

	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    //Non-IE
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	  } else if( document.documentElement &&
	      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	  }

	document.getElementById(divname).style.top = ypos + (myHeight/2) - (h/2);
	document.getElementById(divname).style.left = (myWidth/2) - (w/2);
}


//-->