$(document).ready(function(){ $('.tab_hover').each(function(){ show_next($(this).attr('id')+'_data'); }); $('#subNav li').mouseover(function(){ $(this).addClass('active'); }); $('#subNav li').mouseout(function(){ $(this).removeClass('active'); }); $('#nav a').mouseover(function(){ imgSrcOld = $(this).children().attr("src"); imgSrcNew = $(this).children().attr("src").replace("off","on"); $(this).children().attr("src",imgSrcNew); }); $('#nav a').mouseout(function(){ $(this).children().attr("src",imgSrcOld); }); $(".mainHl").equalizeCols(); $(".subHeadline").equalizeCols(); $("#featuresFtr .featureBox").equalizeCols(); $("#thumbList li a").click(function(){ var thisIndex = $("#thumbList li a").parent().index($(this).parent()); $("#main-images a").hide(); $("#main-images a").eq(thisIndex).show(); return false; }); $("#main-images a").eq(0).show(); $("#main-images a[rel=mainimage]").colorbox(); }); (function($) { $.fn.equalizeCols = function(){ var height = 0, reset = $.browser.msie ? "1%" : "auto"; return this .css("height", reset) .each(function() { height = Math.max(height, this.offsetHeight); }) .css("height", height) .each(function() { var h = this.offsetHeight; if (h > height) { $(this).css("height", height - (h - height)); }; }); }; })(jQuery); /*(function($) { $.fn.equalizeCols = function(){ var maxH = 0; this.each( function() { if (this.offsetHeight>maxH) maxH = this.offsetHeight; } ).css("height", "auto").each( function() { var gap = maxH-this.offsetHeight; if (gap > 0) { t = document.createElement('div'); $(t).attr("class","fill").css("height",gap+"px"); $(this).append(t) } } ); } })(jQuery);*/ function openTourneyDetails(tid){ var w=window.open('/online-casino/tournaments/tournament-information.html?t=' + tid,'TournamentInfo','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=710,height=500'); w.focus(); } function select_by_click(which_one) { document.getElementById('ReloadPromoTag_' + which_one).checked = true; } function appendToOnload(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } function setCookie(cookieName,cookieValue,nTime) { var cookieStr = cookieName+"="+escape(cookieValue)+";path=/"; if(parseInt(nTime) > 0) { var today = new Date(); var expire = new Date(); expire.setTime(today.getTime() + parseInt(nTime) * 100); cookieStr += ";expires="+expire.toGMTString(); } document.cookie = cookieStr; } function getCookie(A){var F=document.cookie.split(";");var B="";var D="";var E="";var C=false;for(i=0;i1){E=unescape(B[1].replace(/^\s+|\s+$/g,""))}return E;break}B=null;D=""}if(!C){return null}};