// JavaScript Document
$(document).ready(function(){
$('.moblist').hide();				   
$('.bot1').click(function(){ $('.addcom').slideToggle(500); });					   
				 	
						   
							$("[watermarktext]").each(function(){
			$(this).addClass("Focus");
			$(this).val($(this).attr("watermarktext"));			
			$(this).focusin(function(){
				if($(this).val()==$(this).attr("watermarktext")){
					$(this).val('');
					$(this).removeClass("Focus");
				}
				}).focusout(function(){
				if($(this).val()==''){
					$(this).val($(this).attr("watermarktext"));
					$(this).addClass("Focus");
				}	
			});
		});


		
		$(function(){
				$("[corner=ture]").each(function(){	
				var rr= 5;
					if($(this).attr("rr") != undefined)
						rr=$(this).attr("rr")
					$(this).css("-moz-border-radius", rr + "px");
					$(this).css("-webkit-border-radius", rr + "px");
					$(this).css("border-radius", rr + "px");
					$(this).css("radius", rr + "px");
                
					
				});

		});


var prm = Sys.WebForms.PageRequestManager.getInstance();

prm.add_endRequest(function () {
    $(document).ready(function () {
        $("a[rel^='prettyPhoto']").prettyPhoto({ animation_speed: 'fast', slideshow: 10000, hideflash: true });
    });
});



var prm = Sys.WebForms.PageRequestManager.getInstance();

prm.add_endRequest(function () {


    $("[corner=ture]").each(function () {
        var rr = 5;
        if ($(this).attr("rr") != undefined)
            rr = $(this).attr("rr")
        $(this).css("-moz-border-radius", rr + "px");
        $(this).css("-webkit-border-radius", rr + "px");
        $(this).css("border-radius", rr + "px");
        $(this).css("radius", rr + "px");


    });

    $("[cornerDiv=true]").each(function () {
        var rr = 5;
        if ($(this).attr("rr") != undefined)
            radius = $(this).attr("rr")
        $(this).css("-moz-border-radius", rr + "px");
        $(this).css("-webkit-border-radius", rr + "px");
        $(this).css("border-radius", rr + "px");
        $(this).css("radius", rr + "px");


    });


    $("[watermarktext]").each(function () {
        $(this).addClass("Focus");
        $(this).val($(this).attr("watermarktext"));
        $(this).focusin(function () {
            if ($(this).val() == $(this).attr("watermarktext")) {
                $(this).val('');
                $(this).removeClass("Focus");
            }
        }).focusout(function () {
            if ($(this).val() == '') {
                $(this).val($(this).attr("watermarktext"));
                $(this).addClass("Focus");
            }
        });
    });



});


				$(function(){
				$("[cornerDiv=true]").each(function(){	
				var rr= 5;
					if($(this).attr("rr") != undefined)
						radius=$(this).attr("rr")
					$(this).css("-moz-border-radius", rr + "px");
					$(this).css("-webkit-border-radius", rr + "px");
					$(this).css("border-radius", rr + "px");
					$(this).css("radius", rr + "px");
                
					
				});

		});	

});
