/**
 * COMMON JS
 */

 /**
 */
 var scriptPath = '/js';									//define path to script directory

include(scriptPath+'/jquery-1.4.2.min.js');		
include(scriptPath+'/tools.js');		



/**
 * Include resource
 */
function include(script_filename) {
    document.write('<' + 'script');
    document.write(' type="text/javascript"');
    document.write(' src="' + script_filename + '">');
    document.write('</' + 'script' + '>');
}
 //---------------------------------------




function winOpen() {

	 window.open('http://mynewcar.citroen.com/CfgPagesPL/searchCriteria.aspx?brand=C&country=PL&language=pl-PL&languageAO=pl&Start=true','konfigurator','height=560,width=780,resizable=no,scrollbars=no,status=no,location=no,toolbar=no,menubar=no');s
}

function imagePreview(of_ID) {
	if(window.location.pathname.match('komis.aspx')!=null){
		window.open('imgPrevKomis.aspx?uc_id='+of_ID,'Powiększ','width=500,height=350,resizable=no,scrollbars=yes,status=no,location=no,toolbar=no,menubar=no'); 
	}
	else{
		window.open('imgPrev.aspx?img_id='+of_ID,'Powiększ','width=500,height=350,resizable=no,scrollbars=yes,status=no,location=no,toolbar=no,menubar=no'); 
	}
}
 
 
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='komis.aspx?brand="+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

function openWindow(URL, name, parms) {
	window.open(URL, name, parms);
}
 

if(window.location.pathname.match('komis.aspx')!=null){
	setTimeout('fixCss()',100);
}


fixCss = function(){
            /** reset indents **/
            $('.contentRight').find('select').each(function(){
                $(this).css('text-indent',0);
            });
            /** fix padding **/
            $("select[name='price_min']").parent().css('margin-left','10px');
};

 /**
  * EOF COMMON JSs
  */
 
