﻿/// <reference name="MicrosoftAjax.js" />
/// <reference path="jquery-vsdoc.js" />

$().ready(function() {
    InitializeLogo();

    if (self.location.href.indexOf("cmspagemode=edit") > -1 || self.location.href.indexOf("cmspagemode=preview") > -1) {
        return;
    }

    // Any function and needs to be invoked if it is not "Edit" mode.
});

function InitializeLogo() {
    var flashvars = {};
    var params = {};
    params.wmode = "transparent";
    params.menu = "false";
    params.width = "327";
    params.height = "65";
    swfobject.embedSWF("/Images/slogo.swf", "slogo", "327", "65", "9.0.0", "expressInstall.swf", flashvars, params);
}

function popup(url, name, width, height, resize) {
    width = width > 0 ? width : 400;
    height = height > 0 ? height : 500;

    var t = (screen.height - height) / 2;
    var l = (screen.width - width) / 2;

    window.open(url, name, "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=" + resize + ",width=" + width + ",height=" + height + ",screenX=0,screenY=0,top=" + t + ",left=" + l);
    return false;
}


//<script type="text/javascript">
//    jQuery().ready(function() {
//        // first simple accordion with special markup
//        jQuery('#list3').accordion({
//            header: 'div.title',
//            active: false,
//            alwaysOpen: false,
//            animated: false,
//            autoheight: false
//        });


//        var wizard = $("#wizard").accordion({
//            header: '.title',
//            event: false
//        });

//        var wizardButtons = $([]);
//        $("div.title", wizard).each(function(index) {
//            wizardButtons = wizardButtons.add($(this)
//		.next()
//		.children(":button")
//		.filter(".next, .previous")
//		.click(function() {
//		    wizard.accordion("activate", index + ($(this).is(".next") ? 1 : -1))
//		}));
//        });

//        // bind to change event of select to control first and seconds accordion
//        // similar to tab's plugin triggerTab(), without an extra method
//        var accordions = jQuery('#list1a, #list1b, #list2, #list3, #navigation, #wizard');

//        jQuery('#switch select').change(function() {
//            accordions.accordion("activate", this.selectedIndex - 1);
//        });
//        jQuery('#close').click(function() {
//            accordions.accordion("activate", -1);
//        });
//        jQuery('#switch2').change(function() {
//            accordions.accordion("activate", this.value);
//        });
//        jQuery('#enable').click(function() {
//            accordions.accordion("enable");
//        });
//        jQuery('#disable').click(function() {
//            accordions.accordion("disable");
//        });
//        jQuery('#remove').click(function() {
//            accordions.accordion("destroy");
//            wizardButtons.unbind("click");
//        });
//    });
//</script>





//<script type="text/javascript">
//    /**
//    * We use the initCallback callback
//    * to assign functionality to the controls
//    */
//    function mycarousel_initCallback(carousel) {
//        jQuery('.jcarousel-control a').bind('click', function() {
//            carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
//            return false;
//        });

//        jQuery('.jcarousel-scroll select').bind('change', function() {
//            carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
//            return false;
//        });

//        jQuery('#mycarousel-next').bind('click', function() {
//            carousel.next();
//            return false;
//        });

//        jQuery('#mycarousel-prev').bind('click', function() {
//            carousel.prev();
//            return false;
//        });
//    };

//    // Ride the carousel...
//    jQuery(document).ready(function() {
//        jQuery("#mycarousel").jcarousel({
//            scroll: 1,
//            initCallback: mycarousel_initCallback,
//            // This tells jCarousel NOT to autobuild prev/next buttons
//            buttonNextHTML: null,
//            buttonPrevHTML: null
//        });
//    });

//</script>
