function openWindow(windowSource){
			h = 850;
			w = 1248;
			var myLeft= browserSize()[0]/2 - (parseInt(w/2))+'px';
			var myTop = browserSize()[1]/2 - (parseInt(h/2))+'px';
			var win = '';
			params = 'left='+ myLeft +',top='+myTop+',height='+h+',width='+w+',directories=no,menubar=no,resizable=yes,scrollbars=no,status=0,titlebar=no,toolbar=no,alwaysraised=yes';
			win = window.open(windowSource,'MAUVL3DCWin',params);
			win.window.focus();
}

function openVanSearch(){
	openWindow('http://used.vans.networkq.co.uk');
}

function openCarSearch(){
	openWindow('http://used.cars.networkq.co.uk');
	
}

		function browserSize() {
			var myWidth = 0, myHeight = 0, rVar;
			var myWindowWidth = 0, myWindowHeight = 0;

			myWindowWidth = screen.width;
			myWindowHeight = screen.height;

			if( typeof( window.innerWidth ) == 'number' ) {
				//Non-IE
				myWidth = window.innerWidth-20;
				myHeight = window.innerHeight-20;
			} 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;
			}
			rVar = new Array(myWidth,myHeight,myWindowWidth,myWindowHeight);
			return rVar;
		}
