// for the top navigation
jQuery(document).ready(function($) {
    $('#topmenu ul > li > ul').each(function() {
        var dis = $(this);
        dis.parent('li').mouseover(function() {
            dis.css('visibility', 'visible');
        });
        dis.parent('li').mouseout(function() {
            dis.css('visibility', 'hidden');
        });
        dis.mouseout(function() {
            dis.css('visibility', 'hidden');
        });
    });
});


// if it's a product page, adopt the home page layout.
/*jQuery(document).ready(function($) {
    if ($('#content_area form[name="MainForm"]').length > 0) {
        $('#content_inner').addClass('main');
        $('#maincontent').css('width', '765px').css('min-height', '506px');
    }
});*/


// for the lightbox
jQuery(document).ready(function($) {
    $('a[rel="lightbox"]').lightBox({
        imageBtnClose: '/v/vspfiles/templates/ninoosh/7/jquery-lightbox-0.5/images/lightbox-btn-close.gif',
        imageLoading: '/v/vspfiles/templates/ninoosh/7/jquery-lightbox-0.5/images/lightbox-ico-loading.gif'
    });
});


// shoppingcart.asp needs an expanded layout
jQuery(document).ready(function($) {
    if (/\/shoppingcart\.asp/i.test(location.pathname)) {
	    $('#content_inner').addClass('main');
	    $('#maincontent').css('width', '765px').css('min-height', '506px');
    }
});







//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled! Copyright © 2011 NINOOSH™. All rights reserved";

///////////////////////////////////
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");

