jQuery(document).ready(function() {
//    jQuery('#slideshow').slideshow({
//        timeout: 7000,
//        type: 'sequence',
//        pauselink: 'pause',
//        pauseimage: '/images/icons/playback-pause.png',
//        playimage: '/images/icons/playback-play.png'
//    });

    if (jQuery("#node_title").length > 0)
    jQuery("#node_title").blur(function(){jQuery("#node_title_notice").fadeTo("fast",0.2)})
    jQuery("#node_title").focus(function(){jQuery("#node_title_notice").fadeTo("fast",1)})
    jQuery("#node_title").keyup(function(){
        if (jQuery("#node_title").val().length > 110 ){
            jQuery("#node_title").val(jQuery("#node_title").val().substr(0,110))
            animate("node_title_notice")
        }
        jQuery("#node_title_count").html((110-jQuery("#node_title").val().length).toString())
    })
})

var animate_on = false;
function animate(id){
    if (animate_on==false) {
        animate_on=true;
        jQuery("#"+id).fadeOut("fast",function(){jQuery("#"+id).fadeIn("fast",function() {animate_on=false;})})
    }
}
function go_country(url) {
    var country=document.getElementById("countries");
    window.location="/qna"+url+"?country="+country.options[country.selectedIndex].value;
}
