/* ---------------- ·Ñ¿À¹ö ----------------*/

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/*Images Popup----*/
function popup(models){
	Window  =  window.open('/cars/cars_img_popup.asp?models='+models,'popup','scrollbars=no,resizable=no,width=669,height=590,left=10,top=10'); 
}

function popup1(ownership){
	Window  =  window.open('/ownership/ownership_img_popup.asp?ownership='+ownership,'popup','scrollbars=no,resizable=no,width=669,height=590,left=10,top=10'); 
}

function popup2(about_jaguar){
	Window  =  window.open('/about_jaguar/about_jaguar_img_popup.asp?about_jaguar='+about_jaguar,'popup','scrollbars=no,resizable=no,width=669,height=590,left=10,top=10'); 
}

function popup3(collection){
	Window  =  window.open('/about_jaguar/collection_img_popup.asp?collection='+collection,'popup','scrollbars=no,resizable=no,width=669,height=590,left=10,top=10'); 
}


/*Wallpaper popup----*/
function wallpaper_popup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

/*Gallery large view popup----*/
function gallery_popup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

/*jaguar films popup
<a href="javascript:films_popup('films_popup', '/about_jaguar/link_popup.asp', 100, 100, 669, 400, 0, 0, 0, 0, 0)" target="_self">----*/
function films_popup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

/*Link text popup
<a href="javascript:link_popup('link_popup', '/cars/link_popup.asp', 100, 100, 669, 400, 0, 0, 0, 0, 0)" target="_self">----*/
function link_popup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

/*popup_contact us----*/
function popup_contactus(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

/*popup_design_your_jaguar----*/
function popup_design_your_jaguar(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


/*ºÎ¸ðÃ¢À¸·Î ¸µÅ©*/
function navigateParent (URL)
{ 
	if (!window.opener.closed) 
	{
		parent.opener.location.href = URL;
		self.close();
	}
}

/* ÇÁ¸°Æ® È­¸é ¸¸µé±â */
function jaguar_print(url,type)
{
	url = "/common/print.asp?prt_name=" + url + "&type=" + type;
	if ( type == "gallery")
	{
		window.open(url, 'Print', 'left=10,top=10,width=649,height=600,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no');	
	}
	else
	{
		window.open(url, 'Print', 'left=10,top=10,width=625,height=600,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no');	
	}
}

/* Áßº¹¾ÆÀÌµð Ã¼Å©ÇÏ±â ÆË¾÷ */
function id_check_pupup(url)
{
	window.open(url, 'id_check', 'left=300,top=300,width=470,height=270,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no');	
}

/* ¿ìÆí¹øÈ£ Ã£±â ÆË¾÷ */
function zipcode_pupup(url)
{
	window.open(url, 'zipcode', 'left=300,top=300,width=470,height=270,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no');	
}


/* È­¸é °¡¿îµ¥¿¡ ÆË¾÷
popc('¾Ð¾÷ÁÖ¼Ò','ÆË¾÷ÀÌ¸§', °¡·Î, ¼¼·Î, '½ºÅ©·Ñ¿©ºÎ'); */
function popc(Address, name, w, h, scroll){
	var scr = (scroll=="") ? "yes" : "no";
	var popwindow = null;
	var LeftPosition = (screen.width) ? (screen.width-w)/2:0;
	var TopPosition = (screen.height) ? (screen.height-h)/2:0;   
	var settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scr + ',resizable=yes'
	popwindow = window.open(Address, name, settings);
	popwindow.focus();
}

/* ÁÂÇ¥ ¹Þ´Â ÆË¾÷
pop('¾Ð¾÷ÁÖ¼Ò','ÆË¾÷ÀÌ¸§', °¡·Î, ¼¼·Î, '½ºÅ©·Ñ¿©ºÎ'); */
function pop(Address, name, w, h, l, t, scroll){
	var scr = (scroll=="") ? "yes" : "no";
	var left = (l=="") ? 0 : l;
	var top = (t=="") ? 0 : t;
	var popwindow = null;
	var settings = 'height=' + h + ',width=' + w + ',top=' + top + ',left=' + left + ',scrollbars=' + scr + ',resizable=yes'
	alert(settings)
	popwindow = window.open(Address, name, settings);
	popwindow.focus();
}











<!--
function MM_swapImgRestore() {
	//v3.0
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {
	//v3.0
	var d=document;
	if(d.images){
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){
				d.MM_p[j]=new Image;
			d.MM_p[j++].src=a[i];
		}
	}
}

function MM_findObj(n, d) {
	//v4.01
	var p,i,x;
	if(!d) d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n);
		return x;
}

function MM_swapImage() {
	//v3.0
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){
			document.MM_sr[j++]=x;
		if(!x.oSrc) x.oSrc=x.src;
		x.src=a[i+2];
	}
}


//ÆË¾÷¶ç¿ì±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//ÁÂÃø ¸Þ´º È°¼º ¿©ºÎ
function styleLeft(val){
	var menu = 'menu'+val;
	if (val == 0)
	{

	}
	document.getElementById(menu).style.display="block";

}

//self.closeÈÄ ºÎ¸ðÆäÀÌÁö redirection
function pop_link(url){
 opener.document.location.href=url;
 self.close();
}




// Google analytics
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19900208-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
//-->
