


function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}
function checkVersion()
{
	
  var msg = "You're not using Internet Explorer.";
  var ver = getInternetExplorerVersion();
  
  //alert("IN");
 if( ver > -1 && ver < 7 ) {
	try {
		
	document.getElementById("tabs").innerHTML = document.getElementById("tabs").innerHTML.replace(/png/g, "gif");
	document.getElementById("tabs2").innerHTML = document.getElementById("tabs2").innerHTML.replace(/png/g, "gif");
	document.getElementById("contain").innerHTML = "<iframe src='inner_services.htm' width='95%' height='450px' style='margin-top:30px;'></iframe>";
			
	 }
	catch(err){}
  }
    

}


function loadServices() {
	var qsParm = new Array();
	var query = window.location.search.substring(1);
	var parms = query.split('&');
	for (var i=0; i<parms.length; i++) {
		var pos = parms[i].indexOf('=');
		if (pos > 0) {
			var key = parms[i].substring(0,pos);
			var val = parms[i].substring(pos+1);
			qsParm[key] = val;
		}
	}
	if( qsParm["tab"] > 0 ) {
		//alert("Trying to set tab to " + qsParm["tab"]);
		debugger;
	 	$("#tabs").tabs( "select" , qsParm["tab"] );
	}
	
}




$(function() {
	// OPACITY OF BUTTON SET TO 50%
	$(".hover").css("opacity","1.0");
	 
	// ON MOUSE OVER
	$(".hover").hover(function () {
	 
	// SET OPACITY TO 100%
	$(this).stop().animate({
		opacity: 0.65
		}, "medium");
	},
 
	// ON MOUSE OUT
	function () {
 
	// SET OPACITY BACK TO 50%
	$(this).stop().animate({
		opacity: 1.0
		}, "slow");
	});
});


$(function() {
	// OPACITY OF BUTTON SET TO 50%
	$(".test").css("opacity","1.0");
	 
	// ON MOUSE OVER
	$(".test").hover(function () {
	 
	// SET OPACITY TO 100%
	$(this).stop().animate({
		opacity: 0.0
		}, "medium");
	},
 
	// ON MOUSE OUT
	function () {
 
	// SET OPACITY BACK TO 50%
	$(this).stop().animate({
		opacity: 1.0
		}, "slow");
	});
});


