
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var rightNow = new Date();
var todaysDate = dayNames[rightNow.getDay()] + ", " + monthNames[rightNow.getMonth()] + " " + rightNow.getDate() + ", " + rightNow.getFullYear();

var diff = new Date - new Date('2007-09-08');
var diffDays = diff / 1000 / (60 * 60 * 24);
var yearsAgo = Math.floor(diffDays / 365.25);

//var weddingDate = "September 2007"
var weddingDateInfo = "Our Wedding was "+yearsAgo+" years ago";
var footer = "&copy; Copyright Our-Greek-Wedding.co.uk 2007-"+rightNow.getFullYear()+". ALL RIGHTS RESERVED - Site by <a href='http://www.digital-zest.com' target='_blank' title='Website by digital-zest.com'>Digital-Zest.com</a>"

function randomNumber (maxRange) {
	// =================== Return random number ========================
	ranNum = Math.floor(Math.random()*maxRange+1);
	return ranNum;
}

	// ==================== Array Seasons key ==========================
	// 1 =  the filename, 2 = the strap line text, 3 = the ALT text
	// =================================================================
	photoList = new Array (16);
	for (i = 0; i < photoList . length; ++ i)
	photoList [i] = new Array (3);
	photoList [0] [0] = "sm_st-pauls-chapel.jpg"; // the filename
	photoList [0] [1] = "St Pauls Chapel"; //the strap line text
	photoList [0] [2] = "St Pauls Chapel, Lindos, Rhodes"; //the ALT text
	photoList [1] [0] = "sm_acropolis-3column.jpg"; 
	photoList [1] [1] = "Acropolis @ Lindos"; 
	photoList [1] [2] = "Acropolis, Lindos, Rhodes"; 
	photoList [2] [0] = "sm_acropolis.jpg"; 
	photoList [2] [1] = "Acropolis Tower"; 
	photoList [2] [2] = "Acropolis tower, Lindos, Rhodes"; 
	photoList [3] [0] = "sm_acropolis-looking-out.jpg"; 
	photoList [3] [1] = "Acropolis Columns"; 
	photoList [3] [2] = "Acropolis Columns, Lindos, Rhodes"; 
	photoList [4] [0] = "sm_lindos.jpg"; 
	photoList [4] [1] = "Lindos village"; 
	photoList [4] [2] = "Lindos village, Lindos, Rhodes"; 
	photoList [5] [0] = "sm_lindos-at-daytime.jpg"; 
	photoList [5] [1] = "Lindos daytime"; 
	photoList [5] [2] = "Lindos daytime, Lindos, Rhodes"; 
	photoList [6] [0] = "sm_lindos-at-night.jpg"; 
	photoList [6] [1] = "Lindos at night"; 
	photoList [6] [2] = "Lindos at night, Lindos, Rhodes"; 
	photoList [7] [0] = "sm_lindos-bay.jpg"; 
	photoList [7] [1] = "Lindos bay"; 
	photoList [7] [2] = "Lindos bay, Lindos, Rhodes"; 
	photoList [8] [0] = "sm_lindos-mare-resort.jpg"; 
	photoList [8] [1] = "Lindos Mare Resort"; 
	photoList [8] [2] = "Lindos Mare Resort, Lindos, Rhodes"; 
	photoList [9] [0] = "sm_lindos-memories.jpg"; 
	photoList [9] [1] = "Lindos Memories hotel"; 
	photoList [9] [2] = "Lindos Memories hotel, Lindos, Rhodes"; 
	photoList [10] [0] = "sm_st-pauls-bay.jpg"; 
	photoList [10] [1] = "St Pauls Bay"; 
	photoList [10] [2] = "St Pauls Bay, Lindos, Rhodes"; 
	photoList [11] [0] = "sm_st-pauls-bay-chapel.jpg"; 
	photoList [11] [1] = "St Pauls Bay/Chapel"; 
	photoList [11] [2] = "St Pauls Bay/Chapel, Lindos, Rhodes"; 
	photoList [12] [0] = "sm_st-pauls-chapel.jpg"; 
	photoList [12] [1] = "St Pauls Chapel"; 
	photoList [12] [2] = "St Pauls Chapel, Lindos, Rhodes"; 
	photoList [13] [0] = "sm_lindos-lindian-village.jpg"; 
	photoList [13] [1] = "Lindian Village hotel"; 
	photoList [13] [2] = "Lindian Village hotel, Rhodes (4-5 star)"; 
	photoList [14] [0] = "sm_lindos-atrium-palace.jpg"; 
	photoList [14] [1] = "Atrium Palace hotel"; 
	photoList [14] [2] = "Atrium Palace hotel, Rhodes (4-5 star)"; 
	photoList [15] [0] = "sm_lindos-mare-hotel.jpg"; 
	photoList [15] [1] = "Lindos Mare hotel"; 
	photoList [15] [2] = "Lindos Mare hotel, Rhodes (4-5 star"; 

var currentBackGround=randomNumber(photoList.length-1);
var navImgStrap = photoList[currentBackGround][1];
var navImgAlt = photoList[currentBackGround][2];
var navImgStr = "<img src='http://www.our-greek-wedding.co.uk/img/pics/" + photoList[currentBackGround][0] +"' alt='IMG: " + navImgAlt + "' width='128' height='121' />";


function writeOutAds () {
	document.write("<script type='text/javascript'>");
	document.write("google_ad_client = 'ca-pub-5855247064755641';");
	/* OGW side */
	document.write("google_ad_slot = '8997261984';");
	document.write("google_ad_width = 120;");
	document.write("google_ad_height = 240;");
	document.write("</script>");
	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
	
	//var tableName = document.getElementsByTagName("table")[0];
	//var cellName = tableName.getElementsByTagName("tr");
	//cellName.className='fred';
	//document.write("<style>#ads ul li {text-align:left!important;}table.adc tr td {text-align:left!important;}</style>");
	//window.onload = function() 
	//{var xxx=document.getElementById("ads0");
	//xxx.style="text-align:left;";}


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28420777-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();



