
var prop = "'screenX=0,left=0,screenY=0,top=0,width=800,height=600,menubar=yes,resizable=yes,titlebar=yes,toolbar=yes,alwaysRaised=yes,status=yes,scrollbars=yes,fullscreen=0'"
/*
//document.onmousedown = copyright;
var detect = navigator.userAgent.toLowerCase();
var mac,mozilla;
if (checkIt('mac')) mac=true
if (checkIt('mozilla/5.0')) mozilla=true;

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

var isnn,isie
if(navigator.appName=='Microsoft Internet Explorer') //check the browser
{  isie=true }

if(navigator.appName=='Netscape')
{  isnn=true }

if (document.layers) window.captureEvents(Event.KEYPRESS);  
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
document.onkeydown=key;  
document.onmousedown=right;
document.onmouseup=right;
window.document.layers=right;

function copyright() {
//	var message = "All photos copyright Hans de Vries.\n"+
//		      "Please do not take anything from this site without prior and written permission.\n"+
//		      "Contact Hans de Vries by e-mail: hdvphotography@xs4all.nl.";
  var message = "All photos and text copyright B Creative Hair Concept.\n"+
                "Please do not take anything from this site without prior and written permission.\n"+
                "Contact by e-mail: marketing@readytoB.nl.";
	if (event.button == 2 || event.button == 3) {
		alert(message);
		return false;
	}
}

function right(e) //to trap right click button 
{
	if (mac || mozilla)
		return true;
	else {
		if (isnn && (e.which == 3 || e.which == 2 ))
			return false;
		else if (isie && (event.button == 2 || event.button == 3)) 
		{
			alert("Sorry, you do not have permission to right click on this page.");
			return false;
		}
			return true;
	}
}

function key(k)   
{
	if (mac || mozilla)
		return true;
	else {
		if(isie) {
			if(event.keyCode==17 || event.keyCode==18 || event.keyCode==93) {
				alert("Sorry, you do not have permission to press this key.") 
				return false;
			 } 
		}
	
		if(isnn){
			alert("Sorry, you do not have permission to press this key.") 
			return false; }   
	}
}
*/
function openWin(url,name,props)
{
  _name = (name ? name : "popup")
  _prop = (props ? props : prop)
  var pop = window.open(url,_name,_prop);
  pop.focus();
}

function changeURL(id)
{
  document.location.href="default.asp?id="+id
}

function swapClass(theEl)
{
  var theElement = typeof(theEl) != "object" ? document.getElmentById(theEl) : theEl;
  S = theEl.className;
  theEl.className = S.charAt(S.length-1) == '0' ?  S.slice(0,S.length-1) + '1' : S.slice(0,S.length-1) + '0';
}

function swapStyle(theEl)
{
  var theElement = typeof(theEl) != "object" ? document.getElmentById(theEl) : theEl;
  theElement.style.color = "#FFFFFF";
}

function swapImg(name) {
  theElement = document.images[name];
  S = theElement.src;
  if (S.charAt(S.length-5) == '0') theElement.src = S.slice(0,S.length-5) + '1' + S.slice(S.length-4);
  else theElement.src = S.slice(0,S.length-5) + '0' + S.slice(S.length-4);
  }

