/* ========================================================
 *  JS used on Simpleshoes Omniture Integration 
 * ======================================================== */

    /*this is for omniture tracking ///////////////////////////////////*/
	$(document).ready(function () {
	
	// This is the Homepage /////////////////////////////////
	    $("#impressions1").click(function (event) { 
	            s.linkTrackVars='event15'; 
			    s.event15="Homepage: Click Through First Slide";
			    s.tl(this,'o', 'Click Through First Slide'); 
		});	 
		$("#impressions2").click(function (event) { 
	            s.linkTrackVars='event15'; 
			    s.event15="Homepage: Click Through Second Slide";
			    s.tl(this,'o', 'Click Through Second Slide'); 
		});
		$("#impressions3").click(function (event) { 
	            s.linkTrackVars='event15'; 
			    s.event15="Homepage: Click Through Third Slide";
			    s.tl(this,'o', 'Click Through Third Slide'); 
		});
		$("#impressions4").click(function (event) { 
	            s.linkTrackVars='event15'; 
			    s.event15="Homepage: Click Through Fourth Slide";
			    s.tl(this,'o', 'Click Through Fourth Slide'); 
		});
		$("#impressions5").click(function (event) { 
	            s.linkTrackVars='event15'; 
			    s.event15="Homepage: Click Through Fourth Slide";
			    s.tl(this,'o', 'Click Through Fourth Slide'); 
		});	 	
		$("#leftBoxImpression").click(function (event) { 
	            s.linkTrackVars='event15'; 
			    s.event15="Homepage: Click Through Bottom Left Slide";
			    s.tl(this,'o', 'Click Through Bottom Left Slide'); 
		});
		$("#inline").click(function (event) { 
	            s.linkTrackVars='event15'; 
			    s.event15="Homepage: Click Through Bottom Middle Slide";
			    s.tl(this,'o', 'Click Through Bottom Middle Slide'); 
		});
		$("#rightBoxImpression").click(function (event) { 
	            s.linkTrackVars='event15'; 
			    s.event15="Homepage: Click Through Bottom Right Slide";
			    s.tl(this,'o', 'Click Through Bottom Right Slide'); 
		});	 	

    	
    // MyAccount and Email Sign Up //////////////////////////// 
        $(".emailButtonMyAccount").click(function (event) { 
            s.linkTrackVars='events';
	        s.linkTrackEvents='event32';
	        s.events='event32'; 
	        s.tl($('emailButtonMyAccount'),'o', 'MyAccount Email Sign Up'); 
        });
        $("#editAddress").click(function (event) { 
            s.linkTrackVars='events';
	        s.linkTrackEvents='eVar14';
	        s.eVar14='eVar14'; 
	        s.tl($('emailButtonMyAccount'),'o', 'MyAccount Edit My Address'); 
        });
        $("#giftBalance").click(function (event) { 
            s.linkTrackVars='events';
	        s.linkTrackEvents='eVar14';
	        s.eVar14='eVar14'; 
	        s.tl($('emailButtonMyAccount'),'o', 'MyAccount Check Gift Card Balance'); 
        });
        $("#changePassword").click(function (event) { 
            s.linkTrackVars='events';
	        s.linkTrackEvents='eVar14';
	        s.eVar14='eVar14'; 
	        s.tl($('emailButtonMyAccount'),'o', 'MyAccount Change Password'); 
        });
        $("#manageOrders").click(function (event) { 
            s.linkTrackVars='events';
	        s.linkTrackEvents='eVar14';
	        s.eVar14='eVar14'; 
	        s.tl($('emailButtonMyAccount'),'o', 'MyAccount Manage My Orders'); 
        });
        $("#emailPreferences").click(function (event) { 
            s.linkTrackVars='events';
	        s.linkTrackEvents='eVar14';
	        s.eVar14='eVar14'; 
	        s.tl($('emailButtonMyAccount'),'o', 'MyAccount Email Preferences'); 
        });
        $("#trackPackages").click(function (event) { 
            s.linkTrackVars='events';
	        s.linkTrackEvents='eVar14';
	        s.eVar14='eVar14'; 
	        s.tl($('emailButtonMyAccount'),'o', 'MyAccount Track My Packages'); 
        });
    
	
	// Customer Service Section ///////////////////////////
    	$(".inline").click(function (event) { 
	            s.linkTrackVars='prop10'; 
			    s.prop10="Shipping Link";
			    s.tl(this,'o', 'Shipping Link'); 
		});
	    $("#cancelOrders").click(function (event) { 
	            s.linkTrackVars='prop10'; 
			    s.prop10="Customer Service : Cancel Your Order";
			    s.tl(this,'o', 'Customer Service : Cancel Your Order'); 
		});
    	$("#contactUsLink").click(function (event) { 
	            s.linkTrackVars='prop10'; 
			    s.prop10="Customer Service : General Inquiry";
			    s.tl(this,'o', 'Customer Service : General Inquiry'); 
		});	
	    $("#mensProducts").click(function (event) { 
	            s.linkTrackVars='prop10'; 
			    s.prop10="Customer Service : Men's Product Links";
			    s.tl(this,'o', 'Customer Service : Mens Product Links'); 
		});
		$("#womensProducts").click(function (event) { 
	            s.linkTrackVars='prop10'; 
			    s.prop10="Customer Service : Women's Product Links";
			    s.tl(this,'o', 'Customer Service : Womens Product Links'); 
		});	
    	$("#kidsProducts").click(function (event) { 
	            s.linkTrackVars='prop10'; 
			    s.prop10="Customer Service : Kids Product Links";
			    s.tl(this,'o', 'Customer Service : Kids Product Links'); 
		});	
			
			
	// Product Details ///////////////////////////////////
        $("#Accordion1Content").click(function (event) { 
	            s.linkTrackVars='prop11'; 
			    s.prop11="Product Details : Description Tab";
			    s.tl(this,'o', 'Product Details : Description Tab'); 
		});
		$("#Accordion2Content").click(function (event) { 
	            s.linkTrackVars='prop11'; 
			    s.prop11="Product Details : Email A Friend Tab";
			    s.tl(this,'o', 'Product Details : Email A Friend Tab'); 
		});
		$("#Accordion3Content").click(function (event) { 
	            s.linkTrackVars='prop11'; 
			    s.prop11="Product Details : Warranty Returns and Exchanges Tab";
			    s.tl(this,'o', 'Product Details : Warranty Returns and Exchanges Tab'); 
		});
		$("#Accordion4Content").click(function (event) { 
	            s.linkTrackVars='prop11'; 
			    s.prop11="Product Details : Shipping Information Tab";
			    s.tl(this,'o', 'Product Details : Shipping Information Tab'); 
		});	
		
	// Navigation Browsing //////////////////////////////////
	    $(".dropLink").click(function (event) { 
	            s.linkTrackVars='eVar3'; 
			    s.eVar3="Main Navigation : Browsing";
			    s.tl(this,'o', 'Main Navigation : Browse'); 
		});		
    
    });
	/*this is for omniture tracking ///////////////////////////////////*/		
