//LOADER AND ON OFF BUTTONS

function movepic (img_name,img_src) {
  //How long to show the loader for in ms (eg 3 seconds)
  var spinnerShowTime = 2000

  //Show the loader
  document.getElementById('loading').style.display = "block";

  //Change the img src
  document[img_name].src=img_src;

  //Set the timeout on the loader
  setTimeout("hideSpinner()", spinnerShowTime);
}

function hideSpinner() {
  document.getElementById('loading').style.display = "none";
}

function getoj(id) {
return document.getElementById(id).setAttribute("class", "photoon");
}


//SLIDEOUT TAB


         $(function(){
             $('.slide-out-div').tabSlideOut({
                 tabHandle: '.handle',                              //class of the element that will be your tab
                 pathToTabImage: 'media/arrow.gif',          //path to the image for the tab (optionaly can be set using css)
                 imageHeight: '100px',                               //height of tab image
                 imageWidth: '160px',                               //width of tab image    
                 tabLocation: 'top',                               //side of screen where tab lives, top, right, bottom, or left
                 speed: 300,                                        //speed of animation
                 action: 'click',                                   //options: 'click' or 'hover', action to trigger animation
                 topPos: '100px',                                   //position from the top
                 fixedPosition: false                               //options: true makes it stick(fixed position) on scroll
             });
         });




//SUPERSIZE OPTIONS

		$(function(){
			$.fn.supersized.options = {  
				startwidth: 794,  
				startheight: 524,
				vertical_center: 1,
				slideshow: 1,
				navigation: 1,
				transition: 1, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
				pause_hover: 0,
				slide_counter: 1,
				slide_captions: 1,
				slide_interval: 3000  
			};
	        $('#supersize').supersized(); 
	    });
		
		
		