var curleft; var curtop; //new Window({url: "window_key_url_content.html", className: "alphacube" }).show() //WindowCloseKey.init(); function movepic(img_name,img_src) { window.document.images['ImgSwapper'].src=img_src; } function HelpFul(FAQID,Flag) { //MyRefer= document.referrer; script = document.createElement( 'script' ); PageSource=SITE+'ProductHandler.php?action=HelpFull&FAQID='+FAQID+'&Flag='+Flag; //alert(PageSource); script.src = PageSource; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function Post404Alert(MyRefer) { //MyRefer= document.referrer; script = document.createElement( 'script' ); PageSource=SITE+'ProductHandler.php?action=404PageHit&Refer'+MyRefer; script.src = PageSource; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function CheckForm(MyForm) { ErrorMessage=""; Nick_Name=MyForm.Nick_Name.value; if(Nick_Name == '') { //document.getElementById('Nick_Name').className = 'redTD'; ErrorMessage+='Please Enter Nick_Name\n'; } Your_Email=MyForm.Your_Email.value; if(Your_Email == '') { //document.getElementById('Your_Email').className = 'redTD'; ErrorMessage+='Please Enter Your_Email\n'; } Your_Location=MyForm.Your_Location.value; if(Your_Location == '') { //document.getElementById('Your_Location').className = 'redTD'; ErrorMessage+='Please Enter Your_Location\n'; } Your_Story=MyForm.Your_Story.value; if(Your_Story == '') { //document.getElementById('Your_Story').className = 'redTD'; ErrorMessage+='Please Enter Your_Story\n'; } Your_Photo_Location=MyForm.Your_Photo_Location.value; if(Your_Photo_Location == '') { //document.getElementById('Your_Photo_Location').className = 'redTD'; ErrorMessage+='Please Enter Your_Photo_Location\n'; } if(MyForm.MiniContestRules.checked != true) {ErrorMessage+='Please Confirm that you accept the contest rules.\n';} if(MyForm.consent.checked != true) {ErrorMessage+='Please Confirm that you are 18 years of age or older or have parental consent to enter.\n';} if(ErrorMessage == '') { MyForm.submit(); } else { //ErrorMessage+=SITECHECKOUT; alert(ErrorMessage); } } function LikeIt(PageID) { //Add to EGLikeIt and reload NumLiked script = document.createElement( 'script' ); PageSource=SITE+'ProductHandler.php?action=AddToNumLiked&PageID='+PageID; script.src = PageSource; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function LoadNumLiked(PageID) { script = document.createElement( 'script' ); PageSource=SITE+'ProductHandler.php?action=LoadLikeIt&PageID='+PageID; script.src = PageSource; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function IE6Check() { if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x; var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number if (ieversion==6) { IEAlertText="You are about to view FleeceFootwear using Internet Explorer 6.

In solidarity with web giants such as Google, FaceBook and YouTube, FleeceFootwear is not fully compatible with thisversion of Internet Explorer.

PC World Magazine labeled IE 6 as the \"least secure software on the planet\" and IE 6 is commonly found on lists titled \" the worsttech products of all time.\"

Learn more about IE 6 here.

Upgrade to IE 8 here."; alert(IEAlertText); } } } function whichElement(e) { var targ; if (!e) { var e=window.event; } if (e.target) { targ=e.target; //alert('inside target'); } else if (e.srcElement) { targ=e.srcElement; //alert('inside srcelement'); } if (targ.nodeType==3) // defeat Safari bug { targ = targ.parentNode; // alert('inside parentnode'); } var tname; tname=targ.tagName; tID=targ.id; if(tID != "SearchResults" && tname!= "A") { //alert("You clicked on a " + tname + " element. ID="+tID); QuickSearchClear(); } } function QuickSearch(SearchTxt,MyForm) { script = document.createElement( 'script' ); PageSource=SITE+'ProductHandler.php?action=QuickSearch&SearchTxt='+SearchTxt; script.src = PageSource; document.getElementsByTagName( 'head' )[0].appendChild( script ); document.getElementById('MenuBar1').innerHTML=""; } function QuickSearchClear() { document.getElementById('SearchResults').innerHTML = ''; //document.getElementById('MenuBar1').innerHTML='
  • NEW
  • WOMEN
  • MEN
  • KIDS
  • SALE
  • '; } function GoToColor(StyleNumber,ColorCode) { //http://www.fleecefootwear.com/Ugg-womens/boots/CLASSIC%20SHORT.html?ColorCode=black&Style=CLASSIC%20SHORT&ColorDesc=Black&Gender=womens&Cat=10 Relocation = SITE+'ProductHandler.php?action=GetNewColor2&ColorCode='+ColorCode+'&StyleNumber='+StyleNumber; alert(Relocation); window.location=Relocation; } function insideWindow(DivID,Style_Number,Gender) { findPos(document.getElementById(DivID)); var win = new Window("win1", {className: "alphacube", top:curtop, left:curleft, width:400, Height:100,title:"Other Colors" ,maximizable: false, minimizable: false}); //win.getContent().innerHTML = OtherColorImgs; //win.setDestroyOnClose(); //win.show(); var url = SITE+'ProductHandler.php?action=GetColorQuickView&DivID='+DivID+'&Style_Number='+Style_Number+'&Gender='+Gender; //alert(url); script = document.createElement( 'script' ); script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function HideQuickViewButton(DivID) { //document.getElementById(DivID).src = ""; document[DivID].src="https://www.fleecefootwear.com/images/spacer.gif"; } function ColorsSlide(DivID,MainImgDiv) { //var x=document.getElementById(MainImgDiv).offsetLeft; //var y=0; var div = document[DivID]; y=document[DivID].offsetTop-20; //x=document[DivID].offsetLeft+100; //alert(MyVar[cur_left]); //NewLeft=x-20; //newLeftWpx=NewLeft+"px"; //alert(y); //div.style.left=newLeftWpx; div.style.top=y; //div.style.left=x; document[DivID].src="https://www.fleecefootwear.com/images/MoreColors.png"; //document.getElementById(DivID).src = "https://www.fleecefootwear.com/images/QuickViewButton.png"; } function findPos(obj) { curtop=-50; curleft=90; if (obj.offsetParent) { do { curleft += obj.offsetLeft; curtop += obj.offsetTop; } while (obj = obj.offsetParent); } //alert("curleft="+curleft+" curtop="+curtop); } function slideOutColors(elementId,LeftPos,TopPos) { //left: 550px; //top: 10px; //id of the element,left position,top position,width,height,animation length (in milliseconds),callback function var element = document.getElementById(elementId); animate(elementId, LeftPos, TopPos, 230, 220, 800, null); element.down = true; element.up = false; } function PostTellAFriend(myForm) { action=myForm.action.value; SenderName=myForm.SenderName.value; SenderEmail=myForm.SenderEmail.value; FriendsName=myForm.FriendsName.value; FriendsEmail=myForm.FriendsEmail.value; PersonalMessage=myForm.PersonalMessage.value; Code=myForm.Code.value; Style=myForm.Style.value; Color=myForm.Color.value; ColorCode=myForm.ColorCode.value; SubCat=myForm.SubCat.value; Gender=myForm.Gender.value; ImgCode=myForm.ImgCode.value; GoLoc=SITE+'phpscripts/TellAFriendHandler.php?action='+action+'&SenderName='+SenderName+'&SenderEmail='+SenderEmail+'&FriendsName='+FriendsName+'&FriendsEmail='+FriendsEmail+'&PersonalMessage='+PersonalMessage+'&Code='+Code+'&Style='+Style+'&Color='+Color+'&ColorCode='+ColorCode+'&SubCat='+SubCat+'&Gender='+Gender+'&ImgCode='+ImgCode script = document.createElement( 'script' ); ErrorMessage=''; Code=myForm.Code.value; if(Code == '') { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Please enter code myuggs into security code box.\n'; } if(ErrorMessage == '') { script.src = GoLoc; document.getElementsByTagName( 'head' )[0].appendChild( script ); } else { alert(ErrorMessage); } } function CheckthatItemWasSelected(NumItems) {var Flag=0; var alertText; for(i=0; i"; document.getElementById('ImgSwap').innerHTML = "

    Adding Item to Wish List...

    "; var UPC12digit = document.getElementById('UPC12digit').value; var Qty = document.getElementById('Qty').value; var url = SITE+'NewCart/CartHandler.php?action=AddToWishList&sku='+UPC12digit+'&Qty='+Qty; //alert(url); script = document.createElement( 'script' ); script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } else { alert('Please Choose a size.'); } } function LoadupProdVeiw() { var v1; var PID; var qs = new Querystring(); if(v1= qs.get("ProdRev")) { PID= qs.get("PID"); //alert(PID); GetReviewForm(PID); } } function GetReviewForm(PID) { var url =SITE+'ProductHandler.php?action=AddReviewForm&PID='+PID; //alert(url); script = document.createElement( 'script' ); script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function HideReviewForm() { document.getElementById('ProductReviewsForm').innerHTML = ''; } function AddReview(myForm) { //Rating=document.form.ReviewForm.Rating.value; Rating=myForm.Rating.value; //alert(Rating); SizeFit=myForm.SizeFit.value; if(myForm.Rating[0].checked) Rating='5'; if(myForm.Rating[1].checked) Rating='4'; if(myForm.Rating[2].checked) Rating='3'; if(myForm.Rating[3].checked) Rating='2'; if(myForm.Rating[4].checked) Rating='1'; Comment=myForm.Comment.value; PID=myForm.PID.value; document.getElementById('ProductReviewsForm').innerHTML = "Posting for Review ...."; var url =SECURESITE+'ProductHandler.php?action=AddReview&Rating='+Rating+'&Comment='+Comment+'&SizeFit='+SizeFit+'&PID='+PID; //alert(url); script = document.createElement( 'script' ); script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function CheckCaptaCode(MyForm) {ErrorMessage=''; Code=MyForm.CodeBox.value; if(Code == '') { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Please enter code MYWISH into code box.\n'; } if(ErrorMessage == '') { MyForm.submit(); } else { alert(ErrorMessage); } } function CheckPassForm(MyForm) { ErrorMessage=''; NewPass=MyForm.NewPass.value; if(NewPass == '') { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Please enter new password.\n'; } ConfirmPass=MyForm.ConfirmPass.value; if(ConfirmPass != NewPass) { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Passwords do not match.\n'; } CustID=MyForm.CustID.value; NewPass=MyForm.NewPass.value; if(ErrorMessage == '') { document.getElementById('SignUpArea').innerHTML = "Loading Please wait..."; var url =SECURESITE+'CustAdmin/index.php?action=StartAccountFromOrder&CustID='+CustID+'&NewPass='+NewPass; //alert(url); script = document.createElement( 'script' ); script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } else { alert(ErrorMessage); } } function SizeSearch(Gender,Size) { document.getElementById('InvSizes').innerHTML = "Getting All available Sizes..."; var url =SITE+'phpscripts/AvailableSizeSearch.php?action=go&Gender='+Gender+'&Size='+Size; script = document.createElement( 'script' ); script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function CheckContactUsForm(MyForm) { ErrorMessage=''; Code=MyForm.Code.value; if(Code != '123ugg') { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Please Enter Correct Security Code\n'; } if(ErrorMessage == '') { MyForm.submit(); } else { alert(ErrorMessage); } } function GetOtherView(ImgLoc,Constraint,ColorCode,Gender,Style,SelectedView) { ClickEvent='onclick=openPopWin(\'http://www.fleecefootwear.com/phpscripts/OtherViewPop.php?ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender+'&View='+SelectedView+'\',550,750,\'resizable,menubar\',0,0);'; //alert(ImgLoc); $NewImage=''; document.getElementById('ImgSwap').innerHTML = $NewImage; } function GetCalledColor(str) { str = str ? str : location.search; var query = str.charAt(0) == '?' ? str.substring(1) : str; var args = new Object(); if (query) { var fields = query.split('&'); for (var f = 0; f < fields.length; f++) { var field = fields[f].split('='); args[unescape(field[0].replace(/\+/g, ' '))] = unescape(field[1].replace(/\+/g, ' ')); } //ColorCode=sand&Style=classic tall&ColorDesc=Sand&Gender=women //?ColorCode=sand&Style=CLASSIC TALL&ColorDesc=Sand&Gender=womens&Cat=44&Price=149 //SwapColorForDrop(ColorCode,Style,ColorDesc,Gender,Cat,Price) if(args['ColorCode']) { SwapColorForDrop(args['ColorCode'],args['Style'],args['ColorDesc'],args['Gender'],args['Cat'],''); } } } function LoadStyleDropDown() { var url =SECURESITE+'ProductHandler.php?action=LoadStyleDropDown'; script = document.createElement( 'script' ); script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function TrakIt(ThisSrc) { script = document.createElement( 'script' ); script.src = SECURESITE+'phpscripts/pagetraker.php?Page='+ThisSrc; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SwapColorFromSlider(ColorCode,Style,ColorDesc,Gender,Cat,Price) { document.getElementById('ColorName').innerHTML = ColorDesc; ProdN=Gender+' '+Style+' '+ColorDesc; document.getElementById('ProductName').innerHTML = ProdN; //alert(Style); GetAvailableSizes(ColorCode,Style,Gender); script = document.createElement( 'script' ); ScrpSrc=SITE+'ProductHandler.php?action=GetNewColorPic&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender+'&SubCat='+Cat; //alert(ScrpSrc); script.src = ScrpSrc; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SwapColor(ColorCode,Style,ColorDesc,Gender,Cat,Price) { document.getElementById('ColorName').innerHTML = ColorDesc; ProdN=Gender+' '+Style+' '+ColorDesc; document.getElementById('ProductName').innerHTML = ProdN; //alert(Style); GetAvailableSizes(ColorCode,Style,Gender); script = document.createElement( 'script' ); script.src = SITE+'ProductHandler.php?action=GetNewColorPic&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender+'&SubCat='+Cat; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SwapColorForDrop(SelectedColor,Style,ColorDesc,Gender,SubCat,Price) { //alert('inside Swapcolor'); //if(document.getElementById('ColorName')) // document.getElementById('ColorName').innerHTML = SelectedColor; ProdN=Gender+' '+Style+' '; if(document.getElementById('ProductName')) document.getElementById('ProductName').innerHTML = ProdN; if(document.getElementById('ColorName')) document.getElementById('ColorName').innerHTML = ColorDesc; //alert(SelectedColor); //alert(Style); //alert(Gender); //alert(SubCat); //alert(Price); GetAvailableSizes(SelectedColor,Style,Gender); script = document.createElement( 'script' ); NewColorHandlerScript=SITE+'ProductHandler.php?action=GetNewColorPicForDrop&ColorCode='+SelectedColor+'&Style='+Style+'&Gender='+Gender+'&SubCat='+SubCat; //alert(NewColorHandlerScript); //Notify me if my size becomes available. NewNotifyMeLink='Notify me if my size becomes available.'; document.getElementById('NotifyMeLink').innerHTML =NewNotifyMeLink; //alert(NewColorHandlerScript); script.src =NewColorHandlerScript; document.getElementsByTagName( 'head' )[0].appendChild( script ); setIt( document.getElementById('ColorDropDown'), ColorDesc.toLowerCase()); } function SwapDiscColor(SelectedColor,Style,ColorDesc,Gender,SubCat,Price) { //alert('inside Swapcolor'); //if(document.getElementById('ColorName')) // document.getElementById('ColorName').innerHTML = SelectedColor; ProdN=Gender+' '+Style+' '; if(document.getElementById('ProductName')) document.getElementById('ProductName').innerHTML = ProdN; if(document.getElementById('ColorName')) document.getElementById('ColorName').innerHTML = ColorDesc; //alert(SelectedColor); //alert(Style); //alert(Gender); //alert(SubCat); //alert(Price); //GetAvailableSizes(SelectedColor,Style,Gender); script = document.createElement( 'script' ); NewColorHandlerScript=SITE+'ProductHandler.php?action=GetNewColorDisc&ColorCode='+SelectedColor+'&Style='+Style+'&Gender='+Gender+'&SubCat='+SubCat; //alert(NewColorHandlerScript); script.src =NewColorHandlerScript; document.getElementsByTagName( 'head' )[0].appendChild( script ); setIt( document.getElementById('ColorDropDown'), ColorDesc.toLowerCase()); } function SwapColorMultiDrop(SelectedColor,Style,Gender,SubCat,Price) { document.getElementById('ColorName').innerHTML = SelectedColor; ProdN=Gender+' '+Style+' '; document.getElementById('ProductName').innerHTML = ProdN; //document.getElementById('ColorName').innerHTML = SelectedColor; //alert(SelectedColor); //alert(Style); //alert(Gender); //alert(SubCat); //alert(Price); GetAvailableSizes(SelectedColor,Style,Gender); script = document.createElement( 'script' ); NewColorHandlerScript=SITE+'ProductHandler.php?action=GetNewColorPicForDrop&ColorCode='+SelectedColor+'&Style='+Style+'&Gender='+Gender+'&SubCat='+SubCat; //alert(NewColorHandlerScript); script.src =NewColorHandlerScript; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function selectOption(num) { alert(num); selObj.options[num].selected=true; } function setIt(sel,val) {//alert(val); for( var i=0, limit=sel.options.length; i < limit; ++i ) { //alert(sel.options[i].value); if( sel.options[i].value==val ) sel.options[i].selected=true; } } function SwapView(ColorCode,Style,Gender,View,ColorDesc) { document.getElementById('ColorName').innerHTML = ColorDesc; ProdN=Gender+' '+Style+' '+ColorDesc; document.getElementById('ProductName').innerHTML = ProdN; GetAvailableSizes(ColorCode,Style,Gender); document.getElementById('ImgSwap').innerHTML = "Getting New Image..."; script = document.createElement( 'script' ); script.src = SITE+'ProductHandler.php?action=GetNewViewPic&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender+'&View='+View; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SwapColorHandBag(ColorCode,Style,ColorDesc,Gender,Cat,Price) { document.getElementById('ColorName').innerHTML = ColorDesc; ProdN=Gender+' '+Style+' '+ColorDesc; document.getElementById('ProductName').innerHTML = ProdN; //setIt( document.getElementById('ColorDropDown'), ColorDesc); //alert(Style); GetAvailableSizes(ColorCode,Style,Gender); script = document.createElement( 'script' ); script.src = SITE+'ProductHandler.php?action=GetNewColorPicForDrop&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender+'&SubCat='+Cat; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function GetSelectedColorName(ColorDesc) { document.getElementById('ColorName').innerHTML = ColorDesc; } function GetColorMini(ColorCode,Style,ColorDescription,Gender) { //alert(DivColorName); script = document.createElement( 'script' ); script.src = SITE+'ProductHandler.php?action=GetNewColorPicMini&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender+'&DivID='+Style; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function GetColorNameMini(Style,ColorDescription) { //DivColorName='Color'+Style; //document.getElementById(DivColorName).innerHTML = ColorDescription; } function GetAvailableSizes(ColorCode,Style,Gender) { //alert(ColorCode); if(document.getElementById('AvailableSizes')) document.getElementById('AvailableSizes').innerHTML = 'Please wait, loading available sizes.....'; script = document.createElement( 'script' ); PageCall=SITE+'ProductHandler.php?action=AvailableSizes&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender; //alert(PageCall); script.src = PageCall; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function LoadMiniCart() { script = document.createElement( 'script' ); GoLoc=SECURESITE+'NewCart/CartHandler.php?action=LoadMiniCart'; //alert(GoLoc); script.src = GoLoc; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function LoadRecentlyViewed(SKU) { script = document.createElement( 'script' ); GoLoc=SECURESITE+'ProductHandler.php?action=GetRecentlyViewed&SKU='+SKU; //alert(GoLoc); script.src = GoLoc; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SelectSize(SKU) { //alert(SKU); if(SKU != '') {document.getElementById('SelectedSize').innerHTML = '';} } var whosChanged = null; function ChangeColor(el) { el.style.backgroundColor = "#FE3000"; el.style.color = "#000000"; if (whosChanged != null) { whosChanged.style.backgroundColor = "" whosChanged.style.color = "" } whosChanged = el; } function AddPushToCart(Action,MyForm) { UPC12digit=MyForm.UPC12digit.value; Qty=MyForm.quantity.value; //alert(UPC12digit); //addToBasket(1); //document.getElementById('superminicart').innerHTML = ""; //document.getElementById('ImgSwap').innerHTML = "

    Adding to cart...

    "; //var UPC12digit = document.getElementById('UPC12digit').value; //var Qty = document.getElementById('Qty').value; //alert(UPC12digit); //script = document.createElement( 'script' ); Relocation = SECURESITE+'NewCart/CartHandler.php?action='+Action+'&sku='+UPC12digit+'&Qty='+Qty; //document.getElementsByTagName( 'head' )[0].appendChild( script ); window.location=Relocation; return false; } function AddToCart(Action) { //alert(UPC12digit); if(document.getElementById('UPC12digit')) { //addToBasket(1); slideDown('SlideOutPanel'); setTimeout('SlideUp(\'SlideOutPanel\')', 6000); //document.getElementById('superminicart').innerHTML = ""; //document.getElementById('ImgSwap').innerHTML = "

    Adding to cart...

    "; var UPC12digit = document.getElementById('UPC12digit').value; var Qty = document.getElementById('Qty').value; //alert(UPC12digit); script = document.createElement( 'script' ); GoLoc=SECURESITE+'NewCart/CartHandler.php?action='+Action+'&sku='+UPC12digit+'&Qty='+Qty; //alert(GoLoc); script.src = GoLoc; document.getElementsByTagName( 'head' )[0].appendChild( script ); return false; } else { alert('Please Choose a size.'); } } function AddGiftCertToCart(MyForm) { var ErrorMessage=""; //Check the fields and post the form //Amount =CurForm.GiftAmount.value; var Amount = document.getElementById('GiftAmount').value; if(Amount == '') { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Please enter an amount.\n'; } var To = document.getElementById('To').value; if(To == '') { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Please enter who gift certificate is for.\n'; } var From = document.getElementById('From').value; if(From == '') { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Please enter who gift certificate is from.\n'; } if(ErrorMessage == '') { document.CertForm.submit(); } else { alert(ErrorMessage); } } function TrakPage() { Link=SECURESITE+'pagetraker.php?Page='+window.location+'&Referer='+document.referrer; script = document.createElement( 'script' ); script.src =Link; document.getElementsByTagName( 'head' )[0].appendChild( script ); } //TrakPage(); var popWin = null // use this when referring to pop-up window var winCount = 0 var winName = "popWin" function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){ var d_winLeft = 20 // default, pixels from screen left to window left var d_winTop = 20 // default, pixels from screen top to window top winName = "popWin" + winCount++ //unique name for each pop-up window closePopWin() // close any previously opened pop-up window if (openPopWin.arguments.length >= 4) // any additional features? winFeatures = "," + winFeatures+','; else winFeatures = "" //window.open('jex5.htm','mywindow','width=400,height=200,left=0,top=100,screenX=0,screenY=100') if (openPopWin.arguments.length == 6) // location specified winFeatures += 'width='+winWidth+',height='+ winHeight+',left='+ winLeft+',top='+ winTop; else winFeatures += 'width='+winWidth+',height='+ winHeight+',left='+d_winLeft+',top='+ d_winTop //alert(winURL); popWin = window.open(winURL, winName, winFeatures) } function closePopWin(){ // close pop-up window if it is open if (navigator.appName != "Microsoft Internet Explorer" || parseInt(navigator.appVersion) >=4) //do not close if early IE if(popWin != null) if(!popWin.closed) popWin.close() } function getLocation(winWidth, winHeight, winLeft, winTop){ return "" } function ParseQuerystring(qs) { //alert('inside Parse'); // Using this function to grab query string and check for Commission Junction variable ref=cj this.params = {}; if (qs == null) qs = location.search.substring(1, location.search.length); if (qs.length == 0) return; qs = qs.replace(/\+/g, ' '); var args = qs.split('&'); // parse out name/value pairs separated via & // split out each name=value pair for (var i = 0; i < args.length; i++) { var pair = args[i].split('='); var name = decodeURIComponent(pair[0]); var value = (pair.length==2) ? decodeURIComponent(pair[1]) : name; this.params[name] = value; if(name == 'ref' || name == 'CJPID') { //Post Cookie //alert('posting cj cookie'); var exdate=new Date(); var c_name='ref'; var expiredays=45; exdate.setDate(exdate.getDate()+expiredays); //Setting cookie for CJ to expire in 30 days document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); //Track the cj click script = document.createElement( 'script' ); Loc='https://www.fleecefootwear.com/phpscripts/pagetraker2.php?Page='+window.location+'&Referer='+document.referrer; //alert(Loc); script.src = Loc; document.getElementsByTagName( 'head' )[0].appendChild( script ); } } if(this.params['action'] == "GetColorDirect" || this.params['Color'] != "") { SwapColorForDrop(this.params['ColorCode'],this.params['Style'],this.params['ColorDesc'],this.params['Gender'],this.params['Cat'],this.params['Price']); //alert(this.params['ColorCode']); //alert(this.params['Style']); //alert(this.params['Gender']); //alert(this.params['Cat']); //alert(this.params['Price']); } } /////////////////////////////////////////////////////////////////////////////////////// ////////////Functions below for splitting out query string /////////////////////////////////////////////////////////////////////////// function Querystring(qs) { // optionally pass a querystring to parse this.params = {}; if (qs == null) qs = location.search.substring(1, location.search.length); if (qs.length == 0) return; // Turn back to // See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1 qs = qs.replace(/\+/g, ' '); var args = qs.split('&'); // parse out name/value pairs separated via & // split out each name=value pair for (var i = 0; i < args.length; i++) { var pair = args[i].split('='); var name = decodeURIComponent(pair[0]); var value = (pair.length==2) ? decodeURIComponent(pair[1]) : name; this.params[name] = value; //alert(value); } } Querystring.prototype.get = function(key, default_) { var value = this.params[key]; return (value != null) ? value : default_; } Querystring.prototype.contains = function(key) { var value = this.params[key]; return (value != null); } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* Simple AJAX Code-Kit (SACK) */ /* ©2005 Gregory Wild-Smith */ /* www.twilightuniverse.com */ /* Software licenced under a modified X11 licence, see documentation or authors website for more details */ function sack(file){ this.AjaxFailedAlert = "Your browser does not support the enhanced functionality of this website, and therefore you will have an experience that differs from the intended one.\n"; this.requestFile = file; this.method = "POST"; this.URLString = ""; this.encodeURIString = true; this.execute = false; this.onLoading = function() { }; this.onLoaded = function() { }; this.onInteractive = function() { }; this.onCompletion = function() { }; this.createAJAX = function() { try { this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (err) { this.xmlhttp = null; } } if(!this.xmlhttp && typeof XMLHttpRequest != "undefined") this.xmlhttp = new XMLHttpRequest(); if (!this.xmlhttp){ this.failed = true; } }; this.setVar = function(name, value){ if (this.URLString.length < 3){ this.URLString = name + "=" + value; } else { this.URLString += "&" + name + "=" + value; } } this.encVar = function(name, value){ var varString = encodeURIComponent(name) + "=" + encodeURIComponent(value); return varString; } this.encodeURLString = function(string){ varArray = string.split('&'); for (i = 0; i < varArray.length; i++){ urlVars = varArray[i].split('='); if (urlVars[0].indexOf('amp;') != -1){ urlVars[0] = urlVars[0].substring(4); } varArray[i] = this.encVar(urlVars[0],urlVars[1]); } return varArray.join('&'); } this.runResponse = function(){ eval(this.response); } this.runAJAX = function(urlstring){ this.responseStatus = new Array(2); if(this.failed && this.AjaxFailedAlert){ alert(this.AjaxFailedAlert); } else { if (urlstring){ if (this.URLString.length){ this.URLString = this.URLString + "&" + urlstring; } else { this.URLString = urlstring; } } if (this.encodeURIString){ var timeval = new Date().getTime(); this.URLString = this.encodeURLString(this.URLString); this.setVar("rndval", timeval); } if (this.element) { this.elementObj = document.getElementById(this.element); } if (this.xmlhttp) { var self = this; if (this.method == "GET") { var totalurlstring = this.requestFile + "?" + this.URLString; this.xmlhttp.open(this.method, totalurlstring, true); } else { this.xmlhttp.open(this.method, this.requestFile, true); } if (this.method == "POST"){ try { this.xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded') } catch (e) {} } this.xmlhttp.send(this.URLString); this.xmlhttp.onreadystatechange = function() { switch (self.xmlhttp.readyState){ case 1: self.onLoading(); break; case 2: self.onLoaded(); break; case 3: self.onInteractive(); break; case 4: self.response = self.xmlhttp.responseText; self.responseXML = self.xmlhttp.responseXML; self.responseStatus[0] = self.xmlhttp.status; self.responseStatus[1] = self.xmlhttp.statusText; self.onCompletion(); if(self.execute){ self.runResponse(); } if (self.elementObj) { var elemNodeName = self.elementObj.nodeName; elemNodeName.toLowerCase(); if (elemNodeName == "input" || elemNodeName == "select" || elemNodeName == "option" || elemNodeName == "textarea"){ self.elementObj.value = self.response; } else { self.elementObj.innerHTML = self.response; } } self.URLString = ""; break; } }; } } }; this.createAJAX(); } //Fly to Basket /************************************************************************************************************ (C) www.dhtmlgoodies.com, March 2006 This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website. Terms of use: You are free to use this script as long as the copyright message is kept intact. However, you may not redistribute, sell or repost it without our permission. Version: 1.0 Released March. 3rd 2006 Thank you! www.dhtmlgoodies.com Alf Magne Kalleland ************************************************************************************************************/ var flyingSpeed = 9; var url_addProductToBasket = 'addProduct.php'; var url_removeProductFromBasket = 'removeProduct.php'; var txt_totalPrice = 'Total: '; var shopping_cart_div = false; var flyingDiv = false; var currentProductDiv = false; var shopping_cart_x = false; var shopping_cart_y = false; var slide_xFactor = false; var slide_yFactor = false; var diffX = false; var diffY = false; var currentXPos = false; var currentYPos = false; var ajaxObjects = new Array(); function shoppingCart_getTopPos(inputObj) { var returnValue = inputObj.offsetTop; while((inputObj = inputObj.offsetParent) != null){ if(inputObj.tagName!='HTML')returnValue += inputObj.offsetTop; } return returnValue; } function shoppingCart_getLeftPos(inputObj) { var returnValue = inputObj.offsetLeft; while((inputObj = inputObj.offsetParent) != null){ if(inputObj.tagName!='HTML')returnValue += inputObj.offsetLeft; } return returnValue; } function addToBasket(productId) { if(!shopping_cart_div)shopping_cart_div = document.getElementById('shopping_cart'); if(!flyingDiv){ flyingDiv = document.createElement('DIV'); flyingDiv.style.position = 'absolute'; document.body.appendChild(flyingDiv); } shopping_cart_x = shoppingCart_getLeftPos(shopping_cart_div); shopping_cart_y = shoppingCart_getTopPos(shopping_cart_div); currentProductDiv = document.getElementById('slidingProduct' + productId); currentXPos = shoppingCart_getLeftPos(currentProductDiv); currentYPos = shoppingCart_getTopPos(currentProductDiv); diffX = shopping_cart_x - currentXPos; diffY = shopping_cart_y - currentYPos; var shoppingContentCopy = currentProductDiv.cloneNode(true); shoppingContentCopy.id=''; flyingDiv.innerHTML = ''; flyingDiv.style.left = currentXPos + 'px'; flyingDiv.style.top = currentYPos + 'px'; flyingDiv.appendChild(shoppingContentCopy); flyingDiv.style.display='block'; flyingDiv.style.width = currentProductDiv.offsetWidth + 'px'; flyToBasket(productId); } function flyToBasket(productId) { var maxDiff = Math.max(Math.abs(diffX),Math.abs(diffY)); var moveX = (diffX / maxDiff) * flyingSpeed;; var moveY = (diffY / maxDiff) * flyingSpeed; currentXPos = currentXPos + moveX; currentYPos = currentYPos + moveY; flyingDiv.style.left = Math.round(currentXPos) + 'px'; flyingDiv.style.top = Math.round(currentYPos) + 'px'; if(moveX>0 && currentXPos > shopping_cart_x){ flyingDiv.style.display='none'; } if(moveX<0 && currentXPos < shopping_cart_x){ flyingDiv.style.display='none'; } if(flyingDiv.style.display=='block')setTimeout('flyToBasket("' + productId + '")',10); } function TextScroll(scrollname, div_name, up_name, down_name) { this.div_name = div_name; this.name = scrollname; this.scrollCursor = 0; this.speed = 4; this.timeoutID = 0; this.div_obj = null; this.up_name = up_name; this.dn_name = down_name; { if (document.getElementById) { div_obj = document.getElementById(this.div_name); if (div_obj) { this.div_obj = div_obj; this.div_obj.style.overflow = 'hidden'; } div_up_obj = document.getElementById(this.up_name); div_dn_obj = document.getElementById(this.dn_name); if (div_up_obj && div_dn_obj) { div_up_obj.onmouseover = function() { eval(scrollname + ".scrollLeft();") }; div_up_obj.onmouseout = function() { eval(scrollname + ".stopScroll();") }; div_dn_obj.onmouseover = function() { eval(scrollname + ".scrollRight();") }; div_dn_obj.onmouseout = function() { eval(scrollname + ".stopScroll();") }; } } } this.div_obj.scrollLeft = this.scrollCursor; this.stopScroll = function() { clearTimeout(this.timeoutID); } this.scrollLeft = function() { if (this.div_obj) { this.scrollCursor = (this.scrollCursor - this.speed) < 0 ? 0 : this.scrollCursor - this.speed; this.div_obj.scrollLeft = this.scrollCursor; this.timeoutID = setTimeout(this.name + ".scrollLeft()", 5); } } this.scrollRight = function() { if (this.div_obj) { this.scrollCursor += this.speed; this.div_obj.scrollLeft = this.scrollCursor; if (this.div_obj.scrollLeft == this.scrollCursor) { this.timeoutID = setTimeout(this.name + ".scrollRight()", 5); } else { this.scrollCursor = this.div_obj.scrollLeft; } } } this.resetScroll = function() { if (this.div_obj) { this.div_obj.scrollLeft = 0; this.scrollCursor = 0; } } } //////////////////////////////////////////////////////////// ///////////Functions for Slide out when add to cart function animate(elementID, newLeft, newTop, newWidth, newHeight, time, callback) { var el = document.getElementById(elementID); if(el == null) return; var cLeft = parseInt(el.style.left); var cTop = parseInt(el.style.top); var cWidth = parseInt(el.style.width); var cHeight = parseInt(el.style.height); var totalFrames = 1; if(time> 0) totalFrames = time/40; var fLeft = newLeft - cLeft; if(fLeft != 0) fLeft /= totalFrames; var fTop = newTop - cTop; if(fTop != 0) fTop /= totalFrames; var fWidth = newWidth - cWidth; if(fWidth != 0) fWidth /= totalFrames; var fHeight = newHeight - cHeight; if(fHeight != 0) fHeight /= totalFrames; doFrame(elementID, cLeft, newLeft, fLeft, cTop, newTop, fTop, cWidth, newWidth, fWidth, cHeight, newHeight, fHeight, callback); } function doFrame(eID, cLeft, nLeft, fLeft, cTop, nTop, fTop, cWidth, nWidth, fWidth, cHeight, nHeight, fHeight, callback) { var el = document.getElementById(eID); if(el == null) return; cLeft = moveSingleVal(cLeft, nLeft, fLeft); cTop = moveSingleVal(cTop, nTop, fTop); cWidth = moveSingleVal(cWidth, nWidth, fWidth); cHeight = moveSingleVal(cHeight, nHeight, fHeight); el.style.left = Math.round(cLeft) + 'px'; el.style.top = Math.round(cTop) + 'px'; el.style.width = Math.round(cWidth) + 'px'; el.style.height = Math.round(cHeight) + 'px'; if(cLeft == nLeft && cTop == nTop && cHeight == nHeight && cWidth == nWidth) { if(callback != null) callback(); return; } setTimeout( 'doFrame("'+eID+'",'+cLeft+','+nLeft+','+fLeft+',' +cTop+','+nTop+','+fTop+','+cWidth+','+nWidth+','+fWidth+',' +cHeight+','+nHeight+','+fHeight+','+callback+')', 40); } function moveSingleVal(currentVal, finalVal, frameAmt) { if(frameAmt == 0 || currentVal == finalVal) return finalVal; currentVal += frameAmt; if((frameAmt> 0 && currentVal>= finalVal) || (frameAmt <0 && currentVal <= finalVal)) { return finalVal; } return currentVal; } function slideDown(elementId) { //left: 550px; //top: 10px; //id of the element,left position,top position,width,height,animation length (in milliseconds),callback function var element = document.getElementById(elementId); animate(elementId, 900, 45, 230, 220, 800, null); element.down = true; element.up = false; } function SlideUp(elementId) { var element = document.getElementById(elementId); //id of the element,left position,top position,width,height,animation length (in milliseconds),callback function animate(elementId, 900, 45, 230, 0, 800, null); element.up = true; element.down = false; } /////////////////////////////////////////////////////////// ////////// End Slide out when add to cart