/**********************************************
* Define Navigation
***********************************************/
var tabName = new Array();
var tabURL = new Array();
tabName[0] = "Home";
tabURL[0] = "index.html";
tabName[1] = "Reservations/Quotes";
tabURL[1] = "ReservationType.html";
tabName[2] = "Airport";
tabURL[2] = "Airport.html";
tabName[3] = "Corporate";
tabURL[3] = "Corporate.html";
tabName[4] = "Weddings";
tabURL[4] = "Wedding.html";
tabName[5] = "Wine Country";
tabURL[5] = "Wine.html";
tabName[6] = "Our Fleet";
tabURL[6] = "OurFleet.html";
tabName[7] = "Terms & Conditions";
tabURL[7] = "TermsConditions.html";
tabName[8] = "About Us";
tabURL[8] = "AboutUs.html";
tabName[9] = "Contact Us";
tabURL[9] = "ContactUs.html";
tabName[10] = "Links";
tabURL[10] = "Links.html";
tabName[11] = "Feedback";
tabURL[11] = "Feedback.html";
tabName[12] = "Sonoma Wine Tours";
tabURL[12] = "Sonoma_wine_tours.html";
tabName[13] = "Napa Wine Tours";
tabURL[13] = "Napa_wine_tours.html";
tabName[14] = "San Francisco Limo";
tabURL[14] = "San_Francisco_Limo.html";
tabName[15] = "Prom Limousine";
tabURL[15] = "Prom_Limousine.html";

var today = new Date();
var month = today.getMonth() + 1;
var day = today.getDate();
var year = today.getFullYear();

/**********************************************
* Create an image map
***********************************************/
document.write('<map name="reservation">');
document.write('<area shape="rect" coords="395,0,565,14" href="ReservationType.html">');
document.write('</map>');


/**********************************************
* Print Header
***********************************************/
function printHeader(path) {
	var returnVal = '<td>'+
					'<a href="'+ path +'index.html">'+
					'<img src="'+ path +'images/header.gif" alt="" width="800" height="125" border="0">'+
					'</a>'+
					'</td>';
	document.write(returnVal);
}

/**********************************************
* Print footer
***********************************************/
function printFooter(path) {
	document.write('<table width="100%" cellspacing="0" cellpadding="0">');
	document.write('<tr align="center">');
	document.write('<td class="text1">');
    document.write('<hr width="100%" noshade size="1" color="#929292">');
    document.write('<a href="'+ path +'index.html" class="footer">Home</a> | ');
	document.write('<a href="'+ path +'TermsConditions.html" class="footer">Terms & Conditions</a> | ');
    document.write('<a href="'+ path +'AboutUs.html" class="footer">About us</a> | ');
	document.write('<a href="'+ path +'ContactUs.html" class="footer">Contact us</a> | ');
    document.write('<a class="footer" href="javascript:void(0);" onClick="javascript:window.external.AddFavorite(\'http://www.preferred-limo.com\',\'Preferred Limousines - best fares on limo service\');">Bookmark us</a> | ');
	document.write('<a href="'+ path +'Links_R.html" class="footer">Resources</a>');
	document.write('</td>');
  	document.write('</tr>');
}

/**********************************************
* Print copy right information
***********************************************/
function copy_Right() {
	document.write('<div class="footer">Copyright &copy;'+ year +' Preferred Limousines Inc.</div>');
}

/**********************************************
* Create Navigation Tabs
***********************************************/
function buildNavigation(selectedTab, path) {
	var returnVal = "";
	var row = '<td bgcolor="#000000"><img src="'+ path +'images/spacer.gif" width="1"></td>';
	var spacer = '<tr>'+ row +'<td height="3"></td>'+ row +'</tr>';
	
	for ( i=0; i < tabName.length; i++ ) {
	
		if ( selectedTab == tabName[i] ) {
			returnVal += '<tr bgcolor="#ffffcc">'+ row +
						 '<td> &nbsp;&nbsp; <a href="'+ path + tabURL[i] +'" class="nav-text-sel"><b>'+ tabName[i] +'</b></a></td>'+
						 row +'</tr>'+ spacer;
		} else {
			returnVal += '<tr>'+ row +
						 '<td bgcolor="#EFEFEF"> &nbsp;&nbsp; <a href="'+ path + tabURL[i] +'" class="nav-text">'+ tabName[i] +'</a></td>'+
						 row +'</tr>'+ spacer;
		}
		
	}
	
	document.write(returnVal);
}


/***************************************************************************
* Trim function will remove spaces around the string
****************************************************************************/
function trim(str) {
	var strLen = str.length;
	// Trim spaces at the left side of the string -> LTrim()
	while ( str.substring(0, 1) == " " ) {
		str = str.substring(1, strLen);
	}
	return str;
}

/***************************************************************************
*
****************************************************************************/
function NLAImages() {
	var returnVal = "";
	returnVal = '<img src="images/nla.jpg"> <img src="images/spacer.gif" width="30">';
	returnVal += '<img src="images/internetcertifiedicon_1.jpg"> <img src="images/spacer.gif" width="30">';
	returnVal += '<img src="images/acic.jpg">';
	document.write(returnVal);
}

/***************************************************************************
* Display Holiday Image
****************************************************************************/
function HolidayImg() {
	var img = "";
	img = '<table width="190" border="0" cellpadding="0" cellspacing="0">' +
			'<tr align="center">' +
			'<td><img src="images/Holidays/image1.jpg" border="0"></td>' + // width="150"></td>' +
			'</tr>' +
			'</table>';
	document.write(img);
}
