function sniffBrowser()
{
	
	isCSS =  false;
	isW3C =  false;
	isIE4 =  false;
	isOpera = false; 
	isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false; 
   if (navigator.appName == "Opera")
    	isOpera = true;
	if (document.images){
		if (document.body && document.body.style)
			isCSS =  true;
		if (isCSS && document.getElementById)
			isW3C = true;
		if (isCSS && document.all)
			isIE4 =  true;
	}
	return (isCSS || isIE4);
}
function getClipBottom(elem)
{
	var retval;
	var pix, bottom;
	if (isIE4 && !isOpera){
		bottom = getStyleValue(elem, 'clipBottom');
		pix = bottom.indexOf('p');
	} else {
		alert (elem);
		var vw = document.defaultView;
		var cStyle = vw.getComputedStyle(elem,"");
		var style = cStyle.getPropertyValue('clip');
		var firstComma = style.indexOf(',');
		var right = style.substring(firstComma + 2);
		pix = right.indexOf('p');
		bottom = right.substring(pix+3);
		pix = bottom.indexOf('p');
	}
	retval = bottom.substring(0, pix);
	return retval;
}
function getClipRight(elem)
{
	var retval;
	var pix, right;
	if (isIE4 && !isOpera){
		right = getStyleValue(elem, 'clipRight');
		pix = right.indexOf('p');
	} else {
		var vw = document.defaultView;
		var cStyle = vw.getComputedStyle(elem,"");
		var style = cStyle.getPropertyValue('clip');
		var firstComma = style.indexOf(',');
	 	right = style.substring(firstComma + 2);
		pix = right.indexOf('p');
	}
	retval = right.substring(0, pix);
	return retval;

}
function setStyleValue(elem, property, newval)
{
	if (isIE4 && !isOpera){
		elem.currentStyle[property]=newval;
	} else {
		var vw = document.defaultView;
		var cStyle = vw.getComputedStyle(elem,"");
		cStyle.setProperty(property, newval, "");
	}
}
function getStyleValue(elem, property)
{
	var retval;
	if (isIE4 && !isOpera){
		retval = elem.currentStyle[property];
	} else {
		var vw = document.defaultView;
		var cStyle = vw.getComputedStyle(elem,"");
		retval = cStyle.getPropertyValue(property);

	}
	return retval;
}

function getStyleFromSheets(styleId)
{
  var Styles = new Array();
  var sheets = new Array();
  sheets = document.styleSheets;
 var stringstyles = "";
  for (kk = 0 ; kk <sheets.length; kk++){
	if (isIE4)
		  Styles = document.styleSheets[kk].rules;
	  else
		  Styles = document.styleSheets[kk].cssRules;
	  for (i=0;i<Styles.length;i++){
 		if (Styles[i].selectorText == styleId){
			return Styles[i];
			} 
		  }
  }
 return 0;
}

function GoTo(url)
{
	window.location.href = url;
}

<!-- 
 --><!-- 
 -->
