// JavaScript Document


$(document).ready(function(){
						   
// image rollovers, upload "imagename"-active.jpg
$(".rollover").hover(
	function(){
		if($(this).attr("src").indexOf("-active") == -1) {
			var newSrc = $(this).attr("src").replace(".jpg","-active.jpg#hover");
			$(this).attr("src",newSrc);
		}
	},
	function(){
		if($(this).attr("src").indexOf("-active.jpg#hover") != -1) {
			var oldSrc = $(this).attr("src").replace("-active.jpg#hover",".jpg");
			$(this).attr("src",oldSrc);
		}
	}
);

// scrollable
$(function() {		
				
			// initialize scrollable 
			$("div.scrollable").scrollable({
				vertical: true, 
				size: 1,
				interval: 5000,
				easing: 'swing',
				onBeforeSeek: function() {
					this.getItems().fadeTo(350, 0.5);		
				},
				// when seek ends resume items to full transparency
				onSeek: function() {
					this.getItems().fadeTo(350, 1);
				}
				
			// use mousewheel plugin
			}).autoscroll({autoplay: true}).circular();	
			
		});

// Inquiry Form
    $("#other_plush_description").hide();
								
	$("#type_of_product_3").click(function () {
      $("#other_plush_description").slideToggle("slow");
    });
	
	$("#type_of_product_4").click(function () {
      $("#other_plush_description").slideToggle("slow");
    });
	
	$("#type_of_product_5").click(function () {
      $("#other_plush_description").slideToggle("slow");
    });
	
	

});//dom ready


jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

$.preloadImages("../images/logo-active.png");


/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}