$(document).ready(function(){ $('#overlaybutton').click(function() { $('#overlay').fadeOut('fast', function() { // Animation complete }); }); $('#clickin').click(function() { $('#overlay').fadeIn('fast', function() { // Animation complete }); }); }); function okOver() { overUrl = templateDir+'/img/popup_ok_down.png'; document.getElementById('overlaybutton').style.backgroundImage = 'url("'+overUrl+'")'; document.getElementById('overlaybutton').style.lineHeight = '2.26em'; } function okOut() { outUrl = templateDir+'/img/popup_ok_up.png'; document.getElementById('overlaybutton').style.lineHeight = '2.2em'; document.getElementById('overlaybutton').style.backgroundImage = 'url("'+outUrl+'")'; } function qKeyup(mobil) { document.getElementById('qcount').innerHTML= 170-document.questionform.question.value.length; if (!mobil == 1) { document.getElementById('questionpop').innerHTML = document.questionform.question.value; } } function cKeyup(mobil) { document.getElementById('ccount').innerHTML=30-document.questionform.correct.value.length; if (!mobil == 1) { document.getElementById('correctpop').innerHTML = document.questionform.correct.value; } } function a1Keyup(mobil) { document.getElementById('f1count').innerHTML=30-document.questionform.alt1.value.length; if (!mobil == 1) { document.getElementById('alt1pop').innerHTML = document.questionform.alt1.value; } } function a2Keyup(mobil) { document.getElementById('f2count').innerHTML=30-document.questionform.alt2.value.length; if (!mobil == 1) { document.getElementById('alt2pop').innerHTML = document.questionform.alt2.value; } } function a3Keyup(mobil) { document.getElementById('f3count').innerHTML=30-document.questionform.alt3.value.length; if (!mobil == 1) { document.getElementById('alt3pop').innerHTML = document.questionform.alt3.value; } } function catChange(mobil) { if (!mobil == 1) { if (document.questionform.categorydrop.options.selectedIndex == 0) { document.getElementById('categoryName').innerHTML = " "; }else { document.getElementById('categoryName').innerHTML = document.getElementById('categorydrop').options[document.getElementById('categorydrop').selectedIndex].text; } } } function buttonOver() { overUrl = templateDir+'/img/send-question_down.png'; document.getElementById("sendbutton").style.backgroundImage='url("'+overUrl+'")'; document.getElementById("buttontext").style.paddingTop="19px"; } function buttonOut() { outUrl = templateDir+'/img/send-question_up.png'; document.getElementById("sendbutton").style.backgroundImage='url("'+outUrl+'")'; document.getElementById("buttontext").style.paddingTop="17px"; } function buttonOver_black() { overUrl = templateDir+'/img/back_btn_down.png'; document.getElementById("sendbutton_black").style.backgroundImage='url("'+overUrl+'")'; document.getElementById("buttontext_black").style.paddingTop="20px"; } function buttonOut_black() { outUrl = templateDir+'/img/back_btn.png'; document.getElementById("sendbutton_black").style.backgroundImage='url("'+outUrl+'")'; document.getElementById("buttontext_black").style.paddingTop="18px"; } function buttonOver_blackPixDuel() { overUrl = templateDir+'/img/back_btn_down_pixduel.png'; document.getElementById("sendbutton_black").style.backgroundImage='url("'+overUrl+'")'; document.getElementById("buttontext_black").style.paddingTop="20px"; } function buttonOut_blackPixDuel() { outUrl = templateDir+'/img/back_btn_pixduel.png'; document.getElementById("sendbutton_black").style.backgroundImage='url("'+outUrl+'")'; document.getElementById("buttontext_black").style.paddingTop="18px"; } function showAgreement() { document.getElementById('overlay').style.visibility='visible'; document.getElementById("qRubrik").innerHTML = q_rubrik; document.getElementById("qText").innerHTML = "
"+q_text+"
"; $('#overlay').fadeIn('fast', function() { }); } function showError() { document.getElementById('overlay').style.visibility='visible'; document.getElementById("qRubrik").innerHTML = err_rubrik; document.getElementById("qText").innerHTML = err_text; $('#overlay').fadeIn('fast', function() { }); } function showHelp() { document.getElementById('overlay').style.visibility='visible'; document.getElementById("qRubrik").innerHTML = question_title; document.getElementById("qText").innerHTML = question_text; $('#overlay').fadeIn('fast', function() { }); } function ratingHelp() { document.getElementById('overlay').style.visibility='visible'; document.getElementById("qRubrik").innerHTML = t1head; document.getElementById("qText").innerHTML = t1text; $('#overlay').fadeIn('fast', function() { }); } function qWritersHelp() { document.getElementById('overlay').style.visibility='visible'; document.getElementById("qRubrik").innerHTML = t2head; document.getElementById("qText").innerHTML = t2text; $('#overlay').fadeIn('fast', function() { }); } function qControllers() { document.getElementById('overlay').style.visibility='visible'; document.getElementById("qRubrik").innerHTML = t3head; document.getElementById("qText").innerHTML = t3text; $('#overlay').fadeIn('fast', function() { }); }