// Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-8620538-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';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
})();

function loadSlideShow() {
    var feed  = "http://picasaweb.google.com/data/feed/base/user/synergyenviron/albumid/"+ seeSSId +"?alt=rss&kind=photo&authkey=" + seeSSKey + "&hl=en_US";
    var options = {displayTime:3000, transistionTime:5000, scaleImages:true, pauseOnHover:false};
    var ss = new GFslideShow(feed, "slideShow", options);
}

function showSearchSite() {
	var f = document.getElementById("cse-search-box");
	if (f && f.q) {
		var q = f.q;
		var l = location;
		var b = function() {
			if (q.value == '') {
				q.style.background = "#ffffff url('img/search_text.gif') left no-repeat";
			}
		};
		var f = function() {
			q.style.background = "#ffffff";
		};
		q.onfocus = f;
		q.onblur = b;
		if (!/[&?]q=[^&]/.test(l.search)) {
			b();
		}
	}
}

var addthis_config = {
  services_compact: 'google, live, myaol, yahoobkm, blogger, delicious, digg, facebook, linkedin, twitter, wordpress, more',
  services_exclude: 'print,email,favorites',
  ui_offset_top: 5,
  ui_offset_left: 7,
  ui_cobrand: "<img src='img/synergy_bs_logo.gif' border='0' alt='Synergy Enviro Engineers'>"
}
var addthis_share = {
  title: seeFavName
}

function onOptOver(id) {
	document.getElementById(id).src = "img/arrow_opt2.gif";
}
function onOptOut(id) {
	document.getElementById(id).src = "img/arrow_opt1.gif";
}
function onActOver(id) {
	document.getElementById(id).src = "img/arrow_act2.gif";
}
function onActOut(id) {
	document.getElementById(id).src = "img/arrow_act1.gif";
}
function trowOver(id) {
	id.style.backgroundColor = "#fbfbfb";
}
function trowOut(id) {
	id.style.backgroundColor = "#ffffff";
}

function searchSite(form) {
	if ( trim(form.q.value) == "" )
		return false;
}
function trim(txt) {
	txt = txt.replace(/^(\s)+/, '');
	txt = txt.replace(/(\s)+$/, '');
	return txt;
}