﻿jQuery(document).ready(function() {

    jQuery('[popupoptions]').click(function(e) {
        e.preventDefault();
        window.open(jQuery(this).attr('href'), jQuery(this).attr('name'), jQuery(this).attr('popupoptions'));
        return false;
    });

    jQuery('[popupoptions]').css('cursor', 'pointer')

    jQuery('.couponLink').click(function(e) {
        e.preventDefault();
        window.open(jQuery(this).attr('href'), "coupon", 'location=1,status=1,scrollbars=0,width=640,height=480');
        return false;
    });
	
	   
    
});

/* Start analytics */
var oscTrackID = "UA-5032834-1";
jQuery.trackPage(oscTrackID);
jQuery('a').track();

// Flash Tracking function
function trackFlash(category, action, label, value) {
    jQuery.trackEvent(category, action, label, value);
}

/* End analytics */


function contactUs() {
    window.open("/contact.aspx", "contact", 'location=1,status=1,scrollbars=1,width=640,height=480');
}

function requestQueryString(name) {
    name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
    var regexS = "[\\?&]" + name + "=([^&#]*)";
    var regex = new RegExp(regexS);
    var results = regex.exec(window.location.href);
    if (results == null)
        return "";
    else
        return results[1];
}

