 /*
-----------------------------------------------------------------------------------------------------------------------
VARIABLES
-----------------------------------------------------------------------------------------------------------------------
*/
var uiXaml;
var assetLoader;
var appNavigator;
var appData;
var SECTION_NO;
var PAGE_NO;
var sectionData;
var mainNavSpacing = 30;
var HTML_FILE;
var videoPlayerInstance = null;

/*
-----------------------------------------------------------------------------------------------------------------------
initialize stuff after root is loaded
-----------------------------------------------------------------------------------------------------------------------
*/
function root_Loaded (sender, args )
{
	agControl = document.getElementById ("wpfeControl1" );
	canvas = agControl.content.findName ( "root" );

	// load up some app data
	loadXML ( "assets/xml/app_data.xml", createUi );
}
/*
-----------------------------------------------------------------------------------------------------------------------
initialize stuff after UI is loaded
-----------------------------------------------------------------------------------------------------------------------
*/
function createUi (sender, args )
{
	appData = appData.parseResponse();
	
	appNavigator = new Navigator ();
	// get the current location
	var _loc = unFocus.History.getCurrent ();
	// Add our function to the historyChange event
	unFocus.History.addEventListener ("historyChange", appNavigator.checkLocation );
	//appNavigator.checkLocation ();
	// Create a Downloader object to download xaml for the UI. ( _name, _url, _xaml, _cb )
	assetLoader = new AssetLoader ( canvas );
	assetLoader.addItem ( "root", "assets/xaml/ui.xaml", undefined, ui_Loaded );
}
/*
-----------------------------------------------------------------------------------------------------------------------
initialize stuff after UI is loaded
-----------------------------------------------------------------------------------------------------------------------
*/
function ui_Loaded (sender, args )
{
	// Make big ol' object array of app XML ---------------------------------
	sectionData = appData.sections.section;
	// make a nav ------------------------------------------------------------------------------
	for (cSection = 0; cSection < sectionData.length; cSection ++)
	{
		var curNavItem = cSection + 1;
		var curLabel = sectionData [cSection].label;
		var curX = 0;
		var curY = cSection * mainNavSpacing;
		new NavButton (agControl.content.findName ("nav_holder" ) ,
		{
			no : curNavItem, label : curLabel, type : "nav", x : curX, y : curY
		},
		{
			fontColor : "#FF4870C5", fontName : "SegoeL.ttf", fontSize : "14"
		} );
		// make a sub nav --------------------------------------------------------------------
		var totalSectionPages = sectionData [cSection].page.length;
		if (totalSectionPages > 1)
		{
			var curSubNav = (cSection + 1);
			new SubNav (agControl.content.findName ("subnav_holder" ) , curSubNav);
			var curX = 0;
			var curY = 0;
			for (cPage = 0; cPage < totalSectionPages; cPage ++)
			{
				var curSubNavItem = cPage + 1;
				var curLabel = sectionData [cSection].page [cPage].label.label_text;
				var curOnWidth = Number (sectionData [cSection].page [cPage].label.width_on);
				var curOffWidth = Number (sectionData [cSection].page [cPage].label.width_off);
				new SubNavButton (agControl.content.findName ("subnav_" + curSubNav) , curSubNav,
				{
					no : curSubNavItem, label : curLabel, type : "subnav", x : curX, y : curY, wOn : curOnWidth, wOff : curOffWidth, h : 13
				},
				{
					fontColor : "#FF4870C5", fontNameOn : "SegoeRg.ttf", fontNameOff : "SegoeL.ttf", fontSize : "14"
				} );
				curX += curOffWidth + 20;
			}
		}
		//------------------------------------------------------------------------------------
		
	}
	jumpToPage(JUMP_PAGE);
	

	
	agControl.content.findName ("canvas_reveal_sb" ).begin ();
	
}
/*
-----------------------------------------------------------------------------------------------------------------------
set debug text to somethin
-----------------------------------------------------------------------------------------------------------------------
*/
function trace (val, append )
{
	var txt = agControl.content.findName ("debugText" );
	if (append && txt )
	{
		txt.text += val;
	} 
	else if (txt )
	{
		txt.text = val;
	}
}
/*
-----------------------------------------------------------------------------------------------------------------------
check to see if the current section has a subnav
-----------------------------------------------------------------------------------------------------------------------
*/
function checkSubNav (previous, current)
{
	if (previous && (sectionData [previous - 1].page.length > 1))
	{
		agControl.content.findName ("subnav").opacity = "0.0";
		prevSubNav = agControl.content.findName ("subnav_" + previous);
		prevSubNav.opacity = "0.0";
		prevSubNav ["Canvas.Left"] = - 1000;
	}
	if (sectionData [current - 1].page.length > 1)
	{
		agControl.content.findName ("subnav").opacity = "1.0";
		curSubNav = agControl.content.findName ("subnav_" + current);
		curSubNav.opacity = "1.0";
		curSubNav ["Canvas.Left"] = 0;
		agControl.content.findName ("header_shelf_shadow").opacity = "0.0";
		return true;
	}
	else
	{
		agControl.content.findName ("header_shelf_shadow").opacity = "1.0";
		return false;
	}
	
}
//---------------------------------------------------------------------------------------------------------------------
function home_Loaded( sender, args)
{
//    var prevPage = agControl.content.findName( "page_holder_1" );
//        prevPage.Opacity = "1.0";

//    alert("home");
    // create video player
//    var xamlFragment = agControl.content.createFromXAMLDownloader( sender, "" );
//    canvas.children.add( xamlFragment );
    
    videoPlayerInstance = new silverlightPlayer( agControl, null, 'http://download.microsoft.com/download/2/C/4/2C433161-F56C-4BAB-BBC5-B8C6F240AFCC/SL_0410_448x256_300kb_2passCBR.wmv?amp;clcid=0x409' );	            
    var previewBtn = agControl.content.findName( "btn_start" );
        previewBtn.addEventListener( "MouseLeftButtonUp", "startVideoNow" );
    
}	
function onFullScreenChanged(sender, args)
{
  videoPlayerInstance.resizePlayer();
}
function startVideoNow() 
{
    hideVideoPreview();	            
    videoPlayerInstance.playButton.onLeftButtonUp();
}
function hideVideoPreview()
{
    var sb = agControl.content.findName("sb_startButton_hide");
    agControl.content.findName( "btn_start" ).isHitTestVisible = false;
    sb.begin();
}
function videoAllDone() 
{	            
    agControl.content.findName( "btn_start" ).isHitTestVisible = true;
    agControl.content.findName("sb_startButton_show").begin();
}


function loadXML( Url, CallBack, CallBackArgs )
{
	appData = new JKL.ParseXML( Url );
    appData.callback_func = CallBack; // callback function
    appData.callback_arg  = CallBackArgs; // first argument
	
	// this actually loads the xml
   	appData.parse();
}

/*
-----------------------------------------------------------------------------------------------------------------------
check to see if the current section has a subnav
-----------------------------------------------------------------------------------------------------------------------
*/
function onRevealComplete (previous, current){

	document.getElementById("htmlVersion").style.visibility = "hidden";
    playIcon();
    document.body.style.backgroundColor = "#ace4ff";
    
    document.getElementById("html_capture_bg").style.visibility = "visible";
    
     document.getElementById("html_capture_bg").style.display = "";
   
    document.getElementById("htmlVersion").innerHTML = "";
    
    document.getElementById("html_capture_host").style.visibility = "visible";
    
     
    
    agControl.content.findName ("bg_mid_reveal_sb").begin ();
   


}
//---------------------------------------------------------------------------------------------------------------------
function onMidRevealComplete(){

    document.getElementById("html_capture_host").style.zIndex = 15000;

}
//---------------------------------------------------------------------------------------------------------------------
/*
-----------------------------------------------------------------------------------------------------------------------
get html content from current html page
-----------------------------------------------------------------------------------------------------------------------
*/
function getHTMLContent (){

    var tempHTMLFile = HTML_FILE + ".aspx";

    var downloader = agControl.createObject("downloader");

    downloader.addEventListener("completed", "HTML_Loaded");

    downloader.open("GET", tempHTMLFile, true);

    downloader.send();

}
//---------------------------------------------------------------------------------------------------------------------
function HTML_Loaded(sender, args){
    var htmlContent = sender.responseText;
    var aTemp1 = htmlContent.split("<!-- START HTML CAPTURE -->");
    var aTemp2 = aTemp1[1].split("<!-- END HTML CAPTURE -->");
    htmlContent = aTemp2[0];
    
    var newContent;
   
    switch(JUMP_PAGE){
    case "1_1":
    newContent = htmlReplacement( htmlContent, imageSwaps_1_1 );
    break;
    
    
    case "3_1":
    newContent = htmlReplacement( htmlContent, imageSwaps_3_1 );
    break;
    
    case "3_2":
     newContent = htmlReplacement( htmlContent, imageSwaps_3_2 );
    break;
    
    case "3_3":
     newContent = htmlReplacement( htmlContent, imageSwaps_3_3 );
    break;
    
    case "5_1":
     newContent = htmlReplacement( htmlContent, imageSwaps_5_1 );
    break;
    
    default:
    newContent = htmlContent;
    break;
    
    
    
    
    }
    
    //alert(newContent);
    
    
    document.getElementById("html_capture").innerHTML = newContent;
}
//---------------------------------------------------------------------------------------------------------------------
function jumpToPage( page_code ){

    var aPageCode = page_code.split("_");

    var navBtn = agControl.content.findName( "nav_" + aPageCode[0] );
    NavButtonOver( navBtn );
    NavButtonRelease( navBtn );

    if( Number( aPageCode[1] ) > 1 ){        
        var subNavBtn1 = agControl.content.findName( "subnavbtn_" + aPageCode[0] + "_1" );
        var subNavBtn = agControl.content.findName( "subnavbtn_" + aPageCode[0] + "_" + aPageCode[1] );
        SubNavButtonOut( subNavBtn1 );
        SubNavButtonOver( subNavBtn );
        SubNavButtonRelease( subNavBtn );
    }
    
}
//---------------------------------------------------------------------------------------------------------------------
/*
-----------------------------------------------------------------------------------------------------------------------
REPLACE ICKY STUFF WITH PRETTY STUFF
-----------------------------------------------------------------------------------------------------------------------
*/
function htmlReplacement( sourceText, data )
{
    // loop through data and replace old with new
    // ( _old: "bad.gif", _new: "good.gif" )
    //
    for( var i in data )
    {
        var currentElement = data[ i ];
        var findText = currentElement._old;
        var replacementText = currentElement._new;
        var replaceAll = currentElement._all;
        
        if( replaceAll == true )
        {
            sourceText = sourceText.replace( /escape( findText )/g, replacementText );
        }
        else
        {
            sourceText = sourceText.replace( findText, replacementText );
        }
    }
    
   return sourceText;
}
/*
-----------------------------------------------------------------------------------------------------------------------
REPLACE ICKY STUFF WITH PRETTY STUFF
-----------------------------------------------------------------------------------------------------------------------
*/
function checkVideoCanvas(  )
{
//    var player = agControl.content.findName( "MainVideo" );

    
//    if( ( SECTION_NO + "_" + PAGE_NO ) != "1_1" )
//    {
//        // hide the player
//        player.opacity = "0";
//    }
//    else if( ( SECTION_NO + "_" + PAGE_NO ) == "1_1" )
//    {
//    
//        alert("?");

//        // show the player
//        player.opacity = "1";
//        
//        //if ( videoPlayerInstance == null )
//        //{
//            home_Loaded();
//        //}
//    }
    
    var isVid = agControl.content.findName( "MainVideo" );
    //alert(isVid);
    if( ( SECTION_NO + "_" + PAGE_NO ) != "1_1" )
    {
        // NOT HOME
        if( isVid )
        {
            // kill video player
            agControl.content.findName( "page_holder_1" ).children.remove( isVid );
            videoPlayerInstance = null;

        }
    }
    else if( ( SECTION_NO + "_" + PAGE_NO ) == "1_1" )
    {
        // YOU CAN GO HOME AGAIN!
        // home page is very special
        if( isVid == null )
        {
//            var viddownloader = agControl.createObject("vidDownloader");

//            viddownloader.addEventListener("completed", "home_Loaded");

//            viddownloader.open("GET", "assets/xaml/default_template.xaml", true);

//            viddownloader.send();

            // kill video player
	        assetLoader.addItem( "page_holder_1", "assets/xaml/default_template.xaml", undefined, home_Loaded );
	    }
	    else
	    {
            agControl.content.findName( "page_holder_1" ).children.add( isVid );
	    }
    }
}

//====================================================================================================================
// IMAGE SWAP ARRAYS
//====================================================================================================================
//-----------------------------------------------------------------------------------
var imageSwaps_1_1 = [
{ _old:'<div id="center-content">', _new:'<div id="center-content"><img src="/silverlight/images/spacer.gif" border="0" width="448" height="226" />' }
];
var imageSwaps_3_1 = [
{ _old:'src="/silverlight/images/icon_install_win.gif" width="58" height="83" border="0" title="Windows" label="Windows"', _new:'src="/silverlight/assets/images/icon_install_win.gif" width="58" height="83" border="0" title="Windows" label="Windows"' },
{ _old:'src="/silverlight/images/t_install_win.gif" width="100" height="46" border="0" title="Windows" label="Windows"', _new:'src="/silverlight/assets/images/t_install_win.gif" width="100" height="46" border="0" title="Windows" label="Windows"' },
{ _old:'src="/silverlight/images/sn_shelf_stretchedout.gif" width="175" height="3" border="0" title="" label=""', _new:'src="/silverlight/assets/images/sn_shelf_stretchedout.gif" width="175" height="3" border="0" title="" label=""' },
{ _old:'src="/silverlight/images/icon_install_mac.gif" width="58" height="83" border="0" title="Mac OS X" label="Mac OS X"', _new:'src="/silverlight/assets/images/icon_install_mac.gif" width="58" height="83" border="0" title="Mac OS X" label="Mac OS X"' },
{ _old:'src="/silverlight/images/t_install_mac.gif" width="84" height="46" border="0" title="Mac OS X" label="Mac OS X"', _new:'src="/silverlight/assets/images/t_install_mac.gif" width="84" height="46" border="0" title="Mac OS X" label="Mac OS X"' },
{ _old:'src="/silverlight/images/sn_shelf_stretchedout.gif" width="175" height="3" border="0" title="" label=""', _new:'src="/silverlight/assets/images/sn_shelf_stretchedout.gif" width="175" height="3" border="0" title="" label=""' },
{ _old:'src="/silverlight/images/icon_install_win.gif" width="58" height="83" border="0" title="Windows" label="Windows"', _new:'src="/silverlight/assets/images/icon_install_win.gif" width="58" height="83" border="0" title="Windows" label="Windows"' },
{ _old:'src="/silverlight/images/t_install_win.gif" width="100" height="46" border="0" title="Windows" label="Windows"', _new:'src="/silverlight/assets/images/t_install_win.gif" width="100" height="46" border="0" title="Windows" label="Windows"' },
{ _old:'src="/silverlight/images/sn_shelf_stretchedout.gif" width="175" height="3" border="0" title="" label=""', _new:'src="/silverlight/assets/images/sn_shelf_stretchedout.gif" width="175" height="3" border="0" title="" label=""' },
{ _old:'src="/silverlight/images/icon_install_mac.gif" width="58" height="83" border="0" title="Mac OS X" label="Mac OS X"', _new:'src="/silverlight/assets/images/icon_install_mac.gif" width="58" height="83" border="0" title="Mac OS X" label="Mac OS X"' },
{ _old:'src="/silverlight/images/t_install_mac.gif" width="84" height="46" border="0" title="Mac OS X" label="Mac OS X"', _new:'src="/silverlight/assets/images/t_install_mac.gif" width="84" height="46" border="0" title="Mac OS X" label="Mac OS X"' },
{ _old:'src="/silverlight/images/sn_shelf_stretchedout.gif" width="175" height="3" border="0" title="" label=""', _new:'src="/silverlight/assets/images/sn_shelf_stretchedout.gif" width="175" height="3" border="0" title="" label=""' }
];
//-----------------------------------------------------------------------------------
var imageSwaps_3_2 = [
{ _old:'src="/silverlight/images/1280-800.gif" width="66" height="13" border="0" title="1280x800" label="1280x800"', _new:'src="/silverlight/assets/images/1280-800.gif" width="66" height="13" border="0" title="1280x800" label="1280x800"' },
{ _old:'src="/silverlight/images/1400-864.gif" width="66" height="13" border="0" title="1400x864" label="1400x864"', _new:'src="/silverlight/assets/images/1400-864.gif" width="66" height="13" border="0" title="1400x864" label="1400x864"' },
{ _old:'src="/silverlight/images/1280-768.gif" width="66" height="13" border="0" title="1280x768" label="1280x768"', _new:'src="/silverlight/assets/images/1280-768.gif" width="66" height="13" border="0" title="1280x768" label="1280x768"' },
{ _old:'src="/silverlight/images/1600-800.gif" width="66" height="13" border="0" title="1600x800" label="1600x800"', _new:'src="/silverlight/assets/images/1600-800.gif" width="66" height="13" border="0" title="1600x800" label="1600x800"'  },
{ _old:'src="/silverlight/images/1280-800.gif" width="66" height="13" border="0" title="1280x800" label="1280x800"', _new:'src="/silverlight/assets/images/1280-800.gif" width="66" height="13" border="0" title="1280x800" label="1280x800"' },
{ _old:'src="/silverlight/images/1400-864.gif" width="66" height="13" border="0" title="1400x864" label="1400x864"', _new:'src="/silverlight/assets/images/1400-864.gif" width="66" height="13" border="0" title="1400x864" label="1400x864"' },
{ _old:'src="/silverlight/images/1280-768.gif" width="66" height="13" border="0" title="1280x768" label="1280x768"', _new:'src="/silverlight/assets/images/1280-768.gif" width="66" height="13" border="0" title="1280x768" label="1280x768"' },
{ _old:'src="/silverlight/images/1600-800.gif" width="66" height="13" border="0" title="1600x800" label="1600x800"', _new:'src="/silverlight/assets/images/1600-800.gif" width="66" height="13" border="0" title="1600x800" label="1600x800"' },
{ _old:'src="/silverlight/images/wp_t_stnd_0.jpg" width="51" height="51" border="0" title="Standard Silverlight Dawn" label="Standard Silverlight Dawn"', _new:'src="/silverlight/assets/images/wp_t_stnd_0.jpg" width="51" height="51" border="0" title="Standard Silverlight Dawn" label="Standard Silverlight Dawn"' },
{ _old:'src="/silverlight/images/1024-768.gif" width="66" height="13" border="0" title="1024x768" label="1024x768"', _new:'src="/silverlight/assets/images/1024-768.gif" width="66" height="13" border="0" title="1024x768" label="1024x768"' },
{ _old:'src="/silverlight/images/1280-1024.gif" width="66" height="13" border="0" title="1280x1024" label="1280x1024"', _new:'src="/silverlight/assets/images/1280-1024.gif" width="66" height="13" border="0" title="1280x1024" label="1280x1024"' },
{ _old:'src="/silverlight/images/800-600.gif" width="66" height="13" border="0" title="800x600" label="800x600"', _new:'src="/silverlight/assets/images/800-600.gif" width="66" height="13" border="0" title="800x600" label="800x600"' },
{ _old:'src="/silverlight/images/1152-862.gif" width="66" height="13" border="0" title="1152x862" label="1152x862"', _new:'src="/silverlight/assets/images/1152-862.gif" width="66" height="13" border="0" title="1152x862" label="1152x862"' },
{ _old:'src="/silverlight/images/1024-768.gif" width="66" height="13" border="0" title="1024x768" label="1024x768"', _new:'src="/silverlight/assets/images/1024-768.gif" width="66" height="13" border="0" title="1024x768" label="1024x768"' },
{ _old:'src="/silverlight/images/1280-1024.gif" width="66" height="13" border="0" title="1280x1024" label="1280x1024"', _new:'src="/silverlight/assets/images/1280-1024.gif" width="66" height="13" border="0" title="1280x1024" label="1280x1024"' },
{ _old:'src="/silverlight/images/800-600.gif" width="66" height="13" border="0" title="800x600" label="800x600"', _new:'src="/silverlight/assets/images/800-600.gif" width="66" height="13" border="0" title="800x600" label="800x600"' },
{ _old:'src="/silverlight/images/1152-862.gif" width="66" height="13" border="0" title="1152x862" label="1152x862"', _new:'src="/silverlight/assets/images/1152-862.gif" width="66" height="13" border="0" title="1152x862" label="1152x862"' },
{ _old:'src="/silverlight/images/1280-800.gif" width="66" height="13" border="0" title="1280x800" label="1280x800"', _new:'src="/silverlight/assets/images/1280-800.gif" width="66" height="13" border="0" title="1280x800" label="1280x800"' },
{ _old:'src="/silverlight/images/1400-864.gif" width="66" height="13" border="0" title="1400x864" label="1400x864"', _new:'src="/silverlight/assets/images/1400-864.gif" width="66" height="13" border="0" title="1400x864" label="1400x864"' },
{ _old:'src="/silverlight/images/1280-768.gif" width="66" height="13" border="0" title="1280x768" label="1280x768"', _new:'src="/silverlight/assets/images/1280-768.gif" width="66" height="13" border="0" title="1280x768" label="1280x768"' },
{ _old:'src="/silverlight/images/1600-800.gif" width="66" height="13" border="0" title="1600x800" label="1600x800"', _new:'src="/silverlight/assets/images/1600-800.gif" width="66" height="13" border="0" title="1600x800" label="1600x800"' },
{ _old:'src="/silverlight/images/1280-800.gif" width="66" height="13" border="0" title="1280x800" label="1280x800"', _new:'src="/silverlight/assets/images/1280-800.gif" width="66" height="13" border="0" title="1280x800" label="1280x800"' },
{ _old:'src="/silverlight/images/1400-864.gif" width="66" height="13" border="0" title="1400x864" label="1400x864"', _new:'src="/silverlight/assets/images/1400-864.gif" width="66" height="13" border="0" title="1400x864" label="1400x864"' },
{ _old:'src="/silverlight/images/1280-768.gif" width="66" height="13" border="0" title="1280x768" label="1280x768"', _new:'src="/silverlight/assets/images/1280-768.gif" width="66" height="13" border="0" title="1280x768" label="1280x768"' },
{ _old:'src="/silverlight/images/1600-800.gif" width="66" height="13" border="0" title="1600x800" label="1600x800"', _new:'src="/silverlight/assets/images/1600-800.gif" width="66" height="13" border="0" title="1600x800" label="1600x800"' },
{ _old:'src="/silverlight/images/wp_t_stnd_3.jpg" width="51" height="51" border="0" title="Standard Silverlight Dawn" label="Standard Silverlight Dawn"', _new:'src="/silverlight/assets/images/wp_t_stnd_3.jpg" width="51" height="51" border="0" title="Standard Silverlight Dawn" label="Standard Silverlight Dawn"' },
{ _old:'src="/silverlight/images/1024-768.gif" width="66" height="13" border="0" title="1024x768" label="1024x768"', _new:'src="/silverlight/assets/images/1024-768.gif" width="66" height="13" border="0" title="1024x768" label="1024x768"' },
{ _old:'src="/silverlight/images/1280-1024.gif" width="66" height="13" border="0" title="1280x1024" label="1280x1024"', _new:'src="/silverlight/assets/images/1280-1024.gif" width="66" height="13" border="0" title="1280x1024" label="1280x1024"' },
{ _old:'src="/silverlight/images/800-600.gif" width="66" height="13" border="0" title="800x600" label="800x600"', _new:'src="/silverlight/assets/images/800-600.gif" width="66" height="13" border="0" title="800x600" label="800x600"' },
{ _old:'src="/silverlight/images/1152-862.gif" width="66" height="13" border="0" title="1152x862" label="1152x862"', _new:'src="/silverlight/assets/images/1152-862.gif" width="66" height="13" border="0" title="1152x862" label="1152x862"' },
{ _old:'src="/silverlight/images/1024-768.gif" width="66" height="13" border="0" title="1024x768" label="1024x768"', _new:'src="/silverlight/assets/images/1024-768.gif" width="66" height="13" border="0" title="1024x768" label="1024x768"' },
{ _old:'src="/silverlight/images/1280-1024.gif" width="66" height="13" border="0" title="1280x1024" label="1280x1024"', _new:'src="/silverlight/assets/images/1280-1024.gif" width="66" height="13" border="0" title="1280x1024" label="1280x1024"' },
{ _old:'src="/silverlight/images/800-600.gif" width="66" height="13" border="0" title="800x600" label="800x600"', _new:'src="/silverlight/assets/images/800-600.gif" width="66" height="13" border="0" title="800x600" label="800x600"' },
{ _old:'src="/silverlight/images/1152-862.gif" width="66" height="13" border="0" title="1152x862" label="1152x862"', _new:'src="/silverlight/assets/images/1152-862.gif" width="66" height="13" border="0" title="1152x862" label="1152x862"' }

];


//-----------------------------------------------------------------------------------
var imageSwaps_3_3 = [
{ _old:'src="/silverlight/images/brand.jpg" width="131" height="91" border="0" title="Silverlight Brand Video" label="Silverlight Brand Video"', _new:'src="/silverlight/assets/images/brand.jpg" width="131" height="91" border="0" title="Silverlight Brand Video" label="Silverlight Brand Video"' },
{ _old:'src="/silverlight/images/ozzie.jpg" width="131" height="91" border="0" title="Ozzie Video" label="Ozzie Video"', _new:'src="/silverlight/assets/images/ozzie.jpg" width="131" height="91" border="0" title="Ozzie Video" label="Ozzie Video"' },
{ _old:'src="/silverlight/images/partner.jpg" width="131" height="91" border="0" title="Partner Video" label="Partner Video"', _new:'src="/silverlight/assets/images/partner.jpg" width="131" height="91" border="0" title="Partner Video" label="Partner Video"' }
];
//-----------------------------------------------------------------------------------
var imageSwaps_5_1 = [
{ _old:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_5.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_5.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_5.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_5.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_4.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_4.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_4.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_4.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_0.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_5.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_5.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' },
{ _old:'src="/silverlight/images/icon_blog_key_4.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"', _new:'src="/silverlight/images/icon_blog_key_4.gif" width="21" height="29" border="0" title="Blog Icon" label="Blog Icon"' }
];
//-----------------------------------------------------------------------------------
//====================================================================================================================

