$(document).ready(function(e){
  $('#right .tentblogger-content-wrapper .tentblogger-social-twitter img').attr('align', 'left');
  $('#searchform .search').attr('placeholder', 'Search');

  $('ul.gf_directory li[title]').each(function(idx){
    eleThis = $(this);

    eleThis.addClass('cls'+ eleThis.attr('title').replace(' ', '') );
  });

  eleDirect = $('#right .clsAlexDrctry');

  if(eleDirect) {
    hdrHref = $('h3 .title a', eleDirect).attr('href');

    strTmp = '';

    $('div.wrap li.text a', eleDirect).each(function(idx){
      this.href = hdrHref + 'entry/' + this.href.split('/entry/')[1];
    });
  }



});


// JavaScript Document

$(function() {
$(".imgf").css("opacity","1.0");
$(".imgf").hover(function () {
$(this).stop().animate({
opacity:0.5
}, "slow");
},
function () {
$(this).stop().animate({
opacity: 1.0
}, "slow");
});
});

/*
$(function() {
$(".shareimg").css("opacity","0.7");
$(".shareimg").hover(function () {									  
$(this).stop().animate({
opacity: 1.0
}, "slow");
},	
function () {		
$(this).stop().animate({
opacity: 0.5
}, "slow");
});
});
*/

$(document).ready(function() { 
$('.toparrow').click(function(){ 
$('html, body').animate({scrollTop:0}, 'slow'); return false; 
}); 
});

$(document).ready(function(){ 
$("ul.firstnav-menu").superfish({ 
animation: {opacity:'show', height:'show', width:'show'},   // slide-down effect without fade-in 
delay:200,               // 1.2 second delay on mouseout 
autoArrows: false, 
speed: 'fast',
dropShadows: false
}); 
})

$(document).ready(function(){ 
$("ul.secondnav-menu").superfish({ 
animation: {opacity:'show', height:'show', width:'show'},   // slide-down effect without fade-in 
delay:200,               // 1.2 second delay on mouseout 
autoArrows: false, 
speed: 'fast',
dropShadows: false
}); 
})

jQuery(document).ready(function() {
    jQuery('#slide_').jcarousel();
});

$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({
			default_width:640,
			default_height:344
			});
			
		});

