var highlightcolor="white"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (IE45) {
	   if (previous!=''){
	   if (checkel(previous))
	   previous.style.backgroundColor=''
	   previous=eventobj
	   if (checkel(eventobj))
	   eventobj.style.backgroundColor=highlightcolor
	   }
	   else{
	   if (checkel(eventobj))
	   eventobj.style.backgroundColor=highlightcolor
	   previous=eventobj
	   }
}
}
// beginn rechter mausclick deaktiviert
function click() {
if (event.button==2) {
alert('www.braut-fashion.de')
}
}
document.onmousedown=click


// No rightclick script for Netscape
if (navigator.appName.indexOf("Netscape") != -1){
window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
window.onmousedown=rightclick;
window.onmouseup=rightclick;

function rightclick(e) {
if (e.which == 3) {
alert('www.braut-fashion.de')
return false; 
}
else {
return true; 
}
}
}
// ende rechter mausclick deaktiviert
var oncell = "c0"

function overm(celno)
{ var chgcell
 if (document.layers) { // browser is NN
	//chgcell = "window.document."+ celno + ".bgColor='#cc0000'";
}
else //assume IE
{
	chgcell = "document.getElementById('"+ celno + "').bgColor='#99cc99'";
}
 eval(chgcell);
 
}

function outm(celno)
{ var chgcell
 if (document.layers) { // browser is NN
	//chgcell = "window.document."+ celno + ".bgColor='#FFFFFF'";
}
else //assume IE
{
	chgcell = "document.getElementById('"+ celno + "').bgColor='#EEF0F0'";
}
 eval(chgcell);
}



var browsername=navigator.userAgent.toLowerCase();

var NS6, IE45
var Opr=(browsername.indexOf('opera')!=-1)?1:0;

if (Opr)
{
			 IE45 = false;
			 NS6 = false;
			 docObj = "document.getElementById";
			 styleObj = ".style";

}

else
{
	  if (document.all) {
		  docObj = "document.all."
		  styleObj = ".style"
		  IE45 = true
	  }
	  else {
		  if (document.getElementById)
		  {
			  IE45 = false;
			  NS6 = true;
			  docObj = "document.getElementById";
			  styleObj = ".style";

		  }

		  else
		  {
			  NS6 = false;
			  IE45 = false;
			  docObj = "document.";
			  styleObj = "";
		  }
	  }

}

var scX, scY

function popUp(evt, currElem, topOffSet, leftOffSet) {

	if (NS6)
		{
			popUpWin = eval(docObj + "(\"" + currElem +"\")"+ styleObj)

		}
	else if (Opr)
		{
			popUpWin = eval(docObj + "(\"" + currElem +"\")"+ styleObj)

		}
	else
		{
			popUpWin = eval(docObj + currElem + styleObj)
			
		}

	if (IE45) {
		scY=document.body.scrollTop;
		scX=document.body.scrollLeft;
		popUpWin.top = parseInt(evt.y) +scY + Number(topOffSet);
		popUpWin.left = Math.max(2,parseInt(evt.x) + scX + Number(leftOffSet));

	}
	else if (Opr)
   
			{
			  
			  popUpWin.top = parseInt(evt.clientY)	+ Number(topOffSet);
			  popUpWin.left = Math.max(2,parseInt(evt.clientX) + Number(leftOffSet));
			}
	  


		  else{
			  popUpWin.top = parseInt(evt.pageY)+ Number(topOffSet);
			  popUpWin.left = Math.max(2,parseInt(evt.pageX)+ Number(leftOffSet));
			  }

	popUpWin.visibility = "visible";
	window.status = "";
}

function popDown(currElem) {
if (NS6 || Opr)
		{
			popUpWin = eval(docObj + "(\"" + currElem +"\")"+ styleObj)

		}
	else
		{
			popUpWin = eval(docObj + currElem + styleObj)
		}
	popUpWin.visibility = "hidden";
}




