
function home() {
	document.location.href = "main.html";
}
function gallery(m) {
	if (m == 0) {
		document.location.href = "photo.html";	
	}
	else if (m == 1) {
		document.location.href = "video.html";	
	}
	else  {
		document.location.href = "photo.html";	
	}
}
function receiveupdates() {
	popfix('http://www.hyundaiusa.com/GlobalCustomerOptIn/opt_in_nuvis.aspx?PC=2115','',500,600,1);
}

function blueDriver_show(mdivStr) {
	deemed = document.createElement("div");
	deemed.className = "filterAlpha";
	document.getElementsByTagName("body")[0].appendChild(deemed);
	document.getElementById(mdivStr).className = mdivStr+"Wrap";
	document.getElementById(mdivStr).style.display = "block";
}
function blueDriver_hide(mdivStr) {
	document.getElementsByTagName("body")[0].removeChild(deemed);
	document.getElementById(mdivStr).style.display = "none";
}

function popfix(pop,tname,width,height,flag)
{
  var url = pop;
  var wd = width;
  var he = height;
  var tn = tname;

  if ((window.navigator.userAgent.indexOf("SV1") != -1) || (window.navigator.userAgent.indexOf("MSIE 7") != -1)) {
    //wd = wd + 8;
    //he = he + 10;
        
    if (flag == "0" )    {  
      window.open(url,tn,"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd + ",height=" + he + ";");  }
    else  {  
      window.open(url,tn,"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd + ",height=" + he + ";");  }
  }
  
  else {
  if (flag == "0" )    {  
    window.open(url,tn,"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";");  }
  else  {  
    window.open(url,tn,"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";");  }  
  }
}