<!--
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_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 createRequestObject() 
					{
						var ro;
						var browser = navigator.appName;
						if(browser == "Microsoft Internet Explorer")
							ro = new ActiveXObject("Microsoft.XMLHTTP");
						else
							ro = new XMLHttpRequest();
						return ro;
					}

					var http = createRequestObject();
			    

					function sndReq(action) 
					{	
						//alert(action);
						http = createRequestObject();
						http.open('get', action);
						http.onreadystatechange = handleResponse;
						http.send(null);
					}

					function handleResponse() 
					{
						if(http.readyState == 4){
	   						var response = http.responseText;
	   						//alert(response);
							if (response.substr(0, 7) == 'Models:')
								fillModels(response.substring(7));
							if (response.substr(0, 6) == 'Years:')
								fillYears(response.substring(6));
							if (response.substr(0, 5) == 'Year:')
								fillURL(response.substring(5));
							if (response.substr(0, 7) == 'Basket:')
								fillBasket(response.substring(7));

						}
					}
					
					function fillURL(str)
					{
						s = str.split('#');
						document.getElementById('hidURL' + s[1]).value = s[0];			
						document.getElementById('btnGo' + s[1]).src = '/images/menu/go_btn.gif';	
						
					}
					
					function fillYears(str)
					{
						//alert(str);
						s = str.split('#');
						document.getElementById('hidURL' + s[1]).value = '';
						document.getElementById('btnGo' + s[1]).src = '/images/menu/go_btn_disabled.gif';	
						var drpYears = document.getElementById('drpYear' + s[1]);
						drpYears.options.length = 0;
						
						var opts = s[0].split('~');
						drpYears.options[drpYears.length] = new Option('Select...','-1');
						for (i in opts)
						{
							if (opts[i] != '')
							{
								v = opts[i].split('|');
								drpYears.options[drpYears.length] = new Option(v[1],v[0]);
							}
						}
					}
					
					function fillModels(str)
					{
						//alert(str);
						s = str.split('#');
						document.getElementById('hidURL' + s[1]).value = '';
						document.getElementById('btnGo' + s[1]).src = '/images/menu/go_btn_disabled.gif';	
						
						
						var drpYears = document.getElementById('drpYear' + s[1]);
						drpYears.options.length = 0;
						drpYears.options[drpYears.length] = new Option('Select...','-1');
						
						var drpModels = document.getElementById('drpModel' + s[1]);
						drpModels.options.length = 0;
						
						var opts = s[0].split('~');
						drpModels.options[drpModels.length] = new Option('Select...','-1');
						for (i in opts)
						{
							if (opts[i] != '')
							{
								v = opts[i].split('|');
								drpModels.options[drpModels.length] = new Option(v[1],v[0]);
							}
						}
					}

function loadflash(id, file, width, height, flashvars)
{
        var s = '<OBJECT id="'+ id +'" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '
		+ '	height="' + height + '" width="' + width + '" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
		+ '		VIEWASTEXT> '
		+ '		<PARAM NAME="_cx" VALUE="25268"> '
		+ '		<PARAM NAME="_cy" VALUE="15081"> '
		+ '		<PARAM NAME="FlashVars" VALUE="' + flashvars + '"> '
		+ '		<PARAM NAME="Movie" VALUE="' + file + '"> '
		+ '		<PARAM NAME="Src" VALUE="' + file + '"> '
		+ '		<PARAM NAME="WMode" VALUE="Window"> '
		+ '		<PARAM NAME="Play" VALUE="-1"> '
		+ '		<PARAM NAME="Loop" VALUE="-1"> '
		+ '		<PARAM NAME="Quality" VALUE="High"> '
		+ '		<PARAM NAME="SAlign" VALUE=""> '
		+ '		<PARAM NAME="Menu" VALUE="-1"> '
		+ '		<PARAM NAME="Base" VALUE=""> '
		+ '		<PARAM NAME="AllowScriptAccess" VALUE="Always"> '
		+ '		<PARAM NAME="Scale" VALUE="ShowAll"> '
		+ '		<PARAM NAME="DeviceFont" VALUE="0"> '
		+ '		<PARAM NAME="EmbedMovie" VALUE="0"> '
		+ '		<PARAM NAME="SWRemote" VALUE=""> '
		+ '		<PARAM NAME="MovieData" VALUE=""> '
		+ '		<PARAM NAME="SeamlessTabbing" VALUE="1"> '
		+ '		<PARAM NAME="Profile" VALUE="0"> '
		+ '		<PARAM NAME="ProfileAddress" VALUE=""> '
		+ '		<PARAM NAME="ProfilePort" VALUE="0"> '
		+ '		<PARAM NAME="wmode" VALUE="transparent"> '
		+ '		<embed  '
		+ '	src="' + file + '" quality="high" width="' + width + '"  '
		+ '	height="' + height + '" name="' + id + '" align="middle"  '
		+ '	allowScriptAccess="always" FlashVars="' + flashvars + '"  '
		+ '	type="application/x-shockwave-flash"  '
		+ '	pluginspage="http://www.macromedia.com/go/getflashplayer" /> '
		+ '		</OBJECT> '
		
		document.write(s)
}

function Show2ndSkin()
{
	window.open('/2ndSkin/RG_2min_lowQlty.htm', null, 'height=245, width=420, status=0, location=0, scroll=0');
}
//-->