/*
COPYRIGHT AND PROTECTION NOTICE 
Author:AXK
Copyright © 2010 POWERBRAND.ORG - Reproduction in whole or in part by any means is prohibited.
This code cannot be modified without written permission from Power Brand Group.
Any unauthorised usage, publication, copying or re-coding will constitute an infringement of copyright.
*/
function navi(x){
    
    //Navigation morph
    var myElement = x;
    window.addEvent('domready', function() {
    
    var myEffect = new Fx.Morph(myElement, {duration: '1000'});
    myEffect.start({
    'color': '#FFFFFF',
    'background-image':'url(http://www.maxrma.com/emgz/navi/navi-3.png)',
    'padding':'15px 60px',    
    });
    
    //elastic content holder
    
    $$('.content').set('tween', {
        transition: Fx.Transitions.Bounce.easeOut,
        duration: '1000'
        });
    $$('.content').tween('width', [100,880]);
    
        
    //disable 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");
    
    
    
    var target=document.body;
    if (typeof target.onselectstart!="undefined") //IE route
    target.onselectstart=function(){return false}
    else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
    target.style.MozUserSelect="none"
    else //All other route (ie: Opera)
    target.onmousedown=function(){return false}
    target.style.cursor = "default"
    
    
    });
}
