$(document).ready(function(){if($('#tabs').length){var tabs=$('#tabs').show().attr('tooBig',false).find(".tab").hover(function(){$(this).find('.hover').show();$(this).find('.default').hide()},function(){$(this).find('.hover').hide();$(this).find('.default').show()}).end();$(window).scroll(function(){if(tabs.attr('tooBig')=='false'){if($(window).scrollTop()>152){tabs.css({top:40,position:'fixed'});}else{tabs.css({top:192,position:'absolute'});}}});$(window).resize(function(){tabs.css('left',$('#content').offset().left+974);if(tabs.offset().top+tabs.outerHeight()>$(window).height()){tabs.css('position','absolute');tabs.attr('tooBig',true);}else{tabs.css('position','fixed');tabs.attr('tooBig',false);}
$(window).scroll();}).resize();}
$('#mapOpener').click(function(){$('#map').popup('open');return false;});$('#sidebar .liveevents .seeall a').click(function(event){$('#sidebar .liveevents .hidden').show(10);$(this).html('see all events&hellip;').unbind('click');event.preventDefault();});$('.partner').click(function(event){if(!$(event.target).is('a')){document.location=$(this).find('a').attr('href');event.preventDefault();}});$('.exhibitorIcons a, .stand a').tooltip({delay:0,track:true,top:10,left:10,showURL:false,fade:250});$('.seminar .description').hide();$('.seminar .readMore').click(function(){$(this).parents('.seminar').find('.description').show();$(this).hide();});$('.searchbox').focus(function(){$(this).select();});$(document).bind('openPopup',function(){var player=getVideoPlayer();if(player!==null){player.Pause();}})
$(document).bind('closePopup',function(){var player=getVideoPlayer();if(player!==null&&player.getTime()>0){player.DoPlay();}})
$('.popup').each(function(){var popup=$(this);$('a[href="#'+popup.attr('id')+'"]').click(function(){popup.popup('open');});});if(window.location.href.indexOf("#")>-1){var panelId=window.location.href.substr(window.location.href.indexOf("#")+1);if($('#'+panelId+'.popup').length){$('#'+panelId+'.popup').popup('open');}}
if($.browser.msie&&$.browser.version==6){$('#navigation li').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});}});function getVideoPlayer(){var videoPlayer=document.getElementById('videoPlayer');if(typeof(videoPlayer.DoPlay)=='undefined'){videoPlayer=videoPlayer.getElementsByTagName('OBJECT')[0];}
return videoPlayer;}
function playVideo(videoFile){var videoPlayer=getVideoPlayer();videoPlayer.setConfig({'autoPlay':false,'loop':false,'initialScale':'scale','hideControls':true,'videoFile':videoFile});videoPlayer.DoPlay();document.getElementById('videos').style.display='none';$('#videos').popup('close');}
function checkLogoUpload(){if(document.getElementById('logoFile').value==''){alert('Please select a logo to upload.');return false;}
if((document.getElementById('currentLogo')!=null)&&!confirm('Are you sure you want to replace the existing logo?')){return false;}
document.showLoadingMessage('Please wait while the logo<br />is uploaded to the server.');return true;}