﻿/**
*	Javascript Tools based on jquery
*
*	@date		2009-02-12
*	@author		Michal Gondar
*	@copyright	Live Nation (Music) UK
*   @require    jquery
*   @jquery     jquery-1.3.1.min.js
*
*   This is main file with javascript outside class.
*/


/*
 *  check all input[type=text] elements,
 *  remember default value
 *  make onFocus, onBlur functions
 *  // make focus on first found input
 */
 /*
$(document).ready(function() {
    $("input[type=text]").focus(function() {
        if( this.defVal == null ) {
            this.defVal = $(this).val();
        }
        if( this.value == this.defVal ) {
            this.value = "";
        }
    });
    $("input[type=text]").blur(function() {
        if( this.value == "" ) {
            this.value = this.defVal;
        }
    });

    // select first input box
    if( $("input[type=text]")[0] ) {
        $("input[type=text]")[0].focus();
    }

});
*/


/* A-Z bands select */
/* makes option clickable */
$(document).ready(function() {
    $("#azbands select").change(function () {
        if( this.value ) {
            window.location = "/lineup/artist.aspx?aid=" + this.value;
        }
    });
});