function allblur() {
	for (i = 0; i < document.links.length; i++)
	document.links[i].onfocus = document.links[i].blur;
}


//select location
function change(val){
	if (val != ""){
		var win = window.open(val,'_blink');
		win.focus();
	}
}


//list box location
function goURL(URL){ 
    if (URL != 0){
        location.href=URL;
    }
}
//quick menu		
//Sliding Menu
var nAdCornerWidthc = 75;
var nAdCornerHeightc = 150;
var nAdCornerMarginXc = 2;
var nAdCornerMarginYc = 4;
var nScrollBarWidthc	= 16;
var nScrollBarHeightc = 16;
var nInterval = 200;
var TempYc = 0;
var TempHeightc = 0;
//var idAdCornerc="";
function topc()
{
	nVersion = parseInt (navigator.appVersion);
	if (navigator.appName == "Microsoft Internet Explorer") {
		isMSIE = 1;
		if (navigator.userAgent.indexOf ("MSIE 5") != -1) { nVersion = 5; }
		TempHeightc = document.body.scrollHeight;
	} else {
		isMSIE = 0;
		if (nVersion >= 4) { window.captureEvents (Event.MOUSEMOVE); }
	}

	if (nVersion >= 4) { window.setInterval ("TopMovec();", nInterval); }
}

function resizeWindowc()
{
  TempHeightc = document.body.scrollHeight;
}


function TopMovec()
{
	if (isMSIE) {
		nAdCornerOriginXc = 440;

		if( document.body.scrollTop > 130 ) {
		  TempYc = document.body.scrollTop+50;
		}
		else
		  TempYc = 130;

		if( TempYc < TempHeightc - (130 + 3) ){}
		 // idAdCornerc.style.pixelTop = TempYc;
	} else {//idAdCornerc.style.pixelTop = 0;
	}
}

//onover
{
navioff = new Array()
navion = new Array()

	for (var i = 1; i<=40; i++){
		navioff[i] = new Image();
		navion[i] = new Image();
		
		if(i<10){
			navioff[i].src = "/Common/img/common/icon_1.GIF"
			navion[i].src = "/Common/img/common/icon_on1.GIF"		
		}else{
			navioff[i].src = "/Common/img/common/icon_1.GIF"
			navion[i].src = "/Common/img/common/icon_on1.GIF"		
		}		
	}
}

function msover(num){
		document.images["img" + num].src = navion[num].src;
}

function msout(num){
		document.images["img" + num].src = navioff[num].src;
}



/*** quick menu link ***/

/* atoz */
function PC1() {
	location.href="/common/html/showroom/passenger/atos/focus.html";
}

/* atoz prime */
function PC2() {
	location.href="/common/html/showroom/passenger/atos_prime/focus.html";
}

/* getz */
function PC3() {
	location.href="/common/html/showroom/passenger/getz/focus.html";
}

/* accent */
function PC4() {
	location.href="/common/html/showroom/passenger/accent/focus.html";
}

/* elantra */
function PC5() {
	location.href="/common/html/showroom/passenger/elantra/focus.html";
}

/* coupe */
function PC6() {
	location.href="/common/html/showroom/passenger/coupe/focus.html";
}

/* sonata */
function PC7() {
	location.href="/common/html/showroom/passenger/sonata/focus.html";
}

/* xg */
function PC8() {
	location.href="/common/html/showroom/passenger/xg/focus.html";
}

/* centennial */
function PC9() {
	location.href="/common/html/showroom/passenger/centennial/focus.html";
}

/* terracan */
function rv1() {
	location.href="/common/html/showroom/recreational/terracan/focus.html";
}

/* santafe */
function rv2() {
	location.href="/common/html/showroom/recreational/santafe/focus.html";
}

/* tucson */
function rv3() {
	location.href="/common/html/showroom/recreational/tucson/focus.html";
}

/* h-1 */
function rv4() {
	location.href="/common/html/showroom/recreational/h_1/focus.html";
}

/* galloper */
function rv5() {
	location.href="/common/html/showroom/recreational/galloper/focus.html";
}

/* trajet */
function rv6() {
	location.href="/common/html/showroom/recreational/trajet/focus.html"
}

/* matrix */
function rv7() {
	location.href="/common/html/showroom/recreational/matrix/focus.html";
}

/* global network */
function quick_network() {
	window.open('http://global.hyundai-motor.com/index.aspx','','');
}

/* ir */
function quick_ir() {
	window.open('http://ir.hyundai-motor.com/eng/index.html','','');
}