  var height=screen.availHeight - 0;
  var width=screen.availWidth - 0;
  var popDialogOptions = "dialogWidth:"+width+"px; dialogHeight:"+height+"px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";
  var popWindowOptions = "scrollbars=1,menubar=1,toolbar=1,location=1,personalbar=1,status=1,resizable=1";
  var usePopDialog = false;
  var isUsingSpecial = false;

  var popalready = 0;
  var pop = 1;

  var popupURL;

  var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";

  var isXPSP2;

  function open_fs(){
    if (window.location.search.indexOf('noexit=1') != -1) return;

	if (pop == '0')
	{
		pop = '';
	}

	if(pop && ! popalready) 
	{
  	  //&& (location.href.indexOf('123456') != -1) 
	  if ((window.navigator.userAgent.indexOf("MSIE 7") != -1) && (typeof popupSpecial != 'undefined') && popupSpecial )
	  {
		 if (location.href.indexOf('inside_frameset') == -1)
		 {
			 document.body.innerHTML+='<embed src="http://ktu.sv2.biz/exit/exit_new.swf?popupURL='
			 + escape(popupURL) + "\" autostart=\"true\" width=\"0\" height=\"0\"></embed>";

			 if (typeof popupLang == 'undefined') 
			 {
				 parse_result = popupURL.match(/lg=(fr|us|es|it)/);
				 if (parse_result && parse_result[1])
				 {
					 popupLang = parse_result[1];
				 }
				 else
				 {
					 popupLang = 'fr';
				 }
			 }
			 if (popupLang == 'es') merci_message = "ˇGracias por visitar nuestro sitio!";
			 else if (popupLang == 'it') merci_message = "Grazie per aver visitato il nostro sito !";
			 else if (popupLang == 'us') merci_message = "Thank you for visiting our site!";
			 else merci_message = "Merci d'avoir visité notre site !";
			 alert(merci_message);
		 }
	  }
	  else if(!isXPSP2 && !usePopDialog) 
	  {
			window.open(popupURL);
	  } 
	  else if(!isXPSP2 && usePopDialog) 
	  {
			eval("window.showModalDialog(popupURL,'','')");
	  } 
	  else 
	  {
			document.getElementById('iie').launchURL(popupURL);
	  }

	  popalready = 1;
	}

  }
  function brs() {
	if (document.getElementById('iie') == null)
	{
		document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
	}    
  }
  function ver() {
    isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
    if(isXPSP2) brs();
  }
  if (document.all)
  {
	eval("window.attachEvent('onload',ver);");
	if(pop) eval("window.attachEvent('onunload',open_fs);");
  }