﻿$(function() {
    $('a.thickbox').lightBox();
    $('a.framebox').fancybox();
    $('a.frameboxframe').fancybox({
        'width': '80%',
        'height': '95%',
        'autoScale': false,
        'transitionIn': 'none',
        'transitionOut': 'none',
        'type': 'iframe'
    });
});
jQuery(document).ready(function() {
    jQuery('a.showmessage').click(function() {
        humanMsg.displayMsg('<span class="indent">You clicked \'' + jQuery(this).text() + '\'</span>');
        return true;
    })
});
function disableIconLogo() {

    $('.footertheicon').hide();
}
function callDisable(data,message) {

    switch (data) {
        case "1":
            DisableRMouse(message);
            //DisableDrag();
            break;
        default:
            break;
    }
};

function clickIE6()
{
 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;
    }
 }
}

function DisableRMouse(message) {
         if (document.layers){
         document.captureEvents(Event.MOUSEDOWN);
         document.onmousedown=clickNS4;
         }
         else if (document.all&&!document.getElementById)
            {
                document.onmousedown=clickIE6;
         }
         document.oncontextmenu= new Function("alert(\""+message+"\");return false")
}



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}

}
		
		


