// JavaScript Document $(document).ready(function(){ $("ul.sf-menu").supersubs({ minWidth: 12, // minimum width of sub-menus in em units maxWidth: 27, // maximum width of sub-menus in em units extraWidth: 1 // extra width can ensure lines don't sometimes turn over // due to slight rounding differences and font-family }).superfish({ delay: 500, speed: 'fast' }); // call supersubs first, then superfish, so that subs are // not display:none when measuring. Call before initialising // containing tabs for same reason. $('#newsbanner').jshowoff({ speed:5000, links: false, controls: true }); $('.nopener').click(function() { var isrc = $(this).attr('src'); var nid = $(this).attr('id'); nid = nid.split("-"); if(isrc == 'http://www.slotsmansion.com/images/max.gif') { $(this).attr('src', 'http://www.slotsmansion.com/images/min.gif'); $('#n-'+nid[1]).addClass('activenews'); $('#n-'+nid[1]).slideDown('normal'); $(".activenews").not('#n-'+nid[1]).slideUp('normal'); $(".nopener").not('#nop-'+nid[1]).attr('src', 'http://www.slotsmansion.com/images/max.gif'); } else { $(this).attr('src', 'http://www.slotsmansion.com/images/max.gif'); $('#n-'+nid[1]).removeClass('activenews'); $('#n-'+nid[1]).slideUp('normal'); } }); $('.aopener').click(function() { var isrc = $(this).attr('src'); var nid = $(this).attr('id'); nid = nid.split("-"); if(isrc == 'http://www.slotsmansion.com/images/max.gif') { $(this).attr('src', 'http://www.slotsmansion.com/images/min.gif'); $('#a-'+nid[1]).addClass('activear'); $('#a-'+nid[1]).slideDown('normal'); $(".activear").not('#a-'+nid[1]).slideUp('normal'); $(".aopener").not('#aop-'+nid[1]).attr('src', 'http://www.slotsmansion.com/images/max.gif'); } else { $(this).attr('src', 'http://www.slotsmansion.com/images/max.gif'); $('#a-'+nid[1]).removeClass('activear'); $('#a-'+nid[1]).slideUp('normal'); } }); $('#topcasinos tr:odd td').addClass('oddnumber'); $('#topcasinos tr:even td').addClass('evennumber'); $('#search').click(function() { $(this).val(''); }); $("#google_translate_element").css({ 'width' : '170px' ,'overflow' : 'hidden' }); });