$(document).ready(function(){
    $("input:text, textarea, input:password").each(function(){
        if(this.value == '')
            this.value = this.title;
    });
    $("input:text, textarea, input:password").focus(function(){
        if(this.value == this.title)
            this.value = '';
    });
    $("input:text, textarea, input:password").blur(function(){
        if(this.value == '')
            this.value = this.title;
    });
    $("input:image, input:button, input:submit").click(function(){
        $(this.form.elements).each(function(){
            if(this.type =='text' || this.type =='textarea' || this.type =='password' ){
                if(this.value == this.title && this.title != ''){
                    this.value='';
                }
            }
        });
    });
    
    $(".map_menu_mail a").fancybox({
        'frameWidth':   500,
        'frameHeight':  230
    });
    $(".place_clip a").fancybox({
        'frameWidth':   500,
        'frameHeight':  400
    });
    $(".place_estmDescription a").fancybox({
        'frameWidth':   500,
        'frameHeight':  400
    });
    $(".fair_clip a").fancybox({
        'frameWidth':   500,
        'frameHeight':  400
    });
    $(".place_head_clip a").fancybox({
        'frameWidth':   500,
        'frameHeight':  400
    });
    $(".place_action a.checkRequest").fancybox({
        'frameWidth':   500,
        'frameHeight':  400
    });	
    $(".side_place_chkClip a").fancybox({
        'frameWidth':   500,
        'frameHeight':  400
    });	
    $("#login_box a.checkClip").fancybox({
        'frameWidth':   500,
        'frameHeight':  400
    });	
	
});

$(function(){



	$(".linkBlank").click(function(){
        window.open(this.href, '');
        return false;
    });
    
    $(".side_cal_action").livequery('click',function(){
        $.get("/place/calendar/"+$(this).attr('title'),
            function(data){
                $(".side_fair div").html(data);
            }
        );
    });
});

jQuery(window).bind("load", function(){
	jQuery("div#slider1").codaSlider();
});


function jumpMenu(targ,selObj,restore){ //v3.0
    selUrl = selObj.options[selObj.selectedIndex].value;
	if( selUrl != "-"){
      eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0;
	}
}
