// jQuery Codes

jQuery.noConflict();

jQuery(document).ready(function(){
  
  // Contact form validation initialazation
  jQuery("#contact-form").validate();
  
  // Simple slideshow implementation
  jQuery('.slideshow').cycle({
		fx: 'fade',
    timeout: 2000
	});
  
  // Accordion nav for the carts
  /*
  jQuery("#cart-nav").accordion({
    autoHeight: false,
    collapsible: true,
    animated: 'easeOutQuint'
  });
  */
  
  // Lightbox Functionality
	jQuery('.lightbox a').lightBox();
  /*jQuery('a[@rel*=lightbox]').lightBox();*/

});

// Centered Window Script
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  win = window.open(mypage,myname,settings)
}
