// JavaScript Document
var defaultGalleryId = null;
var showContactInfoAll = false; // toggles indicating to show all contact information or single
var defaultContactId = null; // manually sets the contact information to retrieve
var defaultVenueId = null; // set the venue whose details you want to see manually
var loginURL = '/tsv7/register'; // set the url to the login or register user to redirect users to login or register
var emailSubject = null; // set the default text to use for email subject
var maxComments = 8; // the maximum amount to display
var commentsShowAll = false; // toggles list to show all comments or maxComments
// we want a random background thing going on right now so set this 
var showRndBG = false; // invokes the show random background image function
var noBG = 0;  // the # of bkgrd.jpg used for this page
var map = null;
var defaultURL = '/newrestaurants';
// ratings widget
var allowRatingOnce = true; // indicated wehter the rating is allowed to take place
// error messsages to be disabled there are 3 types
var errorMsgs = [];
errorMsgs[0] = 'Error inserting your rating. Please try again'; // usually a server error
errorMsgs[1] = 'You have voted aready'; // person has voted already
errorMsgs[2] = "You need to be logged in to vote"; // user isnt logged in
var successMsg = "Thank you for your vote"; // successful vote
var isReadOnly = false; // indicates that the ratings is allowing votes or not
var ratedId = null; // set the record items whose rating is to be set/ retrieved
window.onload = load;
window.onunload = GUnload;
// email link
var emailSubject = null; // set the default text to use for email subject


// JavaScript Document
function get_randomCssNum()
{
    var ranCssNum= Math.floor(Math.random()*3);
	//var ranCssNum= Math.floor(Math.random()*Number of <strong class="highlight">CSS</strong> you Have);
    return ranCssNum;
}

function getaCss()
{
   var whichCss=get_randomCssNum();

    var cssName=new Array(2)
     // var cssName=new Array(Number of <strong class="highlight">CSS</strong> you Have)
     cssName[0]="<link rel='stylesheet' type='text/css' href='restaurants/includes/hat1.css'>";
     cssName[1]="<link rel='stylesheet' type='text/css' href='restaurants/includes/hat2.css'>";
     cssName[2]="<link rel='stylesheet' type='text/css' href='restaurants/includes/hat3.css'>";   
     cssName[3]="<link rel='stylesheet' type='text/css' href='d.css'>";
     cssName[4]="<link rel='stylesheet' type='text/css' href='e.css'>";
     //I am <strong class="highlight">using</strong> 5 <strong class="highlight">CSS</strong> files in this example. you can add or remove ;)
     //for Add more <strong class="highlight">CSS</strong> just add line like this 
     //cssName[Next Number]="<link rel='stylesheet' type='text/css' href='CSS <strong class="highlight">FILE</strong> URL'>";
  	return cssName[whichCss]
  }
  document.write(getaCss());
