﻿var _quality = 'lqhf';
function initiateHelpers() {
    $('img.img_flash_help').click(function() { displayTutorials('../', $(this).attr('_params'), false); });
    $('a[id$=lnkTutorials]').click(function() { $.lightBox(); });
    $('.tbox_body a').each(function() { var _id = this.id, _href = this.href.replace('javascript:', ''); this.href = 'javascript:'; $(this).click(function() { if (_id.indexOf('lnkSwapQuality') < 0) { displayTutorials((typeof (_tboxUpOneLevel) != 'undefined' && _tboxUpOneLevel ? '../' : ''), _href, true); } else { $('.tbox_quality').toggleClass('checked'); _quality = $('.tbox_quality').hasClass('checked') ? 'hqhf' : 'lqhf'; }; return false; }) });
    $('.tbox_body .tbox_close').click(function() { $(this).closest('.tbox_container').fadeOut(20, function() { $('.welcome_overlay').fadeOut(600); $(document).unbind('keypress keydown'); $('.tbox_quality').removeClass('checked'); _quality = 'lqhf'; }); });
}
jQuery(function($) { initiateHelpers() });
function displayTutorials(rootFolder, parameters, checkQuality) { var _lq = (checkQuality ? _quality : parameters).indexOf('lqhf') == 0, _w = _lq ? '340' : '820', _h = _lq ? '260' : '620'; window.open(rootFolder + 'HelpViewer.aspx?pr=' + (checkQuality ? _quality : '') + parameters, '', 'width=' + _w + ',height=' + _h + ',location=0,status=0,toolbar=0,resizable=0'); }
