// for slides in and slides out

//for exits...
$(document).ready(function(){
  
  /*
     var startingHeight = 30; // Specifies the height of your navigation when collapsed

     var speed = 300; // Specifies the speed of the animation
     var heights = new Array();
     var i = 1;
     while ($("#nav"+i).length) {
        heights.push($("#nav"+i).height() + 8);
        $("#nav"+i).height(startingHeight);
        $("#nav"+i).mouseover(function () {
           $(this).stop().animate({height:heights[this.id.substr(3)-1]},{queue:false, duration:speed});
        });
        $("#nav"+i).mouseout(function () {
           $(this).stop().animate({height:startingHeight+'px'}, {queue:false, duration:speed});
        });

        i++;
     }
     $("#nav ul").css("visibility", "visible");

*/
// stop slide in and slide out

// resize blog post images to fit content area

$('.resize-pics img').addClass('resize');

$("img.resize").resize({
//    scale: 0.5, // 0.5 = 50%
    maxWidth: 390
//    maxHeight: 150
});

}); //stop jquery

// FOR JUKEBOX OPEN LINK
//  pass the url  and  optionally a width, height, and window name
function spawnWindow(url,name,w,h){
	if(w == undefined) w = 425;
	if(h == undefined) h = 425;
	if(name == undefined) name = "popWindow";
	var newWindow = window.open(url,name,"toolbar=0,scrollbars=1,resizable=1,width="+w+",height="+h+"\"");		
 }
 




