// ABIL JavaScript 

// Dependencies:  jQuery, jquery.akrinteractive.abil.js

// alert ('.js' + ' ... ');
$( function () {
	// this is the jQuery Ready function, it runs automatically when the page loads
	// initialize page:
	//$('#pageSliderButton').bind('click', function(event) { alert (' ... ') ;} );
/*
	$('#tabs').tabs();	 // Make the tabs in the div id="tabs"	
	$('#backgroundChanger').heroNavInit( null );	// selected value is ordinal of selected Hero image 
	$('#main .contentHolder').heroImageInit( { ordinal: 1} );	// selected value is ordinal of selected Hero image 
*/

});

// TODO: encapsulate as namespaced object

function homePageHero() {
//	alert('test');	
	//$().setHeroCss("'height':'368px','width':'1000px','background-color':'#777'");
	
}

function greenCardHero() {
	//$().setHeroCss("'height':'368px','width':'1000px','background-color':'#777'");
	// start animation
	//$('#hero-feature').attr('src','/akr/images/gallery/gallery2.jpg');	
	//$('#thumb2').attr('src','/akr/images/gallery/thumb2_over.jpg');	
	//$('.galleryDescription').html('GALLERY DESCRIPTION GOES HERE');	
}


function dumpProps(obj, parent) {
   // Go through all the properties of the passed-in object
   for (var i in obj) {
      // if a parent (2nd parameter) was passed in, then use that to
      // build the message. Message includes i (the object's property name)
      // then the object's property value on a new line
      if (parent) { var msg = parent + "." + i + "\n" + obj[i]; } else { var msg = i + "\n" + obj[i]; }
      // Display the message. If the user clicks "OK", then continue. If they
      // click "CANCEL" then quit this level of recursion
      if (!confirm(msg)) { return; }
      // If this property (i) is an object, then recursively process the object
      if (typeof obj[i] == "object") {
         if (parent) { dumpProps(obj[i], parent + "." + i); } else { dumpProps(obj[i], i); }
      }
   }
}

