/*
Implemntation:
<a href='javascript:void(0);' onmouseover="doTooltip(event,3)" onmouseout="hideTip()">Link Text</a>
The number three in the above example references messages[3] in the messages array 
*/

var tipFollowMouse	= false;	
var tipWidth		= 220;
var offX		 	= 12;	// how far from mouse to show tip
var offY		 	= 12; 
var tipFontFamily 	= "arial, helvetica, sans-serif";
var tipFontSize		= "8pt";
var tipFontColor	= "#000000";
var tipBgColor		= "#FFFFFF"; 
var origBgColor 	= tipBgColor; // in case no bgColor set in array
var tipBorderColor  = "#25386f";
var tipBorderWidth 	= 1;
var tipBorderStyle 	= "solid";
var tipPadding	 	= 5;

var messages = new Array();

messages[0] = new Array('','<b>Company</b><br />This is the name of your employer or place of business. Type the first few letters of the name and then click on the button to the right to reveal the dropdown list of companies.<br /><br /> If you do not work for a company in the list, select Unknown.<br /><br /> If your company is not in the list and you feel it should be please contact us to add your company.');
messages[1] = new Array('','<b>Association</b><br />This is the association which you or your employer may be a member of. Choose one of the associations listed or select unknown if you are not sure.');
messages[2] = new Array('','<b>Email Format</b><br />This is the format in which you would like the registration confirmation email to be displayed. Please choose either html or text format from the drop down list.');
messages[3] = new Array('','<b>Email</b><br />The registration confirmation, password reminder, and purchase receipt emails will be sent to this email address.');
messages[4] = new Array('','<b>Password</b><br />This is the password you will use to sign in to the site and the online test.');
messages[5] = new Array('','<b>Which program to access?</b><p>High Bandwidth : Use this link to access larger video clips. Ideal for "high-speed" connections, including DSL and Cable modems.</p><p>Low Bandwidth : Use this link to access faster downloading video clips. Ideal for slower connections, including 56k modems and other slower/shared networks.</p>');


/* jquery dimensions code */  
eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('(5($){$.19={P:\'1.2\'};$.u([\'j\',\'w\'],5(i,d){$.q[\'O\'+d]=5(){p(!3[0])6;g a=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';6 3.B(\':y\')?3[0][\'L\'+d]:4(3,d.x())+4(3,\'n\'+a)+4(3,\'n\'+e)};$.q[\'I\'+d]=5(b){p(!3[0])6;g c=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';b=$.F({t:Z},b||{});g a=3.B(\':y\')?3[0][\'8\'+d]:4(3,d.x())+4(3,\'E\'+c+\'w\')+4(3,\'E\'+e+\'w\')+4(3,\'n\'+c)+4(3,\'n\'+e);6 a+(b.t?(4(3,\'t\'+c)+4(3,\'t\'+e)):0)}});$.u([\'m\',\'s\'],5(i,b){$.q[\'l\'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b==\'m\'?a:$(h)[\'U\'](),b==\'s\'?a:$(h)[\'T\']()):3[\'l\'+b]=a}):3[0]==h||3[0]==r?S[(b==\'m\'?\'R\':\'Q\')]||$.N&&r.M[\'l\'+b]||r.A[\'l\'+b]:3[0][\'l\'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,\'K\');8.k-=4(o,\'J\');9.f+=4(7,\'H\');9.k+=4(7,\'Y\');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,\'z\')==\'13\'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);', 62, 72, '|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions'.split('|'), 0, {}))

$(document).ready(function() {
    var docHeight = $(document).height();
    var winHeight = $(window).height();
    var tblHeight = $("#MiddleTable").height();
    var isIE6 = ($.browser.msie && jQuery.browser.version.substr(0, 1) == "6") ? true : false;

    if (docHeight > tblHeight) {
        $("#MiddleTable").height(winHeight - 30);
        if (isIE6) { $("#ContentPane").height($("#MiddleTable").height() - 85); }
        else {            
            var cssObj = {
                'min-height': $("#MiddleTable").height() - 85 + 'px',
                'height': 'auto'
            }
            $("#ContentPane").css(cssObj);
        }
    }
    else { $("#MiddleTable").height(docHeight - 30); }
});

function exitTraining(skill) {
	window.location = 'Index.aspx?tabid=13&sc=' + skill;
}
