if(navigator.appName == "Netscape")
{
document.writeln("<link rel=stylesheet type=text/css href=/dinersus/blanche/global_ns.css>");
}
else if(navigator.appName == "Microsoft Internet Explorer")
{
document.writeln("<link rel=stylesheet type=text/css href=/dinersus/blanche/global_ie.css>");
}
else
{
document.writeln("<link rel=stylesheet type=text/css href=/dinersus/blanche/global_ie.css>");
}


// Window opener for multiple windows
function daughter(url,newWindow) {
        var newWindow = window.open(url,newWindow,'width=640,height=400,toolbar=yes,resizable=yes,scrollbars=yes,menubar=yes,location=yes' );
}

function smallDaughter(url,newWindow) {
        var newWindow = window.open(url,newWindow,'width=500,height=400,toolbar=yes,resizable=no,scrollbars=yes,menubar=yes,location=no' );
}

function baby(url,newWindow) {
        var newWindow = window.open(url,newWindow,'width=350,height=380,toolbar=no,resizable=no,scrollbars=yes,menubar=no,location=no' );
}

// Top Nav Strip Clipping Paths for Rollovers
<!--  -->
IE4 = (document.all) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
ver4 = (IE4 || NS4) ? 1 : 0;
layerClips = new Array();
function setClip(layer,left,right){
layerClips[layer] = new Array();
layerClips[layer][0] = left;
layerClips[layer][1] = right;
}
setClip(1,280,393);
setClip(2,400,510);
setClip(3,515,615);
setClip(4,623,683);
setClip(5,690,730);
setClip(6,743,780);
setClip(7,680,746);
setClip(8,680,746);
Top = 0;
Bot = 53;
<!--  -->
function mapOver(layer,on) {
if (IE4) { whichLayer = document.all.usGlobalMenuOver.style; }
else { whichLayer = document.usGlobalMenu.document.usGlobalMenuOver; }
if (!on) { whichLayer.visibility = "hidden"; return; }
Left = layerClips[layer][0];
Right = layerClips[layer][1];
if (NS4) {
whichLayer.clip.left = Left;
whichLayer.clip.right = Right;
}
else {
whichLayer.clip = "rect(" + Top + " " + Right + " " + Bot + " " + Left + ")";
}
whichLayer.visibility = "visible";
}
<!--  -->
function mapOver2(layer,on) {
if (IE4) { whichLayer = document.all.TabOver.style; }
else { whichLayer = document.Tabs.document.TabMenuOver; }
if (!on) { whichLayer.visibility = "hidden"; return; };
Left = layerClips[layer][0];
Right = layerClips[layer][1];
if (NS4) {
whichLayer.clip.left = Left;
whichLayer.clip.right = Right;
}
else {
whichLayer.clip = "rect(" + Top + " " + Right + " " + Bot + " " + Left + ")";
}
whichLayer.visibility = "visible";
}
<!--  -->
function showHideLayerSwitch(layerName){
if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility=="visible"')){
hideLayer(layerName);
}else{
showLayer(layerName);
}
}
<!--  -->
function showLayer(layerName){
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}
<!--  -->
function hideLayer(layerName){
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}

<!-- -->
<!--  -->
function kid(myURL)
{
var msg = "You are about to access an external web site not controlled" +
" or managed by Citicorp Diners Club, Inc.  Content, services" +
" and functionalities presented on the external sites are" +
" neither endorsed or guaranteed by it. By clicking 'OK'," +
" you agree to hold Citicorp Diners Club Inc. harmless from" +
" any liabilities or claims arising from your access to the" +
" external site.";
var lngString = myURL.substring(0,19);
var shtString = myURL.substring(0,7);
var splString = myURL.split(".");
if (shtString == "/US/en/" || shtString == "common/")
{
var pop = window.open(myURL, 'kid', 'width=640,height=480,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes,directories=yes');
pop.focus();
}
else if (splString[1] == "dinersclub")
{
var pop = window.open(myURL, 'kid', 'width=640,height=480,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes,directories=yes');
pop.focus();
}
else
{
switch(lngString){

default:
if (confirm (msg))
{
myURL = myURL.replace(/\?/g,"%3f");
myURL = myURL.replace(/\=/g,"%3d");
myURL = myURL.replace(/\s/g,"%20");
var pop = window.open(myURL, "kid", "width=640,height=480,status=yes,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes,directories=yes");
pop.focus();
}
break;
}
}
}






//this function is for leaving the site and going to any urls containing any of the special characters replaced in the "kid" function.  ex: /blanche/members/members/ VIP desk link.

function leaving(myURL)
{
var msg = "You are about to access an external web site not controlled" +
" or managed by Citicorp Diners Club, Inc.  Content, services" +
" and functionalities presented on the external sites are" +
" neither endorsed or guaranteed by it. By clicking 'OK'," +
" you agree to hold Citicorp Diners Club Inc. harmless from" +
" any liabilities or claims arising from your access to the" +
" external site.";
var lngString = myURL.substring(0,19);
var shtString = myURL.substring(0,7);
var splString = myURL.split(".");
if (shtString == "/US/en/" || shtString == "common/")
{
var pop = window.open(myURL, 'leaving', 'width=640,height=480,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes,directories=yes');
pop.focus();
}
else if (splString[1] == "dinersclub")
{
var pop = window.open(myURL, 'leaving', 'width=640,height=480,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes,directories=yes');
pop.focus();
}
else
{
switch(lngString){

default:
if (confirm (msg))
{
var pop = window.open(myURL, "leaving", "width=640,height=480,status=yes,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes,directories=yes");
pop.focus();
}
break;
}
}
}
