
/*
jQuery(document).ready(function() {
    if(jQuery("#movFlashCore").size()>0){
        jQuery(".gBodyContainer").css("background-image","none");
    }
});
*/

// Open External swf in new window
// Argument swfName, querystr, width and height are required, the others optional
// Usage: <a href="#" onclick="return popExtSwf('mySwf.swf', 'a=b', 600, 400, 'myWin', 'resizeable=no,location=no')">
// used by G Coupe NavTeq Traffic Key Feature
function popExtSwf(swfName, querystr, width, height, title, params){
  var features = "";
  var myurl = '/popSwf.html?swfname=' + swfName;
  var isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") != -1);

  if (width) {
	var winWidth = width;
	if(isSafari) winWidth += 20;    // hack to enlarge window for Safari
	features += "width=" + winWidth + ",left=" + Math.floor( (screen.width - width) / 2);
	myurl += '&width=' + width;
  }

  if (height) {
	var winHeight = height;
	if(isSafari) winHeight += 20;   // hack to enlarge window for Safari
	features += ",height=" + winHeight + ",top="+Math.floor( (screen.height - height) / 2);
	myurl += '&height=' + height;
  }

  if (querystr) {
	myurl += '&' + querystr;

	var qsSrc = getStringParam(querystr, 'src');
	if (qsSrc != '')
	  myurl += '&Model=' + qsSrc;
  }

  if (title) myurl += '&title=' + escape(title);
  if (params) features += ","+params;
  var winname = name ? name : "infiniti_ext";
  window.open(myurl, winname, features);
}
// Open External swf in new window
// Argument swfName, querystr, width and height are required, the others optional
// Usage: <a href="#" onclick="return popExtSwf('mySwf.swf', 'a=b', 600, 400, 'myWin', 'resizeable=no,location=no')">
// used by G Coupe NavTeq Traffic Key Feature
function popExtSwf(swfName, querystr, width, height, title, params){
  var features = "";
  var myurl = '/popSwf.html?swfname=' + swfName;
  var isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") != -1);

  if (width) {
	var winWidth = width;
	if(isSafari) winWidth += 20;    // hack to enlarge window for Safari
	features += "width=" + winWidth + ",left=" + Math.floor( (screen.width - width) / 2);
	myurl += '&width=' + width;
  }

  if (height) {
	var winHeight = height;
	if(isSafari) winHeight += 20;   // hack to enlarge window for Safari
	features += ",height=" + winHeight + ",top="+Math.floor( (screen.height - height) / 2);
	myurl += '&height=' + height;
  }

  if (querystr) {
	myurl += '&' + querystr;

	var qsSrc = getStringParam(querystr, 'src');
	if (qsSrc != '')
	  myurl += '&Model=' + qsSrc;
  }

  if (title) myurl += '&title=' + escape(title);
  if (params) features += ","+params;
  var winname = name ? name : "infiniti_ext";
  window.open(myurl, winname, features);
}
// Open External swf in new window
// Argument swfName, querystr, width and height are required, the others optional
// Usage: <a href="#" onclick="return popExtSwf('mySwf.swf', 'a=b', 600, 400, 'myWin', 'resizeable=no,location=no')">
// used by G Coupe NavTeq Traffic Key Feature
function popExtSwf(swfName, querystr, width, height, title, params){
  var features = "";
  var myurl = '/popSwf.html?swfname=' + swfName;
  var isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") != -1);

  if (width) {
	var winWidth = width;
	if(isSafari) winWidth += 20;    // hack to enlarge window for Safari
	features += "width=" + winWidth + ",left=" + Math.floor( (screen.width - width) / 2);
	myurl += '&width=' + width;
  }

  if (height) {
	var winHeight = height;
	if(isSafari) winHeight += 20;   // hack to enlarge window for Safari
	features += ",height=" + winHeight + ",top="+Math.floor( (screen.height - height) / 2);
	myurl += '&height=' + height;
  }

  if (querystr) {
	myurl += '&' + querystr;

	var qsSrc = getStringParam(querystr, 'src');
	if (qsSrc != '')
	  myurl += '&Model=' + qsSrc;
  }

  if (title) myurl += '&title=' + escape(title);
  if (params) features += ","+params;
  var winname = name ? name : "infiniti_ext";
  window.open(myurl, winname, features);
}
// Open External swf in new window
// Argument swfName, querystr, width and height are required, the others optional
// Usage: <a href="#" onclick="return popExtSwf('mySwf.swf', 'a=b', 600, 400, 'myWin', 'resizeable=no,location=no')">
// used by G Coupe NavTeq Traffic Key Feature
function popExtSwf(swfName, querystr, width, height, title, params){
  var features = "";
  var myurl = '/popSwf.html?swfname=' + swfName;
  var isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") != -1);

  if (width) {
	var winWidth = width;
	if(isSafari) winWidth += 20;    // hack to enlarge window for Safari
	features += "width=" + winWidth + ",left=" + Math.floor( (screen.width - width) / 2);
	myurl += '&width=' + width;
  }

  if (height) {
	var winHeight = height;
	if(isSafari) winHeight += 20;   // hack to enlarge window for Safari
	features += ",height=" + winHeight + ",top="+Math.floor( (screen.height - height) / 2);
	myurl += '&height=' + height;
  }

  if (querystr) {
	myurl += '&' + querystr;

	var qsSrc = getStringParam(querystr, 'src');
	if (qsSrc != '')
	  myurl += '&Model=' + qsSrc;
  }

  if (title) myurl += '&title=' + escape(title);
  if (params) features += ","+params;
  var winname = name ? name : "infiniti_ext";
  window.open(myurl, winname, features);
}
// Open External swf in new window
// Argument swfName, querystr, width and height are required, the others optional
// Usage: <a href="#" onclick="return popExtSwf('mySwf.swf', 'a=b', 600, 400, 'myWin', 'resizeable=no,location=no')">
// used by G Coupe NavTeq Traffic Key Feature
function popExtSwf(swfName, querystr, width, height, title, params){
  var features = "";
  var myurl = '/popSwf.html?swfname=' + swfName;
  var isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") != -1);

  if (width) {
	var winWidth = width;
	if(isSafari) winWidth += 20;    // hack to enlarge window for Safari
	features += "width=" + winWidth + ",left=" + Math.floor( (screen.width - width) / 2);
	myurl += '&width=' + width;
  }

  if (height) {
	var winHeight = height;
	if(isSafari) winHeight += 20;   // hack to enlarge window for Safari
	features += ",height=" + winHeight + ",top="+Math.floor( (screen.height - height) / 2);
	myurl += '&height=' + height;
  }

  if (querystr) {
	myurl += '&' + querystr;

	var qsSrc = getStringParam(querystr, 'src');
	if (qsSrc != '')
	  myurl += '&Model=' + qsSrc;
  }

  if (title) myurl += '&title=' + escape(title);
  if (params) features += ","+params;
  var winname = name ? name : "infiniti_ext";
  window.open(myurl, winname, features);
}

