
// KMB js page by weBMon

// frame-breaker

if (top.location != self.location) { 
top.location = self.location.href 
} 

// no right click

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")




// thanks to Tucows for this idea...and a few others

 function barWrite()
                                {
                                window.defaultStatus = " All images copyright (c) Karen Bosy";
                                return true;
                                }

// onClick status bar control	(thanks to ACK - http://www.acky.net)

function setMessage()
								{
							    var msg="open window... "
							    window.status = msg
								return true;
								}								
								
								
// popups

function openWing() {
        window.open("","wing1","menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=1,resizable=yes,width=600,height=650,left=25,top=25");
}



// showPic - kmbpix.html

function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('firstpic')
  .src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc')
  .childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc')
  .childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}


/* 
  ------------------------------------
  PVII Menu CSS Express Drop-Down Menu
  by Project Seven Development
  www.projectseven.com
  ------------------------------------
*/
function P7_ExpMenu(){ //v1.1.0.2 by PVII-www.projectseven.com
 if(navigator.appVersion.indexOf("MSIE")==-1){return;}
 var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='p7menubar';
 for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){
 lg=g.getElementsByTagName("li");if(lg){for(k=0;k<lg.length;k++){
 lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
 this.className=cl;};lg[k].onmouseout=function(){c=this.className;
 this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}
}


$(function() {
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	
})


