// Get Browser Info
function getBrowser()
{
	var browserName = "";
	var ua = navigator.userAgent.toLowerCase();
	
	if ( ua.indexOf( "opera" ) != -1 ) 
	{
		browserName = "opera";
	} 
	else if ( ua.indexOf( "msie" ) != -1 ) 
	{
		var version = navigator.appVersion;
		
	//	if(navigator.appVersion.indexOf("MSIE 7.0") != -1) {
	//		browserName = "msieV7";
	//	} else {
	//		browserName = "msieV6";
		
	//	}
		browserName = "msie";
		//alert('this is browser ' +browserName+ ' version ' +version);
	}
	else if ( ua.indexOf( "safari" ) != -1 ) 
	{
		var b_version = navigator.appVersion;
		var version = parseFloat(b_version);
		browserName = "safari";
		//alert('this is browser ' +browserName+ ' version ' +version);
	} 
	else if ( ua.indexOf( "mozilla" ) != -1 ) 
	{
		if ( ua.indexOf( "firefox" ) != -1 ) 
		{
			browserName = "firefox";
		} 
		else 
		{
			browserName = "mozilla";
		}
	}
	
	return browserName;

}
// end getBrowser



// Get Browser window width and height
function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;

  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  
  }

  return myWidth;
}
//End Get Browswer window width and height



//Determine the Browser
function splitBrowsers() {
	if (document.styleSheets[0].cssRules)
		return document.styleSheets[0].cssRules;
	else
		return document.styleSheets[0].rules;
}
//End the Determine the Browser


// Variable from the Browser Split
var theRules=splitBrowsers();

// Set of variables for the browsers


getBrowser();




