$(document).ready(function(){ 
	$(document).pngFix(); 
});

$(document).ready(function(){
  $.preloadCssImages();
}); 

$(document).ready(function(){

				$('#email-s').autofill({

					value: 'SUBSCRIBE TO OUR E-NEWSLETTER',

					defaultTextColor: '#026236',

					activeTextColor: '#111111'

				});

			});
$(document).ready(function(){

				$('#email-s2').autofill({

					value: 'SUBSCRIBE TO OUR E-NEWSLETTER',

					defaultTextColor: '#026236',

					activeTextColor: '#111111'

				});

			});


if(top.location!=self.location)top.location=self.location;
window['_tipoff']=function(){};window['_tipon']=function(a){};
function doTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(location.hostname=='www.reesjonesinc.com' && lang_pair=='en|en')return;else if(location.hostname!='www.reesjonesinc.com' && lang_pair=='en|en')location.href=unescape(gfg('u'));else if(location.hostname=='www.reesjonesinc.com' && lang_pair!='en|en')location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+escape(location.href);else location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+unescape(gfg('u'));}
function gfg(name) {name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(location.href);if(results==null)return '';return results[1];}

function mailpage()
		{
		mail_str = "mailto:?subject=" + document.title;
		mail_str += "&body=Please see: " + location.href;
		location.href = mail_str;
		}

Shadowbox.init({
    overlayOpacity: 0.9
}, setupDemos);

function setupDemos() {

    Shadowbox.setup("a.course-gallery", {
        gallery:        "course",
        displayCounter:        true,
        viewportPadding:        40,
        continuous:     true
    });

   Shadowbox.setup("a.rees-gallery", {
        gallery:        "rees",
        displayCounter:        false,
        viewportPadding:        40,
        continuous:     true
    });

}


sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


