/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**FUNCTION for the main jQuery parts.
 * Martin Modl.
 */
function jQueryMainFunctions()
{  
  jQuery(function()
  {    
    // ------------------------------ LIGHTBOX
    jQuery('.lightbox').lightBox();    
    // ------------------------------
    jQuery(document).ready(function(){
        jQuery(document).pngFix();
    });             
  });
}

// ------------------------------
//FUNCTION removes the appended form field.
function removeFormField(id) {  
  jQuery(id).remove();
}  

/**FUNCTION redirect the site to the target site after confirm.
 * Martin Modl.
 */
function confirmation_redirection(url, text) {
  var question = confirm(text);
  if (question == true) {
    window.location.href = url;
  }
}

/**FUNCTION shows and hides the id html tag.
 *Martin Modl.
 */
function showHideID(id) {
  //var display = (document.getElementById(id).style.display == 'none') ? 'block' : 'none';
  //document.getElementById(id).style.display = display;
  if(jQuery("#" + id).is(":visible")) {
     jQuery("#" + id).hide("slow");
  } else {
     jQuery("#" + id).show("slow");
  }
}
