//Preload Images
/*
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];}}
}
//Rollover images
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

function 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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function showHideLayers() { //v6.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}

  // This function retrieves the domain name of the document's URL
        function getDomain()
        {
            strURL = document.URL;
            strDomain = strURL.substring(strURL.indexOf(".") + 1, strURL.length);
            return strDomain;
        }

//just a standard rollover script

if (document.images) {  //determines whether or not rollovers are supported
	tm1on = new Image ();
	tm1on.src = "http://www.autosalonusa.com/images/header_on_02.jpg";
	tm1off = new Image ();
	tm1off.src = "http://www.autosalonusa.com/images/header_02.jpg";

	tm2on = new Image ();
	tm2on.src = "http://www.autosalonusa.com/images/header_on_03.jpg";
	tm2off = new Image ();
	tm2off.src = "http://www.autosalonusa.com/images/header_03.jpg";

	tm3on = new Image ();
	tm3on.src = "http://www.autosalonusa.com/images/header_on_04.jpg";
	tm3off = new Image ();
	tm3off.src = "http://www.autosalonusa.com/images/header_04.jpg";

	tm4on = new Image ();
	tm4on.src = "http://www.autosalonusa.com/images/header_on_05.jpg";
	tm4off = new Image ();
	tm4off.src = "http://www.autosalonusa.com/images/header_05.jpg";
	
	}

function rollover(tmName) {
	if (document.images) {
	document[tmName].src = eval(tmName + "on.src");
	}
}
	
function rolloff(tmName) {
	if (document.images) {
	document[tmName].src = eval(tmName + "off.src");
	}
}
*/
//popup windows

function popPage(url_add)
{
window.open(url_add,"Popup","height=800,width=800,location=no,scrollbars=yes,menubar=no,toolbar=no,resizable=yes,status=no");
}
//charts gallery
/*		function StartImage (ind)
		{
			document.cookie = "IMG="+ind;
			w = 600+5*2+5+20;
			h = 400+5*2+90;
			imgwindow = window.open("image0.html","imgwindow"," scrollbar=no, toolbar=no, fullscreen=no, resizable=yes,width="+w+",height="+h);
			imgwindow.focus();
		}
	
	
		function Start ()
		{
			add=2;
			if (document.all.cels.length)
			{
				for (i=0; i < document.all.cels.length; i++)
				{
					document.all.cels[i].width = 100 + 5*2+add;
					document.all.cels[i].height = 100 + 5*2+add;
				}
			}

			if (document.all.cels2.length)
			{
				for (i=0; i < document.all.cels2.length; i++)
				{
					document.all.cels2[i].width = 100 + 5*2;
					//document.all.cels[i].height = 100 + 5*2;
				}
			}

		}

//Link Preview
function showPreview(url, border, width, height, desc)
{
  var border = typeof(border) == "undefined" ? 0   : border;
  var width  = typeof(width)  == "undefined" ? 8 : width;
  var height = typeof(height) == "undefined" ? 8 : height;
  var desc   = typeof(desc)   == "undefined" ? ""  : desc;
  var tmp = '<img src="' + url + '" border="' + border + '" width="' + width + '" height="' + height + '">&nbsp;' + desc;
  document.getElementById("preview").innerHTML = tmp;
}
function clearPreview()
{
var tmp = "<img src='http://www.autosalonusa.com/images/bullet_p.gif' border='0' alt='' />&nbsp;Please move your mouse over each category on the left for more details.<br /><br />You will need to have <b>Adobe</b>&reg; <b>Reader</b> (free download) installed on your computer in order to see the samples. Also you will need the <b>Adobe&reg;</b> (former Macromedia&reg;) <b>Flash Player</b> (free download) in order to view the Flash Demos below. For your convenience we have included both links to download the free software.<br /><br />Thank you.";
  document.getElementById("preview").innerHTML = tmp;
}
function showPreview1(url, border, width, height, desc)
{
  var border = typeof(border) == "undefined" ? 0   : border;
  var width  = typeof(width)  == "undefined" ? 8 : width;
  var height = typeof(height) == "undefined" ? 8 : height;
  var desc   = typeof(desc)   == "undefined" ? ""  : desc;
  var tmp = '<img src="' + url + '" border="' + border + '" width="' + width + '" height="' + height + '">&nbsp;' + desc;
  document.getElementById("preview1").innerHTML = tmp;
}
function clearPreview1()
{
var tmp = "<img src='http://www.autosalonusa.com/images/bullet_p.gif' border='0' alt='' />&nbsp;Please move your mouse over each category on the left for more details.<br /><br />These reports are samples of what you can have automated to run on your desktops. They are the output of excel-built applications that can take your existing fund data and display it in an array of customized reports. HedgeForm can also enable your existing reports to update on the fly as you change or enter new performance. You will need to have Adobe&reg; Reader installed to view these samples.<br /><br />Thank you.";
  document.getElementById("preview1").innerHTML = tmp;
}
function showPreview2(url, border, width, height, desc)
{
  var border = typeof(border) == "undefined" ? 0   : border;
  var width  = typeof(width)  == "undefined" ? 8 : width;
  var height = typeof(height) == "undefined" ? 8 : height;
  var desc   = typeof(desc)   == "undefined" ? ""  : desc;
  var tmp = '<img src="' + url + '" border="' + border + '" width="' + width + '" height="' + height + '">&nbsp;' + desc;
  document.getElementById("preview2").innerHTML = tmp;
}
function clearPreview2()
{
var tmp = "<img src='http://www.autosalonusa.com/images/bullet_p.gif' border='0' alt='' />&nbsp;Please move your mouse over each category on the left for more details.<br /><br />This section contains examples of dynamic dashboards that can be incorporated into a web presentation, a PowerPoint&reg; document, or even a PDF document. HedgeForm can also create online accounts for your investors with each client having the rights to view only their own investments. You will need to have Adobe&reg; Flash player installed to view the interactive dashboards.<br /><br />Thank you.";
  document.getElementById("preview2").innerHTML = tmp;
}
*/