﻿// JScript File
var start
var server = window.location.hostname
if(server.indexOf("localhost") > -1){
    start = "http://10.229.232.148"
} else if(server.indexOf("10.") > -1){
    start = "http://10.229.232.148"
} else if(server.indexOf("staging.") > -1){
    start = "http://staging.wyethallbrands.com" 
} else if(server.indexOf("www.") > -1){
    start = "http://www.wyethallbrands.com"
}
function SpecialOffers(){
    window.open(start + "/special_offers.aspx", "SpecialOffers", "resizable=1,scrollbars=1,status=1s,toolbar=0,menubar=0,location=0,width=650,height=500");
}

function OpenCoupon(url){
    window.open(start + url, "OfferWindow", "resizable=1,scrollbars=1,status=yes,toolbar=0,menubar=0,location=0,width=650,height=500");
}