﻿$(function() {
    $('a.thickbox').lightBox();
    $('a.framebox').fancybox();
});
jQuery(document).ready(function() {
    jQuery('a.showmessage').click(function() {
        humanMsg.displayMsg('<span class="indent">You clicked \'' + jQuery(this).text() + '\'</span>');
        return true;
    })
});

function callDisable(data,message) {

    switch (data) {
        case "1":
            DisableRMouse(message);
            DisableDrag();
            break;
        default:
            break;
    }
};

function DisableRMouse(message) {
    function click(e) {
        if (document.all) {
            if (event.button == 2) {
                alert(message); return false;
            }
        }
        if (document.layers) {
            if (e.which == 3) {
                alert(message); return false;
            }
        }
    }
    if (document.layers) {
        document.captureEvents(Event.MOUSEDOWN);
    } document.onmousedown = click;

    
}

function DisableDrag()
{
    document.onselectstart=new Function('return false');

    function ds(e){return false;}

    function ra(){return true;}

    document.onmousedown=ds;

    document.onclick=ra;

    if (top.location != self.location)

    {top.location = self.location}

}
		
		

