/*

	Filename             sitewide.js
	Detail               Site functionality
	Author:              thunder::tech inc.
	License:             CLIENT is defined as the owner of online property from which this file resides or this code is referenced in.
						 ADDITIONAL party is defined as anyone other than thunder::tech or CLIENT.
						 No right is granted to ADDITIONAL PARTY to sell, distribute, modify or otherwise transfer the following source code without explicit written permission by CLIENT or thunder::tech.

*/

/*  ================================
     Sitewide JavaScript
    ================================ */

	// Detected and set from HTML
	var isIE6;
	isIE6 = false;

	function sitewidePageLoaded()
	{
		// All pages on load
	}

/*  ================================
     Template 1 JavaScript
    ================================ */

	function template1Loaded()
	{
		// Per template on load
		sitewidePageLoaded();
	}
	
	$(document).ready(function(){
		thunder.client.modify.Menu();	
		thunder.client.modify.selfLabelFields();
		

	});
	
	

	
    $(document).ready(function(){
      $.each($(".galleryAlpha"), function(i, item){
            $(item).click(function(){
				var mHeight = $(window).height();
                var code = '<img src="' + $(this).attr("src") + '" style="height: ' + (mHeight - 100) + 'px;"/>';
                var myBox = $(this).jBox().showWindow(code, true);        
            });    
        });
	  
	  $.each($(".galleryBeta"), function(i, item){
            $(item).click(function(){
				var mHeight = $(window).height();
                var code = '<img src="' + $(this).attr("src") + '" style="height: ' + (mHeight - 100) + 'px;"/>';
                var myBox = $(this).jBox().showWindow(code, true);        
            });    
        });
	  
        
    });