$(document).ready(function() { 
$('#gallery') 
.before('<div id="gal">') 
.cycle({ 
    fx:     'fade', 
    speed:  '1000', 
    timeout: 0, 
    pager:  '#gal' 
});
});

$(function () {
    $('#pageNav a').click(function () {
        var target = $(this.hash);
        var hash = this.hash;
		var clicked = $(this);
		
        if (target.length) {
            var targetOffset = target.offset().top;
            $('html,body').animate({scrollTop: targetOffset}, 600);
			 //$('#mainNav a').removeClass('selected');      
			 //clicked.addClass('selected');
            return false;
		}
	});
});

jQuery(document).ready(function($) {
      $(".tweet").tweet({
        join_text: "auto",
        username: "14iacc",
        avatar_size: 58,
        count: 4,
        auto_join_text_default: "we said,", 
        auto_join_text_ed: "we",
        auto_join_text_ing: "we were",
        auto_join_text_reply: "we replied",
        auto_join_text_url: "we were checking out",
        loading_text: "loading tweets..."
      });
      $("#query").tweet({
        avatar_size: 32,
        count: 4,
        username: "14iacc",
        loading_text: "searching twitter..."
      });
      $("#userandquery").tweet({
        count: 3,
        query: "from:14iacc",
        loading_text: "searching twitter..."
      });
})

function ShowPicture(id,Source) { 
if (Source=="1"){ 
if (document.layers) document.layers[''+id+''].visibility = "show" 
else if (document.all) document.all[''+id+''].style.visibility = "visible" 
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible" 
} 
else 
if (Source=="0"){ 
if (document.layers) document.layers[''+id+''].visibility = "hide" 
else if (document.all) document.all[''+id+''].style.visibility = "hidden" 
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden" 
} 
} 
