var isNav, isIE, isIEold
var blnIsMacIE
var coll = ""
var styleObj = ""

window.onerror = myOnError
msgArray = new Array()
urlArray = new Array()
lnoArray = new Array()


if (parseInt(navigator.appVersion) >= 4){
	switch (navigator.appName){
		case "Netscape" :
			isNav = true
			isIE = false
			isIEold = false	
			break
		case "Microsoft Internet Explorer" :
			isNav = false
			isIE = true
			isIEold = false	
			coll = "all."
			styleObj = ".style"
			break
		default :
			isNav = false
			isIE = true
			isIEold = false	
			break
		}
	}
else {
	if (navigator.appName == "Microsoft Internet Explorer"){
		isIEold = true
		}
	}
	

	
var is_Flash = false;
var is_FlashVersion = 0;


if (isIE)
{
   document.write(
      '<scr' + 'ipt language=VBScript>' + '\n' +
      'Dim hasPlayer, playerversion' + '\n' +
      'hasPlayer = false' + '\n' +
      'playerversion = 10' + '\n' +
      'Do While playerversion > 0' + '\n' +
         'On Error Resume Next' + '\n' +
         'hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion)))' + '\n' +
         'If hasPlayer = true Then Exit Do' + '\n' +
         'playerversion = playerversion - 1' + '\n' +
      'Loop' + '\n' +
      'is_FlashVersion = playerversion' + '\n' +
      'is_Flash = hasPlayer' + '\n' +
      '<\/sc' + 'ript>'
   );
}
	

	
function myOnError(msg, url, lno) {
	msgArray[msgArray.length] = msg
	urlArray[urlArray.length] = url
	lnoArray[lnoArray.length] = lno
	return true
	}
	
	
	
function getObjHeight(obj){
	if (isNav){
		return obj.clip.height
		}
	else{
		return obj.clientHeight
		}
	}
	
function getObjWidth(obj){
	if (isNav){
		return obj.clip.width
		}
	else{
		return obj.clientWidth
		}
	}
	
function getInsideWindowWidth(){
	if (isNav){
		return window.innerWidth
		}
	else{
		return document.body.clientWidth
		}
	}
	
function getInsideWindowHeight(){
	if (isNav){
		return window.innerHeight
		}
	else {
		return document.body.clientHeight
		}
	}
	
function shiftTo(obj, x, y){
	if (isNav){
		obj.moveTo(x,y)
		}
	else{
		obj.pixelLeft = x
		obj.pixelTop = y
		}
	}