//menu adding vehicle steps active or not function stepchk(objectid){ var object = jQuery("#"+objectid); if (object.attr('class') == 'steps_not_done' || object.attr('class') == 'step_act'){ return false; } else if (object.attr('href') != '#') { document.location.href = object.attr('href'); } } function submitPackage(form){ if (jQuery(form).valid()){ jQuery(form).submit(); } else { jQuery('#fixErrors').remove(); jQuery('.yellow_info_p:first').parent().append("
"+i18n.elg_cars_JS.fixerrors+"
"); //jQuery('.yellow_info_p:first').animate({scrollTop:0}, 'slow'); jQuery('html, body').animate({ scrollTop: jQuery('.yellow_info_p:first').parent().parent().parent().offset().top }, 500); return false; } } jQuery(document).ready(function(){ jQuery('.packbutton').change(function() { var uid = jQuery(this).attr("id"); jQuery('.package_details').hide(); if (jQuery(this).attr("checked")){ jQuery("#details"+uid).show();} else{jQuery("#details"+uid).hide(); } }); //jQuery('#img').tooltip({ // delay: 0, // showURL: false, // bodyHandler: function() { // return $("").attr("src", this.src); // } //}); jQuery('a.basic').cluetip(); });