function preload_Buttons(allImages) {
		//alert (preload_Buttons.arguments.length);
        if (document.images)
        {
                my_buttons = new Array();
                        for (x = 0;x < preload_Buttons.arguments.length; x++)
                        {
                                 my_buttons[x] = preload_Buttons.arguments[x];
                                }

        buttonslist = new Array()

        for(y = 0; y < my_buttons.length; y++)
                {
                buttonslist[y] = new Image;
                buttonslist[y].src = '/secure/images/' + my_buttons[y] + 'r.gif';	
		//alert(buttonslist[y].src);
                }
        }

}

preload_Buttons('home','vehicles','milestones','logos','executive','contacts','privacy','webmaster','amanti','sorento','sedona','optima','spectra4','spectra5','rio','riocinco','sorentosurf','cincoswim','slice','corporate');

function button_Over (type) {

	if (document.images)
                {
                document.images[type].src='/secure/images/' + type + 'r.gif';
                return

                }

}


function button_Out (type) {

	if (document.images)
                {
                document.images[type].src='/secure/images/' + type +'.gif';
                return

                }

}

function button_Over2 (type) {

	if (document.images)
                {
                document.images[type].src='/secure/images/' + type + 'r.gif';
                return

                }

}


function button_Out2 (type) {

	if (document.images)
                {
                document.images[type].src='/secure/images/' + type +'.gif';
                return

                }

}


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',noresize'
win = window.open(mypage,myname,settings)
win.opener = self;
}

// Added Dec. 15th, 2005 For use with creating popup windows to Flash Streaming Video - S. Shelton
// Changed by Hayk 05/25/06. The new 'streampath' parameter was added
// Changed by Hayk 07/25/06. The new 'controls' parameter was added
// Changed by Gio 08/01/06. Added anticache to the page query to prevent Flash Object missalignment.
	function videoPopUp(page,winTitle,w,h,scroll,toolbar, stream, streampath, title, controls, wbuffer, hbuffer){
		// Get Vars for PHP/Flash Use
		page = page + "?anticache="+timeStamp()+"&stream=" + stream + "&streampath=" + streampath + "&title=" + title + "&controls=" + controls + "&W=" + w + "&H=" + h + "&wbuffer=" + wbuffer + "&hbuffer=" + hbuffer;
		// Lower Third Screen Position
		var vidw= (wbuffer!=undefined) ? (Number(w)+ wbuffer) : Number(w);
		var vidh= (hbuffer!=undefined) ? (Number(h)+ hbuffer) : Number(h);
		LeftPosition = (screen.width) ? (screen.width-vidw)/1.5 : 0;
		TopPosition = (screen.height) ? (screen.height-vidh)/1.5 : 0;
		// Window Settings
		settings = 'height='+vidh+',width='+vidw+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no,toolbar='+toolbar;
		popupwin = window.open(page,winTitle,settings);
		popupwin.focus();
	}
//

// Added by Gio: 07-27-06
// replaces status txt with a custom txt, or hides it depending on use
// usage: <a href="google.com" onMouseover="return customstatus()">google</a>
// msg: custom message wrapped in '', empty string should be empty
// t:  custom time to offset function call
function customstatus(msg,t){
	msg=(msg==undefined)?'':msg;
	t=(t==undefined)?0:t;
	setTimeout("window.status='"+msg+"'",t)
	return true
}
// create an anticaching timeStamp (unique integer returned)
function timeStamp(){
	var t=new Date().getTime();
	return t;
}
//
