

<!--
$(document).ready(function(){
    $('a[href*="www.peugeot.pl"]').attr('target','_blank');
})

function BuildFlash(path, w, h, bkg, vars, name, quality, wmode, live) {
 var str;
 if (path!='') {
  str = '<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="'+ w +'" HEIGHT="'+ h +'" id="'+ name +'" ALIGN="">' +
  '<param name="movie" value="'+ path +'"><param name="quality" value="'+ quality +'"><param name="bgcolor" value="'+ bkg +'"><param name="menu" value="false"><param name="wmode" value="'+ wmode +'">' +
  '<param name="flashvars" value="' + vars + '">' +
  '<EMBED src="'+ path +'" FlashVars="'+ vars +'" quality="'+ quality +'" wmode="'+ wmode +'" bgcolor="'+ bkg +'" WIDTH="'+ w +'" HEIGHT="'+ h +'" NAME="'+ name +'" swLiveConnect='+ live +' ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' +
  '</object>' ;
 }
 return str;
}
function NewBuildFlash(path, w, h, bkg, vars, name, quality, wmode, live) {
 var str;
 if (path!='') {
  str = '<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="'+ w +'" HEIGHT="'+ h +'" id="'+ name +'" ALIGN="">' +
  '<param name="movie" value="'+ path +'"><param name="quality" value="'+ quality +'"><param name="bgcolor" value="'+ bkg +'"><param name="menu" value="false"><param name="wmode" value="'+ wmode +'">' +
  '<param name="flashvars" value="' + vars + '">' +
  '<EMBED src="'+ path +'" FlashVars="'+ vars +'" quality="'+ quality +'" wmode="'+ wmode +'" bgcolor="'+ bkg +'" WIDTH="'+ w +'" HEIGHT="'+ h +'" NAME="'+ name +'" swLiveConnect='+ live +' ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' +
  '</object>' ;
 }
 document.write(str);
}
function escapeURI(str) {
  str = str.replace(/=/g, '%3D'); 
  str = str.replace(/&/g, '%26');
  str = str.replace(/"/g, '%22');
  return str;
}
function test() {
  alert('test');
}

function getQuerryStringByName(name){
  url = new String(window.location);
  var xx=String(document.location.search);
  str_tmp = url.split("?");
  
  if( str_tmp.length < 2 ) return "";
  querry = str_tmp[1];
  
  if (xx.match(/%20\w+=/)) // haszcz
  { 
    element = querry.split(escape("&"));
  }
  else // bez haszcza
  {
    element = querry.split("&");
  }  
  i=0;
  while(i<element.length){
      e = element[i];
      _item =  e.split("=");
      if(_item[0] == name){
        return _item[1];
      }
      i++;
  }
  return "";
}


// dropdown
  var mItems = new Array('mItem0', 'mItem1', 'mItem2', 'mItem3', 'mItem4' ,'mItem5');
  var t = null;
  var selectedDiv = '';
  function checkSelected(item) {
     if (item == selectedDiv)
         return true;
     else
         return false;
  }
  function showMenu(item) {
   if (checkSelected(item))
     return;
   for (var i=0; i<mItems.length; i++) {
    if (mItems[i] != item)
     hideMenu(mItems[i]);
   }
   if (document.all) {
    document.all[item].style.visibility = 'visible';
   } else {
    document.getElementById(item).style.visibility = 'visible';
   }
   t = setTimeout('hideMenu("'+item+'")', 2000);
  }
  function hideMenu(item) {
   clearTimeout(t);
   if (checkSelected(item))
     return;
   if (document.all) {
    document.all[item].style.visibility = 'hidden';
   } else {
    document.getElementById(item).style.visibility = 'hidden';
   }
  }
  function menuOver(item) {
   clearTimeout(t);
  }
  function menuOut(item) {
   t = setTimeout('hideMenu("'+item+'")', 500);
  }


function popup_jazdyprob_dealer(s) {

  u = 'http://www.jp.peugeot.pl/PeugeotTestDrive/testDriveForm.aspx?dealerID='+s;
window.open(u,'thewin','height=600,width=780,toolbar=no,scrollbars=yes'); 


}

function popup_jazdyprob() {

u = 'http://www.jp.peugeot.pl/PeugeotTestDrive/testDriveForm.aspx'
  window.open(u,'thewin','height=600,width=780,toolbar=no,scrollbars=yes');
 }
//-->
