//external javascript glass kote wa
var isDHTML = 0;
var isID = 0;
var isAll = 0;
var isLayers = 0;


if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
if (document.all) {isAll = 1; isDHTML = 1;}
else {
browserVersion = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
}}

function findDOM(objectID,withStyle) {
	if (withStyle == 1) {
		if (isID) { return (document.getElementById(objectID).style) ; }
		else { 
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
	else {
		if (isID) { return (document.getElementById(objectID)) ; }
		else { 
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
}
   
function setVisibility() {
	var i, dom, state, layerarg;
	layerarg = setVisibility.arguments
	for (i=0; i<(layerarg.length-1); i+=2)
	if ((dom=findDOM(layerarg[i]))!=null) {
		state=layerarg[i+1];
		if (dom.style) {
			dom=dom.style; state=(state=='show')?'visible':(state=='hide')?'hidden':state;
		}
		dom.visibility = state;
}
	
function toggleVisibility(objectID) {
	var dom = findDOM(objectID,1);
	state = dom.visibility;
	if (state =='hidden' || state =='hide')
		dom.visibility = 'visible';
	else {
		if (state == 'visible' || state =='show')
			dom.visibility ='hidden';
		else dom.visibility = 'hidden';
		}
	}
}
					
function toggleClient(){	
	var arg, state, target ;
	arg = toggleClient.arguments;
	for (var a=0; a<(arg.length - 1); a+=2){
		target = arg[a];
		state=arg[a+1]
		tmp = document.getElementsByTagName('div') ;
		for (i=0;i<tmp.length;i++)
		{
		   //	if (tmp[i].className == target) tmp[i].style.display = state;
			if (tmp[i].id.match(target)) tmp[i].style.display = state;
		}
	}
}



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function CheckItem(SelectForm) {
		ItemChoice = SelectForm.itemValue.selectedIndex
	
	if (SelectForm.itemValue.options[ItemChoice].value != 'select') {
		
		setVisibility('floatingInfo2','visible');	
		return true
			}
			
			return false
}
function setClass(objectID,newClass) {
	var dom = findDOM(objectID,0);
	dom.className = newClass;
}

function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
	
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
 
}


		