function revLabel(label) {
	if(label.substr(0,1) == '-') label = label.substr(1);
	document.write(label);
}

//var browser = navigator.appVersion;
//var bVersion = browser.indexOf("MSIE 6");
var ie6=$.browser.msie&&($.browser.version == "6.0")&&!window.XMLHttpRequest;

	// skip this in IE6
	//if (bVersion<=0){
	  if (ie6!=true){
		// Show/hide headlines on smaller images
		$(document).ready(function(){
					   
			  $('.image h5').delay(2500).animate({opacity: 0},600);

			  $('.image').bind("mouseenter", (function()
			  { $(this).children('h5').animate({opacity: .75},200);
			  }));
	  
			  $('.image').bind("mouseleave", (function()
			  { $(this).children('h5').animate({opacity: 0},150);
			  }));
			  
//				$('#cboxTitle').hide().css("opacity", 0);
//				$('#cboxTitle').animate({opacity: 0},1);
				
				$('#cboxTitle').animate({opacity: 0},1);
				
				$('#cboxContent').bind("mouseenter", (function() { 
					$(this).children('#cboxTitle').animate({ opacity: .75},200);
				}));
			  
				$('#cboxContent').bind("mouseleave", (function() {
					$(this).children('#cboxTitle').animate({ opacity: 0},150);
				}));
			  
		});
	}

// THIS IS THE END OF AREA WE WANT IE6 TO SKIP

//Clear default form value for the search

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = "";
thefield.className="activetext";
} 


function getURL(){
	document.write(window.location.href);
}
var bitly;
/*
BitlyCB.shortenResponse = function(data) {
	var s = '';
	var first_result;
	// Results are keyed by longUrl, so we need to grab the first one.
	for     (var r in data.results) {
		first_result = data.results[r]; break;
	}
	for (var key in first_result) {
		s += key + ":" + first_result[key].toString() + "\n";
	}
	//return(first_result['shortUrl']);
	alert(first_result['shortUrl']);
	var bitly = first_result['shortUrl'];
}
*/

function loadXMLDoc(url,divID)
{
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
      xmlhttp.open("GET",url,false);
      xmlhttp.send(null);
      }
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      xmlhttp.open("GET",url,false);
      // Do not send null for ActiveX
      xmlhttp.send();
      }
document.getElementById(divID).innerHTML=xmlhttp.responseText;
} 

function adLoader(src, tgt) {
	if (navigator.userAgent.indexOf('Netscape') > -1 && navigator.userAgent.indexOf('Netscape/8') == -1 && navigator.userAgent.indexOf('OS X') == -1) {
		if ((document.getElementById) && navigator.userAgent.indexOf('Netscape6') == -1) {
			var dgTgt = document.getElementById(tgt);
			if (dgTgt!=null) {
				var dgSrc = document.getElementById(src);
				dgTgt.innerHTML = dgSrc.innerHTML;
			}
		}
	} else {
		if (document.getElementById && document.createElement) {
			if (navigator.userAgent.indexOf('Mac_PowerPC') == -1) {
				var dgTgt = document.getElementById(tgt);
				if (dgTgt!=null) {
					var tgtCh = document.createElement("div");
					var dgSrc = document.getElementById(src);
					var temp = dgTgt.appendChild(tgtCh);
					var moveIt = dgTgt.replaceChild(dgSrc, temp);
					dgSrc.style.display="block";
				}
			}
		}
	}
}





