jQuery(function(){
  jQuery("a").bind("focus",function(){if(this.blur)this.blur();});

  jQuery("#comment_area ol > li:even").addClass("even_comment");
  jQuery("#comment_area ol > li:odd").addClass("odd_comment");
  jQuery(".even_comment > .children > li").addClass("even_comment_children");
  jQuery(".odd_comment > .children > li").addClass("odd_comment_children");
  jQuery(".even_comment_children > .children > li").addClass("odd_comment_children");
  jQuery(".odd_comment_children > .children > li").addClass("even_comment_children");
  jQuery(".even_comment_children > .children > li").addClass("odd_comment_children");
  jQuery(".odd_comment_children > .children > li").addClass("even_comment_children");

  jQuery("#guest_info input,#comment_textarea textarea")
    .focus( function () { jQuery(this).css({borderColor:"#33a8e5"}) } )
    .blur( function () { jQuery(this).css({borderColor:"#ccc"}) } );

  jQuery("#trackback_switch").click(function(){
    jQuery("#comment_switch").removeClass("comment_switch_active");
    jQuery(this).addClass("comment_switch_active");
    jQuery("#comment_area").animate({opacity: 'hide'}, 0);
    jQuery("#trackback_area").animate({opacity: 'show'}, 1000);
    return false;
  });

  jQuery("#comment_switch").click(function(){
    jQuery("#trackback_switch").removeClass("comment_switch_active");
    jQuery(this).addClass("comment_switch_active");
    jQuery("#trackback_area").animate({opacity: 'hide'}, 0);
    jQuery("#comment_area").animate({opacity: 'show'}, 1000);
    return false;
  });

  jQuery("#guest_info input,#comment_textarea textarea")
    .focus( function () { jQuery(this).css({borderColor:"#33a8e5"}) } )
    .blur( function () { jQuery(this).css({borderColor:"#ccc"}) } );

  jQuery("blockquote").append('<div class="quote_bottom"></div>');

  jQuery(".side_box:first").addClass("first_side_box");

});
//fontsize//
var min=8;
var max=28;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}
// tarayıcı css//
function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);
 $(document).ready(function(){




// QUICK CONTACT

$('#quickName').val('Adınız');
$('#quickEmail').val('E-posta adresiniz');
$('#quickComment').val('Mesajınız');

$('#quickName').focus(function() {
		$(this).val('');	
});

$('#quickEmail').focus(function() {
		$(this).val('');	
});

$('#quickComment').focus(function() {
		$(this).val('');	
});


});
 // QUICK CONTACT
$(document).ready(function(){
			  $('#quickContactForm').ajaxForm(function(data) {
				 if (data==1){
					 $('#success').fadeIn("slow");
					 $('#bademail').fadeOut("slow");
					 $('#badserver').fadeOut("slow");
					 $('#contact').resetForm();
					 }
				 else if (data==2){
						 $('#badserver').fadeIn("slow");
					  }
				 else if (data==3)
					{
					 $('#bademail').fadeIn("slow");
					}
					});
				 });
///////////////////
