﻿// JScript File
var server = window.location.hostname
var start = ""
//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"
//}

start = "http://www.wyethallbrands.com"
function SpecialOffers(){
    window.open(start + "/special_offers.aspx", "SpecialOffers", "resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,width=650,height=500")
}
function OpenCoupon(url){
    window.open(url, "OfferWindow", "resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,width=650,height=500");
}
//This is not in use because of the image map
function CreateCoupon(tmp){ // tmp IS NOT CASE SENSITIVE
    var str
    switch(tmp.toLowerCase())
    {
    case "homepage":
      break;
    default:
      str = "&nbsp;";
    }
    document.write(str);
}

