﻿if (navigator.userAgent.indexOf('MSIE 7') != -1) {
    var cssNode = document.createElement('link');
    cssNode.setAttribute('rel', 'stylesheet');
    cssNode.setAttribute('type', 'text/css');
    cssNode.setAttribute('media', 'screen,projection,tv');
    cssNode.setAttribute('href', '../_Styles/Denaployv3ie.css');
    document.getElementsByTagName('head')[0].appendChild(cssNode);
}
else if (navigator.userAgent.indexOf('MSIE 6') != -1) {

    var cssNode = document.createElement('link');
    cssNode.setAttribute('rel', 'stylesheet');
    cssNode.setAttribute('type', 'text/css');
    cssNode.setAttribute('media', 'screen,projection,tv');
    cssNode.setAttribute('href', '../_Styles/Denaployv3ie6.css');
    document.getElementsByTagName('head')[0].appendChild(cssNode);
}
else {
    var cssNode = document.createElement('link');
    cssNode.setAttribute('rel', 'stylesheet');
    cssNode.setAttribute('type', 'text/css');
    cssNode.setAttribute('media', 'screen,projection,tv');
    cssNode.setAttribute('href', '../_Styles/Denaployv3.css');
    document.getElementsByTagName('head')[0].appendChild(cssNode);
}

var showmenu = false;
var menuleft = '0px';
$('document').ready(function() {

    $('#marticles').mousemove(function(e) { if (showmenu == true) { updatemenu(e); } });
    $('#marticles').mouseenter(function() { showmenu = true; });
    $('#marticles').mouseleave(function() { });
    $('#menuthing').mouseenter(function() { showmenu = true; });
    $('#menuthing').mouseleave(function() { showmenu = false; $('#menuthing').css({ 'display': 'none' }); });
});

function updatemenu(eventdata) {
    $('#menuthing').css({ 'display': 'block', 'position': 'absolute', 'left': (eventdata.pageX - 20) })

}