﻿/// <reference path="jquery-1.3.2-vsdoc2.js" />


function InitTooltips() {
    $('a.help').tooltip({
        track: false,
        delay: 0,
        showURL: false,
        fade: 250
    });

    $('a.help').click(function() {
        return false;
    });
}
$('div#Header ul li:first').addClass("First");
$('div#ShowNavArea ol li:last').addClass("Last");
$('div#ShowNavArea ol#ShowNavArea1 li:nth-child(1)').addClass("Current")
$('div#ShowNavArea ol#ShowNavArea2 li:nth-child(2)').addClass("Current")
$('div#ShowNavArea ol#ShowNavArea3 li:nth-child(3)').addClass("Current")

/* Comment out by André, 16.11.2009  */
function ProductBox() {
//$('div.ProductBox').click(function() {
//window.location = $(this).find("a:first").attr("href");
//});
}


ProductBox(); 
InitTooltips();

$('input:text').addClass("txt");
$('input:submit').addClass("btn");

$("a.licenseOverlay").fancybox({
    'hideOnContentClick': true,
    'frameWidth': 685,
    'frameHeight': 600
});

function InitOverlay() {
    $("a.productOverlay").fancybox({
        'hideOnContentClick': false,
        'frameWidth': 685,
        'frameHeight': 600,
        'callbackOnShow': ProductBox
    });
    $(".overlay").hide();
}

$("a.extraProductOverlay").fancybox({
    'hideOnContentClick': false,
    'frameWidth': 685,
    'frameHeight': 300
});

InitOverlay();

$("a#inline").fancybox({
    'hideOnContentClick': false,
    'frameWidth': 625,
    'frameHeight': 515
});
    
$("#License").hide();


if (jQuery().supersleight) {
    $('div#priceDescription').supersleight();
}


if (jQuery().supersleight) {
    $('div#ProductBoxWrapper').supersleight();
}

//function pageLoad(sender, args) {
//    InitOverlay();
//}

function pageLoad(sender, args) {
    if (args.get_isPartialLoad()) {
        InitOverlay();
        InitTooltips();

        $("a#inline").fancybox({
            'hideOnContentClick': false,
            'frameWidth': 685,
            'frameHeight': 300
        });
    }
}

var corsiande_rg = { src: '/Templates/ViaSat/Flash/corsiande.swf' };
sIFR.activate(corsiande_rg);

var corsiande_rgBold = { src: '/Templates/ViaSat/Flash/corsiande_Bold.swf' };
sIFR.activate(corsiande_rgBold);

sIFR.replace(corsiande_rg, {
selector: 'h2#LogoText', css: 'em { font-style: normal; color: #034b95; width:470px }' 
});

sIFR.replace(corsiande_rgBold, {
    selector: 'body.viasat #MainFeaturedContent h1', css: 'em { font-style: bold; color: #024b93; }', wmode: 'transparent'
});

sIFR.replace(corsiande_rgBold, {
selector: '#MainFeaturedContent h1', css: 'em { font-style: bold; color: #034b95; }' , wmode: 'transparent'
});


sIFR.replace(corsiande_rg, {
selector: 'body.viasat #MainFeaturedContent h2', css: 'em { font-style: normal; color: #000; font-weight:bold; }', wmode: 'transparent'
});


sIFR.replace(corsiande_rg, {
selector: '#DidYouKnow h3', css: 'em { font-style: normal; color: #ffffff; text-align: center;}' , wmode: 'transparent'
});

sIFR.replace(corsiande_rg, {
selector: 'h4.sIFR ', css: ['.sIFR-root { cursor: pointer; }', 'strong { font-style: bold; color: #034b95; font-size:42em; }' ], wmode: 'transparent'
});

sIFR.replace(corsiande_rg, {
selector: 'h4.sIFR2 ', css: ['.sIFR-root { cursor: pointer; }', 'a {font-style: normal; text-decoration:none; color: #000000 }', 'a strong { font-size:42em; color: #034b95; }', 'a:hover {color: #034b95;}' ], wmode: 'transparent'
});

sIFR.replace(corsiande_rg, {
    selector: 'body.viasat div#VigNettWrapper h2', css: 'em { font-style: normal; color: #024B93; }', wmode: 'transparent'
});

sIFR.replace(corsiande_rg, {
selector: 'div#VigNettWrapper h2', css: 'em { font-style: normal; color: #034b95; }' , wmode: 'transparent'
});

sIFR.replace(corsiande_rg, {
selector: 'body.viasat div#VigNettWrapper h3', css: 'em { font-weight: bold; font-style: normal; color: #000; }', wmode: 'transparent'
});

sIFR.replace(corsiande_rg, {
    selector: 'div#VigNettWrapper h3', css: 'em { font-weight: bold; font-style: normal; color: #000; }', wmode: 'transparent'
});

sIFR.replace(corsiande_rg, {
selector: '#MainFeaturedContent h2', css: 'em { font-style: normal; color: #000000; font-weight:bold; }' , wmode: 'transparent'
});




//THOMAS new!
sIFR.replace(corsiande_rg, {
selector: '#StampWrapper #Top .PriceText', css: 'em { font-style: normal; color: #004b93; font-weight:normal;  }', wmode: 'transparent'
});

sIFR.replace(corsiande_rgBold, {
selector: '#StampWrapper #Top .Price', css: 'em { font-style: normal; color: #004b93; font-weight:bold;  }', wmode: 'transparent'
});

sIFR.replace(corsiande_rgBold, {
selector: '#StampWrapper #Bottom .NextTextBig', css: 'em { font-style: normal; 	color: #004b93; font-weight:bold;  }', wmode: 'transparent'
});

sIFR.replace(corsiande_rg, {
selector: '#StampWrapper #Bottom .NextTextSupport', css: 'em { font-style: normal; 	color: #004b93; font-weight:bold;  }', wmode: 'transparent'
});

