/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//Footer pagination
var current=0;
var total=3;

$(document).ready(function(){
    updateSlider(0);
})

function updateSlider(offset){
    $("#slider tr").hide();
    current=current+offset;
    if(current<0)
        current=total-1;
    else if(current>=total)
        current=0; 
    $($("#slider tr").get(current)).show();    
}

(function(a){
    a.log=function(){
        try{
            if(window.console&&window.console.log){
                console.log.apply(window.console,arguments)
            }
        }catch(Exception){}
    };
    
    a.fn.log=function(){
        a.log(this);
        return this
    }
})(jQuery);

jQuery.fn.reset = function () {
    $(this).each (function() {
        this.reset();
    });
}

function showPopup(theURL,winName) { //v2.0
    window.open(theURL,winName,'scrollbars=yes,width=900,height=600');
}



