var $j = jQuery.noConflict(); var $ = jQuery.noConflict(); var currentSlideIDX = 0; /*jQuery.fn.topFancybox = function(settings){ var a = top.document.createElement('a'); a.style.display ='none'; a.className=jQuery(this).find("a").className; a.href=jQuery(this).find("a").href; //return this.each(function(){ // a.class = this.className; // a.href = this.href; // }); top.document.body.appendChild(a); $(a).fancybox(settings); $(a).click(); };*/ jQuery.fn.switchClass = function(a, b) { elm = $(this); if ( elm.hasClass(a) ) { elm.removeClass(a).addClass(b); } else { elm.removeClass(b).addClass(a); } }; jQuery.easing.easeOutQuart = function (x, t, b, c, d) { return -c * ((t=t/d-1)*t*t*t - 1) + b; }; $(document).ready ( function() { /* $("img[class=Avatar]").each( function() { $(this).qtip({ content: { url: '/ajax/avatar_tooltip.asp', data: { MemberID: $(this).attr("id") }, method: 'get' }, position: { corner: { target: 'rightMiddle', tooltip: 'leftBottom' } }, style: { width: 350, background: '#A2D959', color: 'black', border: { width: 4, radius: 5, color: '#679727' }, tip: { corner: 'leftBottom', color: '#679727', size: { x: 30, y: 10 } } } }); }); */ $("img[class=ProductListImgLeft]").each( function() { $(this).qtip({ content: { url: '/ajax/storeitem_tooltip.asp', data: { StoreItemID: $(this).attr("id") }, method: 'get' }, position: { corner: { target: 'rightMiddle', tooltip: 'leftBottom' } }, style: { width: 350, background: '#A2D959', color: 'black', border: { width: 4, radius: 5, color: '#679727' }, tip: { corner: 'leftBottom', color: '#679727', size: { x: 30, y: 10 } } } }); }); $("img[class=ProductListImg]").each( function() { $(this).qtip({ content: { url: '/ajax/storeitem_tooltip.asp', data: { StoreItemID: $(this).attr("id") }, method: 'get' }, position: { corner: { target: 'rightMiddle', tooltip: 'leftBottom' } }, style: { width: 350, background: '#A2D959', color: 'black', border: { width: 4, radius: 5, color: '#679727' }, tip: { corner: 'leftBottom', color: '#679727', size: { x: 30, y: 10 } } } }); }); $("img[class=ProductListImgRight]").each( function() { $(this).qtip({ content: { url: '/ajax/storeitem_tooltip.asp', data: { StoreItemID: $(this).attr("id") }, method: 'get' }, position: { corner: { target: 'leftMiddle', tooltip: 'rightBottom' } }, style: { width: 350, background: '#A2D959', color: 'black', border: { width: 4, radius: 5, color: '#679727' }, tip: { corner: 'rightBottom', color: '#679727', size: { x: 30, y: 10 } } } }); }); $(".shrink-me").resize({ maxWidth: 770 }); $(".shrink-me-coupon").resize({ maxWidth: 540 }); $(".shrinkcouponsmall").resize({ maxWidth: 185 }); $("#FriendRequest").fancybox({ 'frameWidth':500, 'frameHeight':215, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false }); $(".FriendRequestMulti").fancybox({ 'frameWidth':500, 'frameHeight':200, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false }); $(".FriendRequest").fancybox({ 'frameWidth':500, 'frameHeight':200, 'hideOnContentClick':false }); $("a[class=locationselectbox]").fancybox({ 'frameWidth':800, 'frameHeight':500 }); $("a[class=profileblogwin]").fancybox({ 'frameWidth':800, 'frameHeight':600 }); $("a[class=reshareboardpostprofile]").fancybox({ 'frameWidth':450, 'frameHeight':242, 'showCloseButton': false, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':true }); $("a[class=selectclassadlocation]").fancybox({ 'frameWidth':230, 'frameHeight':225, 'hideOnContentClick':false }); $("a[class=categoryselectbox]").fancybox({ 'frameWidth':500, 'frameHeight':250, 'hideOnContentClick':false }); $("[class=profilebar]").fancybox({ 'frameWidth':712, 'frameHeight':385, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':false }); $("[class=profilebarblog]").fancybox({ 'frameWidth':800, 'frameHeight':500, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':false }); $("[class=loginmodal]").fancybox({ 'frameWidth':570, 'frameHeight':321, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':false }); $("[class=multiblogdelete]").fancybox({ 'frameWidth':600, 'frameHeight':250, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':false }); $("[class=profilebardeals]").fancybox({ 'frameWidth':664, 'frameHeight':400, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':false }); $("#ShowAutoDeals").fancybox({ 'frameWidth':500, 'frameHeight':400, 'showCloseButton': false, 'padding':0, 'margin':0, 'hideOnContentClick':false }); $("[class=profilebardocs]").fancybox({ 'frameWidth':664, 'frameHeight':400, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':false }); $("[class=profilebarvideo]").fancybox({ 'frameWidth':650, 'showCloseButton': false, 'padding':0, 'frameHeight':360 }); $("[class=adpricing]").fancybox({ 'frameWidth':694, 'showCloseButton': true, 'padding':0, 'frameHeight':491 }); $("[class=registrationdesc]").fancybox({ 'frameWidth':650, 'frameHeight':360, 'showCloseButton': true, 'padding':0, 'hideOnContentClick':false }); $("[class=sbvideohome]").fancybox({ 'frameWidth':577, 'frameHeight':360, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':false }); $("[class=profilebaraudio]").fancybox({ 'frameWidth':650, 'showCloseButton': false, 'padding':0, 'frameHeight':330 }); $("[class=profilemedia]").fancybox ({ 'frameWidth':753, 'frameHeight':417, 'padding':0, 'showCloseButton':false, 'overlayOpacity':0, 'showOverlay':false, 'hideOnContentClick':false }); $("[class=ravepost]").fancybox({ 'frameWidth':400, 'frameHeight':350, 'showCloseButton':false, 'padding':0 }); $("#AdMenuImage").fancybox({ 'frameWidth':450, 'frameHeight':100, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false, 'callbackOnClose': loadProfileMenuView }); $("[class=AddEditProfileLink]").fancybox({ 'frameWidth':450, 'frameHeight':197, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false, 'callbackOnClose': loadProfileLinksView }); $("[class=AddEditLocalWebsiteLink]").fancybox({ 'frameWidth':450, 'frameHeight':239, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false }); $("[class=AddEditProfileDeal]").fancybox({ 'frameWidth':711, 'frameHeight':400, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false }); $("[class=ShowYourBrands]").fancybox({ 'frameWidth':600, 'frameHeight':400, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false }); $("[class=ChangeSBCity]").fancybox({ 'frameWidth':450, 'frameHeight':242, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false }); $("[class=MapIt]").fancybox({ 'frameWidth':500, 'frameHeight':500, 'hideOnContentClick':false }); $("#ContactMe").fancybox({ 'frameWidth':500, 'frameHeight':320, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false }); $("[class=showservices]").fancybox({ 'frameWidth':664, 'frameHeight':400, 'showCloseButton': true, 'padding':0, 'hideOnContentClick':false }); $("[class=createnewevent]").fancybox({ 'frameWidth':450, 'frameHeight':200, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=requestrave]").fancybox({ 'frameWidth':450, 'frameHeight':242, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=EditYourHeadline]").fancybox({ 'frameWidth':450, 'frameHeight':219, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=QRCode]").fancybox({ 'frameWidth':350, 'frameHeight':340, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=catchange]").fancybox({ 'frameWidth':330, 'frameHeight':130, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=changedetails]").fancybox({ 'frameWidth':330, 'frameHeight':168, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=nykatest]").fancybox({ 'frameWidth':250, 'frameHeight':700, 'showCloseButton': true, 'padding':0, 'hideOnContentClick':true }); $("[class=uploadmedia]").fancybox({ 'frameWidth':450, 'frameHeight':242, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=shareboardmedia]").fancybox({ 'frameWidth':650, 'frameHeight':520, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=launchvideoshare]").fancybox({ 'frameWidth':450, 'frameHeight':242, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=reshareboardpost]").fancybox({ 'frameWidth':450, 'frameHeight':242, 'showCloseButton': false, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':true }); $("[class=signupbizcats]").fancybox({ 'frameWidth':500, 'frameHeight':400, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':true }); $("[class=requestcompleteprofile]").fancybox({ 'frameWidth':330, 'frameHeight':120, 'showCloseButton': true, 'padding':0, 'hideOnContentClick':true }); $("a[class=adimg]").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 1000, 'zoomOpacity': true, 'overlayOpacity': 0.5, 'frameWidth': 500, 'overlayShow': true, 'frameHeight': 500, 'hideOnContentClick': true }); $("a[class=profileEditVideo]").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 1000, 'zoomOpacity': true, 'overlayOpacity': 0.5, 'frameWidth': 339, 'overlayShow': true, 'frameHeight': 260, 'callbackOnClose': showMPOW, 'hideOnContentClick': false }); $("a[class=classadvideo]").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 1000, 'zoomOpacity': true, 'overlayOpacity': 0.5, 'frameWidth': 550, 'overlayShow': true, 'frameHeight': 376, 'hideOnContentClick': false }); $("a.overlay-flash").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 1000, 'zoomOpacity': true, 'overlayOpacity': 0.5, 'frameWidth': 550, 'overlayShow': true, 'frameHeight': 376, 'hideOnContentClick': false }); $("a.image-error").fancybox({ 'frameWidth':500, 'frameHeight':200, 'showCloseButton': false, 'padding':0, 'hideOnContentClick':false }); $("a.sendtofriend").fancybox({ 'frameWidth': 550, 'frameHeight': 340, 'showCloseButton': false, 'padding':0, 'hideOnContentClick': false }); $("a.miniprofile").fancybox({ 'frameWidth': 500, 'frameHeight': 340, 'showCloseButton': false, 'padding':0, 'hideOnContentClick': false }); $("a.overlay-flash2").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 1000, 'zoomOpacity': true, 'overlayOpacity': 0.5, 'frameWidth': 339, 'overlayShow': true, 'frameHeight': 260, 'callbackOnClose': showMPOW, 'hideOnContentClick': false }); $("a.overlay-flash3").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 1000, 'zoomOpacity': true, 'overlayOpacity': 0.5, 'frameWidth': 339, 'overlayShow': true, 'frameHeight': 260, 'hideOnContentClick': false }); $("a[class=profileimg]").fancybox({ 'frameWidth': 500, 'overlayShow': true, 'frameHeight': 500, 'hideOnContentClick': true }); $("a[class=profilevideo]").fancybox({ 'frameWidth': 550, 'overlayShow': true, 'frameHeight': 375, 'hideOnContentClick': false, 'callbackOnClose': stopVideo }); $("a[class=profilestoreitem]").fancybox({ 'frameWidth': 550, 'frameHeight': 430, 'showCloseButton': false, 'title': false, 'padding': 0, 'hideOnContentClick': false }); $("a[class=manageshipping]").fancybox({ 'frameWidth': 500, 'overlayShow': true, 'frameHeight': 400, 'padding':0, 'hideOnContentClick': false, 'showCloseButton': false }); $("a[class=manageorders]").fancybox({ 'frameWidth': 800, 'overlayShow': true, 'frameHeight': 500, 'hideOnContentClick': false }); $("a[class=ItemImg]").fancybox({ 'frameWidth': 400, 'overlayShow': false, 'zoomSpeedIn': 750, 'zoomSpeedOut': 750, 'frameHeight': 400, 'hideOnContentClick': true, 'showCloseButton': true }); $("a[class=ItemProfileImg]").fancybox({ 'frameWidth': 400, 'overlayShow': false, 'zoomSpeedIn': 750, 'zoomSpeedOut': 750, 'frameHeight': 400, 'hideOnContentClick': true, 'showCloseButton': false }); $("a[class=profileblog]").fancybox({ 'frameWidth': 950, 'overlayShow': true, 'frameHeight': 500, 'hideOnContentClick': false }); $("a[class=addproductfromedirprofile]").fancybox({ 'frameWidth': 500, 'overlayShow': true, 'frameHeight': 400, 'hideOnContentClick': false }); $("a[class=profilethumb]").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 200, 'speedOut' : 200, 'overlayShow' : true, 'showCloseButton' : false }); $("a[class=AdMenuImage]").fancybox({ 'frameWidth':450, 'frameHeight':100, 'padding':0, 'showCloseButton': false, 'hideOnContentClick':false, 'callbackOnClose': loadProfileMenuView }); return false; }); $j(document).ready( function() { if($j('#slideshow > div')) { $j('#slideshow > div').hide(); $j('#slideshow > div:first').fadeIn('slow'); setInterval( "slideSwitch()", 8000 ); } $j("[class=btnRollOver]").mouseover( function() { var s = new String($j(this).attr('src')); s = s.replace('Off.','On.'); $j(this).attr('src',s.valueOf()); }); $j("a[class=PagingUnSelected]").click( function() { $j('a[class=PagingSelected]').switchClass('PagingSelected','PagingUnSelected'); $j('div[class=PagingSelected]').switchClass('PagingSelected','PagingUnSelected'); $j(this).parent().switchClass('PagingUnSelected','PagingSelected'); $j(this).switchClass('PagingUnSelected','PagingSelected'); }); $j("[class=btnRollOver]").mouseout( function() { var s = new String($j(this).attr('src')); var e = document.getElementById('classcatselected'); if(e) { t = e.innerHTML; if(s.indexOf(t) != -1) {return false;} } s = s.replace('On.','Off.'); $j(this).attr('src',s.valueOf()); }); }); function slideSwitch() { var $slides = $j('#slideshow > div'); var slideCount = $slides.length-1; currentSlideIDX = new Number(currentSlideIDX); $j('#slide'+ currentSlideIDX).fadeOut(2000); if(currentSlideIDX < slideCount) { var nextSlideIDX = currentSlideIDX+1; } else { var nextSlideIDX = 0; } $j('#slide'+ nextSlideIDX).fadeIn(2000); currentSlideIDX = nextSlideIDX; } function resetPassword() { EmOrUid = document.getElementById('EmailOrUsername').value; $j.post('/ajax/retrieve_passwrord.aspx', {EmailOrUsername : EmOrUid}, function(data) { result = new String(data); if(result.indexOf('error') != -1) { // show the error document.getElementById('ErrStr').innerHTML = '

 

The Username or E-mail that you\'ve indicated could not be found. Please try again'; } else { // show the result document.getElementById('ErrStr').innerHTML = ''; document.getElementById('RESETFORM').innerHTML = 'Your password has been reset!

An e-mail has been sent to ' + data + ' with a new passowrd for you to use. Once you have logged in, you may change your password to any value you like from your dashboard. Please check your e-mail to retrieve your new password.'; } }); } function displayComposeMailAvatar(which) { $j.post('/ajax/getavatar.asp', {MemberID : which, AvatarType : 'SMALL'}, function(data) { result = new String(data); document.images['MemberAvatar'].src = result; } ); } function sendMail() { var f = document.frmSendMail; var subj = f.Subject.value; var msg = f.Message.value; var mid = f.MemberID.value; $j.post('/ajax/sendmail.aspx', {MemberID : mid, Subject : subj, Message : msg}, function(data) { result = new String(data); }); } function sendPassword(strUN) { $j.post('/ajax/send_password.aspx', {Username : strUN}, function(data) { result = new String(data); }); } function stopVideo() { $("#fancy_frame").remove(); } function LoadCategory() { var SelectedParentID = top.document.getElementById('CategoryName').value; document.getElementById('loadingcats').innerHTML = '
Loading...
'; document.getElementById('fmeProcess').src = '/ajax/profile_storeboard_catselect.asp?ParentID=' + SelectedParentID; } function loadProfileLinksView() { location.href = '/profile/profile_addedit.asp?view=links'; } function loadProfileMenuView() { location.href = '/profile/profile_addedit.asp?view=menu'; } function updateStatus() { var f = document.frmDashboardStatusUpdate; var s = f.StatusUpdate.value; if(f.StatusUpdate.value == 'Status Update') { alert('Please type in a status message before clicking share'); f.StatusUpdate.focus(); return false; } if(s.length > 1000) { alert('Status Updates are limited to 1000 characters. You have entered'+s.length+' characters.'); return false; } var mid = ''; $j.post('/ajax/status_update_profile.asp', {MemberID : mid, StatusUpdate: s}, function(data) { result = new String(data); //alert(result); document.getElementById('CURRENTSTATUS').innerHTML = s; document.getElementById('CURRENTSTATUSDATETIME').innerHTML = 'one second ago'; document.getElementById('CURRENTSTATUSID').innerHTML = 'Remove'; document.frmDashboardStatusUpdate.StatusUpdate.value = 'Status Update'; }); //return false; } function loadRegStateList(CID,SID,w) { document.getElementById('STATEIDSELECT').innerHTML = '
LoadingLoading States - Please Wait...
'; if(w == undefined) {w='300'}; $j.get('/ajax/register_state_select.asp', {CountryID : CID, StateID : SID, Width : w}, function(data) { document.getElementById('STATEIDSELECT').innerHTML = data; }); } function loadRegIntList(CID,RID) { document.getElementById('REGIONSELECT').innerHTML = '
LoadingLoading Regions - Please Wait...
'; $j.get('/ajax/register_intregion_select.asp', {CountryID : CID, MemberRegionID : RID}, function(data) { document.getElementById('REGIONSELECT').innerHTML = data; }); } function loadRegCountyList(SID,CID,w,z) { document.getElementById('COUNTYSELECT').innerHTML = '
LoadingLoading Counties - Please Wait...
'; if(w == undefined) {w='300'}; if(z == undefined) {z=''}; $j.get('/ajax/register_county_select.asp', {CountyID : CID, StateID : SID, Zip : z, Width : w}, function(data) { document.getElementById('COUNTYSELECT').innerHTML = data; }); } function loadRegPrStateList(CID,SID,w) { document.getElementById('PRSTATEIDSELECT').innerHTML = '
LoadingLoading States - Please Wait...
'; if(w == undefined) {w='300'}; $j.get('/ajax/register_prstate_select.asp', {CountryID : CID, PrStateID : SID, Width : w}, function(data) { document.getElementById('PRSTATEIDSELECT').innerHTML = data; }); } function loadRegionList(SID,mrid) { document.getElementById('REGIONSELECT').innerHTML = '
LoadingLoading Regions - Please Wait...
'; $j.get('/ajax/register_region_select.asp', {StateID : SID, MemberRegionID : mrid}, function(data) { document.getElementById('REGIONSELECT').innerHTML = data; }); } function loadRegCityList(SID,c,w) { document.getElementById('CITYSELECT').innerHTML = '
LoadingLoading Cities - Please Wait...
'; $j.get('/ajax/register_city_select.asp', {StateID : SID, City : c, Width : w}, function(data) { document.getElementById('CITYSELECT').innerHTML = data; }); } function loadRegPrCityList(SID,c,w) { document.getElementById('PRCITYSELECT').innerHTML = '
LoadingLoading Cities - Please Wait...
'; $j.get('/ajax/register_prcity_select.asp', {PrStateID : SID, PrCity : c, Width : w}, function(data) { document.getElementById('PRCITYSELECT').innerHTML = data; }); } function loadRegZipcodeList(SID,c,w,z) { document.getElementById('ZIPSELECT').innerHTML = '
LoadingLoading Zipcodes - Please Wait...
'; $j.get('/ajax/register_zipcode_select.asp', {StateID : SID, City : c, Width : w, Zip : z}, function(data) { document.getElementById('ZIPSELECT').innerHTML = data; }); } function loadRegPrZipcodeList(SID,c,w,z) { document.getElementById('PRZIPSELECT').innerHTML = '
LoadingLoading Zipcodes - Please Wait...
'; $j.get('/ajax/register_przipcode_select.asp', {PrStateID : SID, PrCity : c, Width : w, PrZip : z}, function(data) { document.getElementById('PRZIPSELECT').innerHTML = data; }); } function loadProfileStateList(CID,SID) { $j.get('/ajax/profile_state_select.asp', {CountryID : CID, StateID : SID}, function(data) { document.getElementById('STATEIDSELECT').innerHTML = data; }); } function setRedir(f) { var username = f.log.value; f.redirect_to.value = 'http://www.storeboard.com/' + username; return true; } function goStoreBoard(which) { var re = new RegExp('\\w+'); var f = document.frmMainSearch; // if(document.getElementById('CATEGORYDISPLAY').innerHTML == 'Select a Category!') {alert('Please select a category to begin your search');return false;} if(document.getElementById('LOCATIONDISPLAY').innerHTML == 'Select Your Location!') {alert('Please select a location where you\'d like to begin your search');return false;} f.redir.value = which; f.submit(); } function viewMailWin(url,wName) { var w = 700; var h = 500; var l = (screen.width-w)/2; var t = (screen.height-h)/2; var win = window.open(url,wName,'width=' + w + ',height=' + h + ',left=' + l + ',top=' + t + ',scrollbars=no,toolbar=no,resizable=no',wName).focus(); return false; } function hideMPOW() { document.getElementById('MPOW').style.display='none'; } function showMPOW() { document.getElementById('MPOW').style.display='block'; } function validateNumeric(obj) { ov = new String(obj.value); if(ov.toString() == '-') { return false; } if (isNaN(obj.value)) { obj.value = ov.substring(0,ov.length -1); } } function ShowHideObject(id) { if(document.getElementById(id).style.display == '') { document.getElementById(id).style.display = 'none'; } else { document.getElementById(id).style.display = ''; } }