jQuery.noConflict(); //This is used to toggle the slide display of the Send-to-a-Friend Form jQuery(document).ready(function() { jQuery("h5.SendFriend a").click(function () { jQuery("#SendToAFriend").slideToggle(); jQuery("body").click(onBlurSendToAFriend); return false; }); jQuery("#SendToAFriend a.Close").click(closeSendToAFriend); }); jQuery(document).ready(function() { jQuery(".SBResources a[href^='http']").attr('target','_blank'); }); jQuery(document).ready(function() { if(jQuery("#SendToAFriend .Errors, #SendToAFriend .Success").size() > 0) { jQuery("#SendToAFriend").show(); } }); function closeSendToAFriend() { jQuery("*").unbind('click',onBlurSendToAFriend); jQuery("#SendToAFriend").slideUp(); return false; } function onBlurSendToAFriend(event) { if(jQuery(event.target).attr('id') != 'SendToAFriend' && jQuery(event.target).parents('#SendToAFriend').size() == 0) { closeSendToAFriend(); } return true; } // This is used to clear the comment/send to friend forms. function clickclear(thisfield, defaulttext) { if (thisfield.value == defaulttext) { thisfield.value = ""; } } // This is used to clear the comment/send to friend forms. function clickrecall(thisfield, defaulttext) { if (thisfield.value == "") { thisfield.value = defaulttext; } } // This is used to make custom check images in the place of radio buttons function ToggleBG(Container,ElemID,ElemTag,CheckboxID){ var Labels = document.getElementById(Container).getElementsByTagName(ElemTag); for(i=0; i