//start of script
var browser=navigator.appName;
var oPopup = window.createPopup();

function HighLightElement(ob) {
	if (oPopup) {
		if (oPopup.isOpen) oPopup.hide();
	}
    var total2Highlight;var divID;
    divID=ob.id;
	total2Highlight=(document.getElementsByName(ob.id).length);
	if (total2Highlight > 1) {
		for(var mycount=0;mycount<total2Highlight;mycount++) {
			oldackgroung=document.getElementsByName(divID).item(mycount).style.background;
			oldfilter=document.getElementsByName(divID).item(mycount).style.filter;
		//	document.getElementsByName(divID).item(mycount).style.background="#FF9933";
			document.getElementsByName(divID).item(mycount).style.background="#6a5acd";
		//	document.getElementsByName(divID).item(mycount).style.background="#000000";
			document.getElementsByName(divID).item(mycount).style.filter="progid:DXImageTransform.Microsoft.Alpha( Opacity=25 ,FinishOpacity=0, Style=0)";
		}
	} else {
		oldackgroung=document.getElementsByName(divID).item(mycount).style.background;
		oldfilter=document.getElementsByName(divID).item(mycount).style.filter;
//		ob.style.background='#FF9933';
		ob.style.background='#6a5acd';
		ob.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity=25 ,FinishOpacity=0, Style=0)";
	}
}

function onMenuMouseOver(obj) {
	//obj.style.background = '#696C9E';
	obj.style.background = '#6A5ACD';
	obj.style.color= '#FFFFFF'; 
}

function onMenuMouseOut(obj) {
	obj.style.background = '#FFFFFF';
	obj.style.color= '#000000'; 
}

function HighLightElementPhoto(ob) {
	if (oPopup) {
		if (oPopup.isOpen) oPopup.hide();
	}
	var total2Highlight;var divID
	divID=ob;
	total2Highlight=(document.getElementsByName(ob).length);
	if (total2Highlight > 1) {
		for(var mycount=0;mycount<total2Highlight;mycount++) {
			oldackgroung=document.getElementsByName(divID).item(mycount).style.background;
			oldfilter=document.getElementsByName(divID).item(mycount).style.filter;
		//	document.getElementsByName(divID).item(mycount).style.background="#FF9933";
	document.getElementsByName(divID).item(mycount).style.background="#6a5acd";
			document.getElementsByName(divID).item(mycount).style.filter="progid:DXImageTransform.Microsoft.Alpha( Opacity=25 ,FinishOpacity=0, Style=0)";
		}
	} else {
		oldackgroung=document.getElementsByName(divID).item(mycount).style.background;
		oldfilter=document.getElementsByName(divID).item(mycount).style.filter;
		document.getElementsByName(divID).item(mycount).style.background='#6A5ACD';
		document.getElementsByName(divID).item(mycount).style.filter="progid:DXImageTransform.Microsoft.Alpha( Opacity=25 ,FinishOpacity=0, Style=0)";
	}
}

function HighLightElementUrl(ob) {
	if (oPopup) {
		if (oPopup.isOpen) oPopup.hide();
	}
    var total2Highlight;var divID
	divID=ob.id;
	total2Highlight=(document.getElementsByName(ob.id).length);
	if (total2Highlight > 1) {
		for(var mycount=0;mycount<total2Highlight;mycount++) {
			oldackgroung=document.getElementsByName(divID).item(mycount).style.background;
			oldfilter=document.getElementsByName(divID).item(mycount).style.filter;
			document.getElementsByName(divID).item(mycount).style.background="blue";
			document.getElementsByName(divID).item(mycount).style.filter="progid:DXImageTransform.Microsoft.Alpha( Opacity=25 ,FinishOpacity=0, Style=0)";
		}
	} else {
		oldackgroung=document.getElementsByName(divID).item(mycount).style.background;
		oldfilter=document.getElementsByName(divID).item(mycount).style.filter;
		ob.style.background='blue';
		ob.style.filter="progid:DXImageTransform.Microsoft.Alpha( Opacity=25 ,FinishOpacity=0, Style=0)";
	}
}


function ClearElementPhoto(ob) {
	var total2Highlight;var divID;
	divID=ob;
	total2Highlight=(document.getElementsByName(ob).length);
	if (total2Highlight > 1) {
		for(var mycount=0;mycount<total2Highlight;mycount++) {
			document.getElementsByName(divID).item(mycount).style.background=oldackgroung;
			document.getElementsByName(divID).item(mycount).style.filter=oldfilter;
		}
	} else {
		document.getElementsByName(divID).item(mycount).style.background=oldackgroung;
		document.getElementsByName(divID).item(mycount).style.filter=oldfilter;
	}
}

function ClearElement(ob) {
	var total2Highlight
	var divID
	divID=ob.id;
	total2Highlight=(document.getElementsByName(ob.id).length);
	if (total2Highlight > 1) {
		for(var mycount=0;mycount<total2Highlight;mycount++) {
			document.getElementsByName(divID).item(mycount).style.background=oldackgroung;
			document.getElementsByName(divID).item(mycount).style.filter=oldfilter;
		}
	} else {
		ob.style.background=oldackgroung;
		ob.style.filter=oldfilter;
	}
}

function ClearElementUrl(ob) {
	var total2Highlight
	var divID
	divID=ob.id;
	total2Highlight=(document.getElementsByName(ob.id).length);
	if (total2Highlight > 1) {
		for(var mycount=0;mycount<total2Highlight;mycount++) {
			document.getElementsByName(divID).item(mycount).style.background=oldackgroung;
			document.getElementsByName(divID).item(mycount).style.filter=oldfilter;
		}
	} else {
		ob.style.background=oldackgroung;
		ob.style.filter=oldfilter;
	}
}

