/* XSLT-Konfiguration ANFANG *************************************************************/

var marketKey = 'G8-4-64';
var entriesPerPage = 10;
var cookieDays = 36500;
var allowNoPrice = false;

var preselect = {};

var showExtras = {
	aircondition: 8,
	leather: 99,
	boardcomputer: 50,
	central_locking: 43,
	sunroof: 38,
	seat_heater: 39,
	allwheel: 13,
	speed_control: 62,
	coupling: 73,
	particle_filter: 340,
	aux_heating: 60,
	navi: 36,
	vat: 'vat',
	metallic: 'metallic',
	has_pic: 'has_pic',
	private_ad: 'private_ad'
}

var contents = {
	result: {
		header: {
			xml: '/soap/kfz/?gw=search&count_only=1',
			xsl: modixDatadir + '/xsl/header_result.xsl',
			box: 'resultheader',
			callBack: [ viewTotalCars, viewSearchString, viewPinboardCounter ]
		},
		body: {
			xml: '/soap/kfz/?gw=search&sparse_mode=1&mdx_v1=250',
			xsl: modixDatadir + '/xsl/result_list.xsl',
			box: 'resultbody',
			callBack: [ setEntriesPerPage, setSort, copyPageNumbers ]
		},
		footer: {
			xml: '/soap/kfz/?gw=search&count_only=1',
			xsl: modixDatadir + '/xsl/footer_result.xsl',
			box: 'resultfooter',
			callBack: viewPinboardCounter2
		}
	},
	result_compare: {
		body: {
			xml: '/soap/kfz/?gw=search&limit=15',
			xsl: modixDatadir + '/xsl/result_compare.xsl',
			box: 'pinboard'
		}
	},
	total_cars: {
		body: {
			xml: '/soap/kfz/?gw=search&count_only=1',
			xsl: modixDatadir + '/xsl/total_cars.xsl',
			box: 'totalcars'
		}
	},
	details_result: {
		body: {
			xml: '/soap/kfz/?gw=search',
			xsl: modixDatadir + '/xsl/details_view.xsl',
			box: 'details',
			callBack: viewPinboardCounter
		}
	},
	details_print: {
		body: {
			xml: '/soap/kfz/?gw=search',
			xsl: modixDatadir + '/xsl/details_print.xsl',
			box: 'popup',
			width: 600,
			height: 510
		}
	},
	details_pinboard: {
		body: {
			xml: '/soap/kfz/?gw=search',
			xsl: modixDatadir + '/xsl/details_pinboard.xsl',
			box: 'details'
		}
	},
	xxlpictures: {
		body: {
			xml: '/soap/kfz/?gw=search',
			xsl: modixDatadir + '/xsl/xxlpictures.xsl',
			box: 'popup',
			width: 750,
			height: 570
		}
	},
	searchmask_id: {
		body: {
			xml: '/soap/kfz/?gw=search_form',
			xsl: modixDatadir + '/xsl/searchmask_id.xsl',
			box: 'searchmask_id'
		}
	},
	searchmask_small: {
		body: {
			xml: '/soap/kfz/?gw=search_form',
			xsl: modixDatadir + '/xsl/searchmask_small.xsl',
			box: 'searchmask_small'
		}
	},
	searchmask: {
		body: {
			xml: '/soap/kfz/?gw=search_form',
			xsl: modixDatadir + '/xsl/searchmask.xsl',
			box: 'searchmask',
			callBack: [ viewTotalCars, viewTypes ]
		}
	},
	carbuild: {
		body: {
			xml: '/soap/kfz/?gw=build_list',
			xsl: modixDatadir + '/xsl/carbuild.xsl',
			box: 'carbuild',
			callBack: initType
		}
	},
	searchstring: {
		body: {
			xml: '/soap/kfz/?gw=last_user_searches&limit=1',
			xsl: modixDatadir + '/xsl/searchstring.xsl',
			box: 'searchstring',
			defaultText: ''
		}
	},
	searchstring_pic: {
		body: {
			xml: '/soap/kfz/?gw=last_user_searches&limit=1',
			xsl: modixDatadir + '/xsl/searchstring_pic.xsl',
			box: 'searchstring',
			defaultText: ''
		}
	},
	pinboard_view: {
		body: {
			xml: '/soap/kfz/?gw=pinboard&sparse_mode=1&action=get',
			xsl: modixDatadir + '/xsl/pinboard_view.xsl',
			box: 'pinboard'
		}
	},
	pinboard_print: {
		body: {
			xml: '/soap/kfz/?gw=pinboard&sparse_mode=1&action=get',
			xsl: modixDatadir + '/xsl/pinboard_print.xsl',
			box: 'popup',
			width: 700,
			height: 500
		}
	},
	pinboard_counter: {
		body: {
			xml: '/soap/kfz/?gw=pinboard&action=count',
			xsl: modixDatadir + '/xsl/pinboard_counter.xsl',
			box: 'pinboardcounter'
		}
	},
	pinboard_counter2: {
		body: {
			xml: '/soap/kfz/?gw=pinboard&action=count',
			xsl: modixDatadir + '/xsl/pinboard_counter.xsl',
			box: 'pinboardcounter2',
			reloadData: true
		}
	},
	pinboard_add: {
		body: {
			xml: '/soap/kfz/?gw=pinboard&action=add',
			xsl: modixDatadir + '/xsl/pinboard_counter.xsl',
			box: 'pinboardcounter'
		}
	},
	pinboard_remove: {
		body: {
			xml: '/soap/kfz/?gw=pinboard&action=remove',
			xsl: modixDatadir + '/xsl/pinboard_counter.xsl',
			box: 'pinboard'
		}
	},
	pinboard_remove_all: {
		body: {
			xml: '/soap/kfz/?gw=pinboard&action=remove_all',
			xsl: modixDatadir + '/xsl/pinboard_counter.xsl',
			box: 'pinboard'
		}
	},
	lastsearches: {
		body: {
			xml: '/soap/kfz/?gw=last_user_searches&limit=20',
			xsl: modixDatadir + '/xsl/lastsearches.xsl',
			box: 'lastsearches'
		}
	},
	personal_offers1: {
		body: {
			xml: '/soap/kfz/?gw=personal_offers&sparse_mode=1&limit=8&mdx_v1=80',
			xsl: modixDatadir + '/xsl/personal_offers1.xsl',
			box: 'personaloffers1'
		}
	},
	personal_offers2: {
		body: {
			xml: '/soap/kfz/?gw=search&sparse_mode=1&limit=1&mdx_v1=120&top_offer=1&random=1&has_pic=1&dkey=' + topoffer_dkey,
			xsl: modixDatadir + '/xsl/personal_offers2.xsl',
			box: 'personaloffers2'
		}
	},
	personal_offers3: {
		body: {
			xml: '/soap/kfz/?gw=personal_offers&sparse_mode=1&limit=3&mdx_v1=80',
			xsl: modixDatadir + '/xsl/personal_offers3.xsl',
			box: 'personaloffers3'
		}
	},
	loadinfo: '<img src="' + modixDatadir + '/images/loading.gif" style="position:relative; left:50%; top:50%; width:25px; height:25px; margin-left:-12px; margin-top:-12px;"/>',
	resultpages: 'resultPages'
}

cmMsg['pinboardVehicleSaved'] = 'Das Fahrzeug wurde auf dem Parkplatz geparkt.';
cmMsg['pinboardVehicleRemoved'] = 'Das Fahrzeug wurde vom Parkplatz entfernt.';
cmMsg['pinboardCleared'] = 'Alle Fahrzeuge wurden vom Parkplatz entfernt.';

/* XSLT-Konfiguration ENDE ***************************************************************/