function newPopup(url,w,h) {
popupWindow = window.open(url,'popupWindow','height='+h+',width='+w+',left=640,top=480,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes')
}

var message="Not allowed!";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
} else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

window.addEvent('domready', function() {

//var el = $('wrapper');
//el.set('slide', { duration:1500, transition: Fx.Transitions.Cubic.easeInOut});
//el.slide('hide').slide('in');

$$('#wrapper a','#footer a.normal').addEvents({
        mouseenter: function(){
    this.morph({ 'color': ['#CC1559', '#000'] });
        },
        mouseleave: function(){
        this.morph({ 'color': ['#000','#CC1559'] });
        }
}); // AddEvents

$$('#nav a').addEvents({
        mouseenter: function(){
        this.morph({ 'color': ['#CC1559','#fff']});
//        this.tween( 'color', '#7f7f7f', '#fff' );
        },
        mouseleave: function(){
        this.morph({ 'color': ['#fff','#CC1559']});
        }
}); // AddEvents

$$('#nav a.active').addEvents({
        mouseenter: function(){
        this.morph({ 'color': ['#fff','#fff']});
//        this.tween( 'color', '#7f7f7f', '#fff' );
        },
        mouseleave: function(){
        this.morph({ 'color': ['#fff','#fff']});

        }
}); // AddEvents

$$('a.wp').addEvents({
        mouseenter: function(){
    this.morph({ 'border-color': ['#fff','#f00'] });
        },
        mouseleave: function(){
        this.morph({ 'border-color': ['#fff','#7d7d7d'] });
        }
}); // AddEvents

$$('form input').addEvents({
        mouseenter: function(){
        this.morph({ 'border-color': ['#fff','#7f7f7f'] });
        },
        mouseleave: function(){
        this.morph({ 'border-color': ['#fff','#7f7f7f'] });
        }
}); // AddEvents

$$('a.photo-link').addEvents({
        mouseenter: function(){
    this.morph({ 'border-color': ['#fff','#f00'] });
        },
        mouseleave: function(){
        this.morph({ 'border-color': ['#fff','#7d7d7d'] });
        }
}); // AddEvents

//var wrapper = new Fx.Slide('page-links', { mode: 'horizontal', duration:1500, transition: Fx.Transitions.Cubic.easeInOut }).hide().slideIn();
//$('page-links').set('slide', { mode: 'horizontal',duration:1500, transition: Fx.Transitions.Cubic.easeInOut}).slide('hide').slide('in');
//$('page-wrap').set('slide', { mode: 'vertical',duration:1500, transition: Fx.Transitions.Cubic.easeInOut}).slide('hide').slide('in');
//$('header').set('slide', { mode: 'horizontal',duration:1500, transition: Fx.Transitions.Cubic.easeInOut}).slide('hide').slide('in');

}); // Window.AddEvent

