
(function($){
		  $.fn.initScript=function(options){
	
					$('.copy .header .middle') 
					.cycle({ 
						fx:     'fade', 
						speed:  3000, 
						timeout: 8000
						});
						
					$(".Tooltip").toggle(
							  function () { $('.HelpText, .HelpText_2').fadeIn(); return false;}, 
							  function () { $('.HelpText, .HelpText_2').fadeOut(); return false; }
							);
					
					$(".HelpText, .HelpText_2").hover(
							  function () { }, 
							  function () { $(".Tooltip").click()}
							);
					
					
					$(".show, .show_1, .MakeanEnquiry a").click(function () {
					
						$(".close a").click(function () {
							$(this).parent("div").parent("div").parent("div").hide();
							return false
							}
						)
						$(this).parent("div").next("div").toggle();
						return false
					});
					$(".showDetails, .close a").click(function () {
					
						$(".close a").click(function () {
							$(this).parent("div").parent("div").parent("div").hide();
							return false
							}
						)
						$('.openline').toggle();
						return false
					});
					
					
					
					
					//$('.openline .note, .linenotes .note').wysiwyg();
				
					$(".leftmenu").treeview({
						animated: "fast",
						persist: "location",
						collapsed: true,
						unique: true
					});
					
					$('.initialfocus').focus();
					
					
					$('.listItemGroup, .listItemProduct, .actions, .salesDesc .show').corner({
						  tl: { radius: 5},
						  tr: { radius: 5},
						  bl: { radius: 5},
						  br: { radius: 5},
						  antiAlias: true,
						  autoPad: true,
						  validTags: ["div"] });
			
					$('.linenotesBasket .title, .checkoutHead').click(function(){
						$(this).next("div").slideToggle();
						});
			
				 } 
			
						
		  })(jQuery);
					
					
					
					
						
	
	
