$(document).ready(function() {
   $('#rotate ul').tabs({ fxFade: false }).tabsRotate(2000);
/*	
	$("#retailers a").click(
		function(){
			$("#retailers").toggleClass("active");
			}
		);
	 
     $('a.show_retailer').click(function(){
     $('#retailer').slideDown("slow");
     $('a.show_retailer').hide(); 
     $('a.hide_retailer').show();
   });
     $('a.hide_retailer').click(function(){
     $('#retailer').slideUp("normal");
    $('a.hide_retailer').hide();
    $('a.show_retailer').show(); 
   });
	
     $('#note').hide();
     $('.show_note').click(function(){
     $('#note').slideDown("slow");
     $('.show_note').hide();
   });
        $('.hide_note').click(function(){
     $('#note').slideUp("normal");
     $('.show_note').show();
   });
 */
   $('#li_features').addClass('current');
   $('#specification').hide();
   $('#show_features').click(function(){
        $('#li_features').addClass('current');
        $('#features').slideDown('slow');
        $('#specification').slideUp('slow');
        $('#li_specification').removeClass('current');
   });
   $('#show_specification').click(function(){
        $('#li_specification').addClass('current');
        $('#features').slideUp('slow');
        $('#specification').slideDown('slow');
        $('#li_features').removeClass('current');
   });
   
                                                                 
       
   
  /* $("input.text, textarea.text").focusFields( 1, "#000000");      */
   
   
    $("input:text, textarea, input:password").each(function(){
        if(this.value == '')
            this.value = this.title;
    });
    $("input:text, textarea, input:password").click(function(){
        if(this.value == this.title)
            this.value = '';
    });
    $("input:text, textarea, input:password").blur(function(){
        if(this.value == '')
            this.value = this.title;
    });
    $("input:image, input:button, button:submit").click(function(){
        $(this.form.elements).each(function(){
            if(this.type =='text' || this.type =='textarea' || this.type == 'password' ){
                if(this.value == this.title && this.title != ''){
                    this.value='';
                }
            }
        });
    });
 });

function CloneValue(fromElementID,toElementID) {
     var fromElement = document.getElementById(fromElementID);
     if (typeof fromElement == 'undefined') {
          return;    //NOT FOUND
     }
     var toElement = document.getElementById(toElementID);
     if (typeof toElement == 'undefined') {
          return;    //NOT FOUND
     }
     if (fromElement.type != toElement.type) {
          return //Elements Not the same!
     }
     switch (fromElement.type.toLowerCase()) {
          case 'hidden':
          case 'text':
          case 'textarea':
          case 'hidden':
             toElement.value = fromElement.value;
             break;
          case 'radio':
          case 'checkbox':
             toElement.checked = fromElement.checked;
             break;
          case 'select-one':
          case 'select-multiple':
             if (fromElement.multiple == true) {
               var mySelections = Array();
               for (i=0;i<fromElement.options.length;i++) {
                    var mfOPTION = fromElement.options[i];
                    var mtOPTION = toElement.options[i];
                    mtOPTION.selected = mfOPTION.selected;
               }
             }
             else {
               toElement.selectedIndex = fromElement.selectedIndex;
             }
             break;
          default:
     }
}
 
