// For home page slideshow

$(window).load(function() {
    $('#slider').nivoSlider({
		effect: 'sliceUpDownLeft',
		controlNav: false,
        directionNav:true, // Next & Prev navigation
        directionNavHide:false, // Only show on hover
        manualAdvance:true, // Force manual transitions
        captionOpacity:0.8, // Universal caption opacity
        prevText: 'Prev', // Prev directionNav text
        nextText: 'Next', // Next directionNav text
        beforeChange: function(){}, // Triggers before a slide transition
        afterChange: function(){}, // Triggers after a slide transition
        slideshowEnd: function(){}, // Triggers after all slides have been shown
        lastSlide: function(){}, // Triggers when last slide is shown
        afterLoad: function(){} // Triggers when slider has loaded
    });
});

//For image magnification

window.onload=function(){
if(!document.getElementById || !document.getElementsByTagName) return;
links=document.getElementById("div-zoom").getElementsByTagName("a");
for(i=0;i<links.length;i++)
    links[i].onclick=function(){Show(this);return(false)}
}

function Show(obj){
bigimg=document.getElementById("bigimage");
bigimg.src=obj.getAttribute("href");
smallimg=obj.getElementsByTagName("img")[0];
}
