function omo(img,state) {
		var oldsrc=img.src;
		var oldtype=oldsrc.substr(oldsrc.length-4,4);
		var oldstem=oldsrc.substr(0,oldsrc.length-5);
		img.src=oldstem + state + oldtype;
	//	alert('stem: ' + oldstem + "\ntype: " + oldtype + "\nsrc: " + img.src);
	}

function openPopUp(url){
		//window.open(url,"popup","toolbar=0,scrollbars=no,resizable=no,width=780,height=480");
}

function show(id, show) {       // true/1 = show, false/0 = hide
    if(parent.document.getElementById)	 {
        var obj = parent.document.getElementById(id);
        if (obj) {
            if(show) {
                if(oldobj != null){
        	        oldobj.style.visibility = 'hidden';
                }
                obj.style.visibility = 'visible';
                oldobj = obj;
            } else {
                obj.style.visibility = 'hidden';
            }
         }
    }
}

function loadiframe(id){
	var theframe;
	theframe = document.getElementById('detailFrame');
	theframe.src = 'detail_'+id+'.html';
	//theframe.src = 'detail-popup.html';
	var thediv;
	thediv = document.getElementById('placeIframe');
	//thediv.src="index.html";
	thediv.style.visibility = 'visible';
	
}

function loadQuote(id){
	var theframe;
	theframe = document.getElementById('detailFrame');
	theframe.src = id;
	//theframe.src = 'detail-popup.html';
	var thediv;
	thediv = document.getElementById('placeIframe');
	//thediv.src="index.html";
	thediv.style.visibility = 'visible';
}
/*
function closeIframe(){
	var iframe = document.getElementById('placeIframe');
	iframe.style.visibility = 'hidden';
	
	var theframe;
	theframe = document.getElementById('detailFrame');
	theframe.src= "";
}
*/
function closeIframe(){
	var detect = parent.navigator.userAgent.toLowerCase();
	if(detect.indexOf('win')+1)
	{
		//alert('is windows');
		var iframe = parent.document.getElementById('placeIframe');
		iframe.style.visibility = 'hidden';
	
		var theframe;
		theframe = parent.document.getElementById('detailFrame');
		theframe.src= "blank.html";
	}else{
		//alert('is not windows');
		parent.window.location = "people.html";
	}
	
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}
function hideCover(){
		var obj;
		obj = parent.document.getElementById("cover");
		obj.style.visibility = "hidden";
		}
function showCover(){
		var obj;
		obj = document.getElementById("cover");
		obj.style.visibility = "visible";
		}
