// **********************************************************************************
// NOLONGER USED - IT IS NOW IN THE MASTER>DWT FILE AS THIS SEEMS MORE RELIABLE
// **********************************************************************************

// Here lives all my JavaScript code
// Some of it makes use of JQuery so you typically need these two references on any page (typically done in master.dwt)
//		<!-- Include JQuery -->
//		<script type="text/javascript" src="/JQuery/jquery-1.10.1.min.js"></script>
//		<!-- Include MyJavascript -->
//		<script type="text/javascript" src="/MyJavaScript/MyJavaScript.js"></script>


// ****************************
// Google Analytics JavaScript
// ****************************

//  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
//  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
//  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
//  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
//  ga('create', 'UA-54549414-1', 'auto');
//  ga('require', 'displayfeatures');
//  ga('require', 'linkid', 'linkid.js');
//  ga(‘set’, ‘&uid’, {{USER_ID}}); // Set the user ID using signed-in user_id.
//  ga('send', 'pageview');







// ****************************
// BrowserBack
// Does the same as the user pressing the bowser's back button
// ****************************
function BrowserBack()
{
	//alert("Browser Back Press");
   	window.history.back();
}


// ****************************
// EmailEventDetails
// Sends an email
// ****************************
function EmailEventDetails(myEmailAddress)
{
	mail_str = "mailto:";
	mail_str += myEmailAddress;
	mail_str += "?subject=";
	mail_str += "Checkout this great house build site I found... CarnationConstruction.com";
    mail_str += "&body=";
    mail_str += "There is lots of useful information at http://www.Carnation Construction.com" 
    mail_str += "Regards.  ";
    location.href = mail_str;
}


// ****************************
// PageReady
// Put functions in here that must not happen until the DOM has finished loading
// ****************************
$( document ).ready(function() {
	// alert("Page Ready");
	
	// Horizontal menus
	$("#JqueryMenu").navPlugin();
	$("#JqueryMenu2").navPlugin({
		'itemWidth': 220,
		'itemHeight': 30,
		'navEffect': "fade",
		'speed': 500
	});	// End Horizontal menus
	
	// Parallax
	jQuery('#parallax .parallax-layer').parallax({
		mouseport: jQuery('#parallax')
	});	// End Parallax

	
	//$('body').hide().fadeIn(3000);

	//$('#zoom-slider').prepend('<img id="theImg" src="PEE_WII_700.png" />')

});	// End of Ready