 
var mycarousel_itemList = [



    
    
            {type:'flash',
            video:'http://www.youtube.com/v/814TZN9zQUg?version=3&amp;hl=en_US&amp;rel=0',
            large:'',
            thumb:'/fin/carousel/thumbs/Falcon_budget_2012_111.jpg',
            alt:'Feb. 21 &ndash; Budget 2012 lays a firm foundation for the future, putting B.C. on the right path to eliminate the deficit, protect public services, and build a more competitive economy that attracts jobs and investment, announced Finance Minister Kevin Falcon. ',
   			cutline:'<h4>BUDGET 2012 FOCUSES ON A STABLE ECONOMY</h4><p>Feb. 21 &ndash; <a title=&quot;Budget 2012&quot; onclick=&quot;target=&rsquo;&rsquo;&quot; href=http://www.bcbudget.ca>Budget 2012</a> lays a firm foundation for the future, putting B.C. on the right path to eliminate the deficit, protect public services, and build a more competitive economy that attracts jobs and investment, <a title=&quot;announced&quot; onclick=&quot;target=&rsquo;&rsquo;&quot; href=http://www.newsroom.gov.bc.ca/2012/02/budget-2012-focuses-on-a-stable-economy.html>announced</a> Finance Minister Kevin Falcon.</p>'},
        

    
    
            {type:'flash',
            video:'http://www.youtube.com/v/XCi3gCVJtls?version=3&amp;hl=en_US&amp;rel=0',
            large:'',
            thumb:'/fin/carousel/thumbs/housing_transition.jpg',
            alt:'Feb. 17, 2012 &ndash; New housing transition measures give certainty to an important economic sector and help to keep taxes equitable throughout the transition as the province returns to the PST, announced Finance Minister Kevin Falcon. ',
   			cutline:'<h4>TRANSITION MEASURES HELP NEW-HOME BUYERS, BUILDERS</h4><p>Feb. 17, 2012 &ndash; New housing transition measures give certainty to an important economic sector and help to keep taxes equitable throughout the transition as the province returns to the PST, <a title=&quot;announced&quot; onclick=&quot;target=&rsquo;&rsquo;&quot; href=http://www2.news.gov.bc.ca/news_releases_2009-2013/2012FIN0006-000165.pdf>announced</a> Finance Minister Kevin Falcon.</p>'},
        

    
    
            {type:'image',
            thumb:'/fin/carousel/thumbs/prudent_fiscal_111.jpg',
            large:'<img src=/fin/carousel/images/prudent_fiscal_400.jpg>',
            alt:'Nov. 28, 2011 &ndash; B.C. is feeling the effect of continued global economic uncertainty, and the Province will need to exercise continued fiscal discipline in order to balance the budget by 2013-14, Minister Falcon announced with the release of the Q2 report. The announcement included an update on the return to the PST. [Presentation] ',
   			cutline:'<h4>B.C. MAINTAINS PRUDENT FISCAL COURSE AS REVENUES DECLINE</h4><p>Nov. 28, 2011 &ndash; B.C. is feeling the effect of continued global economic uncertainty, and the Province will need to exercise continued fiscal discipline in order to balance the budget by 2013-14, Minister Falcon <a title=&quot;announced&quot; onclick=&quot;target=&rsquo;&rsquo;&quot; href=http://www2.news.gov.bc.ca/news_releases_2009-2013/2011FIN0084-001536.pdf>announced</a> with the release of the <a title=&quot;Q2 report&quot; onclick=&quot;target=&rsquo;&rsquo;&quot; href=http://www.fin.gov.bc.ca/pubs.htm>Q2 report</a>. The announcement included an update on the return to the <a title=&quot;PST&quot; onclick=&quot;target=&rsquo;&rsquo;&quot; href=http://www.fin.gov.bc.ca/pst-return.htm>PST</a>. [<a onclick=&quot;target=&rsquo;&rsquo;&quot; href=/fin/attachments/second_quarterly_report_2011-12.pdf>Presentation</a>]</p>'},
        

    
    
            {type:'image',
            thumb:'/fin/carousel/thumbs/fiscal_challenges_111.jpg',
            large:'<img src=/fin/carousel/images/fiscal_challenges_400.jpg>',
            alt:'Sept. 8, 2011 &ndash; British Columbia will need continued prudent fiscal management to respond to challenging budget pressures and meet its commitment to eliminate the deficit in 2013-14, Minister Falcon&nbsp;announced&nbsp;with the release of the Q1 report.[More information]&nbsp;&nbsp;[Presentation] ',
   			cutline:'<h4>PROVINCE WILL MANAGE FISCAL CHALLENGES</h4><p>Sept. 8, 2011 &ndash; British Columbia will need continued prudent fiscal management to respond to challenging budget pressures and meet its commitment to eliminate the deficit in 2013-14, Minister Falcon&nbsp;<a href=http://www.newsroom.gov.bc.ca/2011/09/province-will-manage-fiscal-challenges.html>announced</a>&nbsp;with the release of the Q1 report.<br >[<a href=http://www.fin.gov.bc.ca/budgetconsultation/index.html>More information]</a>&nbsp;&nbsp;[<a href=/fin/attachments/falcon_pres_first_quarterly_report_2011-12.pdf>Presentation</a>]</p>'},
        

    
    
            {type:'image',
            thumb:'/fin/carousel/thumbs/falcon_action_plan_111.jpg',
            large:'<img src=/fin/carousel/images/falcon_action_plan_400.jpg>',
            alt:'August 26, 2011 &ndash; The Province will reinstate the combined 12 per cent PST and GST tax system following the referendum decision by British Columbians to extinguish the HST in B.C.,&nbsp;announced&nbsp;Finance Minister Kevin Falcon.&nbsp; [More information]&nbsp; [Presentation] ',
   			cutline:'<h4>ACTION PLAN IN PLACE TO RETURN B.C. TO 12% PST/GST</h4><p>August 26, 2011 &ndash; The Province will reinstate the combined 12 per cent PST and GST tax system following the referendum decision by British Columbians to extinguish the HST in B.C.,&nbsp;<a href=http://www2.news.gov.bc.ca/news_releases_2009-2013/2011FIN0067-001048.htm#&quot; target=&quot;_blank>announced</a>&nbsp;Finance Minister Kevin Falcon.&nbsp; [<a href=http://www.fin.gov.bc.ca/pst-return.htm>More information</a>]&nbsp; [<a href=http://www.fin.gov.bc.ca/docs/PPT_-_Return_to_PST_public_presentation_FINAL.pdf>Presentation</a>]</p>'},
        

    
    
            {type:'image',
            thumb:'/fin/carousel/thumbs/fiscal_prudence_111.jpg',
            large:'<img src=/fin/carousel/images/fiscal_prudence_400.jpg>',
            alt:'July 18, 2011 &ndash; British Columbia ended the fiscal year with a smaller deficit than forecast thanks to lower spending and stronger economic growth that improved revenues, Minister Falcon announced with the&nbsp;release&nbsp;of the&nbsp;2010/11 Public Accounts. ',
   			cutline:'<h4>FISCAL PRUDENCE LEADS TO LOWER DEFICIT</h4><p>July 18, 2011 &ndash; British Columbia ended the fiscal year with a smaller deficit than forecast thanks to lower spending and stronger economic growth that improved revenues, Minister Falcon announced with the&nbsp;<a href=http://www2.news.gov.bc.ca/news_releases_2009-2013/2011FIN0062-000890.pdf>release</a>&nbsp;of the&nbsp;<a href=http://www.fin.gov.bc.ca/ocg/pa/10_11/pa10_11.htm>2010/11 Public Accounts</a>.</p>'},
        

    
    
            {type:'flash',
            video:'http://www.youtube.com/v/P9uG4pQjtFw?version=3&amp;hl=en_US&amp;rel=0',
            large:'',
            thumb:'/fin/carousel/thumbs/falcon_bc_leads_111.jpg',
            alt:'Government is proclaiming 2011 the Year of the Entrepreneur, extending its commitment to reducing red-tape, and showing leadership as the first government in Canada to enshrine in law a commitment to publish annual provincial reports on regulatory accountability in B.C. [Read more] ',
   			cutline:'<h4>B.C. LEADS WITH STRENGTHENED SUPPORT FOR ENTREPRENEURS</h4><p>Government is proclaiming 2011 the Year of the Entrepreneur, extending its commitment to reducing red-tape, and showing leadership as the first government in Canada to enshrine in law a commitment to publish annual provincial reports on regulatory accountability in B.C. [<a href=http://www.newsroom.gov.bc.ca/2011/06/bc-leads-with-strengthened-support-for-entrepreneurs.html>Read more</a>]</p>'},
        

    
    
            {type:'flash',
            video:'http://www.youtube.com/v/tw_D56EFYH0?fs=1&amp;hl=en_US&amp;rel=0',
            large:'',
            thumb:'/fin/carousel/thumbs/hst_111.jpg',
            alt:'May 25, 2011 &ndash; The Province is committing to bold, responsive, and balanced changes to the Harmonized Sales Tax to make British Columbia families better off while ensuring government can meet its commitment to balanced budgets, Finance Minister Kevin Falcon announced today. [Learn more] ',
   			cutline:'<h4>GOVERNMENT COMMITS TO 10 PER CENT HST</h4><p>May 25, 2011 &ndash; The Province is committing to bold, responsive, and balanced changes to the Harmonized Sales Tax to make British Columbia families better off while ensuring government can meet its commitment to balanced budgets, Finance Minister Kevin Falcon announced today. [<a href=http://www.hstinbc.ca/making_your_choice/government_commits_to_10_per_cent_HST>Learn more</a>]</p>'},
        

    
    
            {type:'image',
            thumb:'/fin/carousel/thumbs/talks_taxes_111.jpg',
            large:'<img src=/fin/carousel/images/talks_taxes_400.jpg>',
            alt:'Government will provide $1.7 million to ensure that well-informed public engagement on the HST occurs across the province before the referendum this summer. A public engagement process to consider options to improve the HST has also been launched. April 14, 2011. [Learn more] ',
   			cutline:'<h4>BC TALKS TAXES</h4><p>Government will provide $1.7 million to ensure that well-informed public engagement on the HST occurs across the province before the referendum this summer. A public engagement process to consider options to improve the HST has also been launched. April 14, 2011. [<a href=http://www.newsroom.gov.bc.ca/2011/04/public-engagement-on-hst-policy-announced.html>Learn more</a>]</p>'},
        

    
    
            {type:'image',
            thumb:'/fin/carousel/thumbs/bc_talks_taxes_111.jpg',
            large:'<img src=/fin/carousel/images/bc_talks_taxes_400.jpg>',
            alt:'The &rsquo;Talking Taxes&rsquo; public engagement provides a timely and important opportunity for government to listen to the public and help determine what improvements may be made to the HST. [Read more] ',
   			cutline:'<h4>TALKING TAXES</h4><p>The &rsquo;Talking Taxes&rsquo; public engagement provides a timely and important opportunity for government to listen to the public and help determine what improvements may be made to the HST. [<a href=http://www.hstinbc.ca>Read more</a>]</p>'},
        

    
    
            {type:'image',
            thumb:'/fin/carousel/thumbs/falcon_fin_111.jpg',
            large:'<img src=/fin/carousel/images/falcon_fin_400.jpg>',
            alt:'March 14, 2011 &ndash; Members of Premier Christy Clark&rsquo;s new cabinet join Lieutenant-Governor Steven Point in signing their oaths of office. ',
   			cutline:'<h4>DEPUTY PREMIER AND MINISTER OF FINANCE – HON. KEVIN FALCON</h4><p>March 14, 2011 &ndash; Members of Premier Christy Clark&rsquo;s new cabinet join Lieutenant-Governor Steven Point in signing their oaths of office.</p>'},
        

    
    
            {type:'image',
            thumb:'/fin/carousel/thumbs/pcc_govt_house_111.jpg',
            large:'<img src=/fin/carousel/images/pcc_govt_house_400.jpg>',
            alt:'March 14, 2011 &ndash; Hon. Kevin Falcon was named Deputy Premier and Minister of Finance. ',
   			cutline:'<h4>NEW MINISTER FOR FINANCE</h4><p>March 14, 2011 &ndash; Hon. Kevin Falcon was named Deputy Premier and Minister of Finance.</p>'}
        


];

function initialize() {
	var item = mycarousel_itemList[0];
	if(item.type == 'image')
		updateCarousel(item.large, item.cutline)
	if(item.type == 'flash')
		create_flash(item.video, item.large, item.cutline);
}				

function create_flash(video, large, cutline)
{
	ReplaceCutline(cutline);
	//var so = new SWFObject(video,'mpl','400','285','9');
	
	if(video.match(/youtube.com/))
		var so = new SWFObject(video,'mpl','400','285','9');
		
	else {
		var so = new SWFObject('/shared/includes/flash/player.swf','mpl','400','285','9');
		so.addParam('allowfullscreen','true');
		so.addParam('allowscriptaccess','always');
		so.addParam('wmode','opaque');
		so.addVariable('file', video);
		so.addVariable('image', large);
	}

	so.write('display');
};

function updateCarousel(image, cutline)
{
	ReplaceContentInContainer(image);
	ReplaceCutline(cutline);
}

function ReplaceContentInContainer(content) {
	var container = document.getElementById('display');
	container.innerHTML = content;
}

function ReplaceCutline(content) {
	var container = document.getElementById('carousel-cutline');
	container.innerHTML = content;
}

function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt)
{
    // The index() method calculates the index from a
    // given index who is out of the actual item range.
    var idx = carousel.index(i, mycarousel_itemList.length);
    carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1]));
};

function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt)
{
    carousel.remove(i);
};

/**
 * Item html creation helper.
 */
function mycarousel_getItemHTML(item)
{
	if(item.type == 'image')
		return '<img style="cursor:pointer;" onclick="javascript:updateCarousel(\'' + item.large + '\',\'' + item.cutline + '\');" src="' + item.thumb + '" alt="' + item.alt + '" />';
	if(item.type == 'flash')
		return '<img style="cursor:pointer;" onclick="javascript:create_flash(\'' + item.video + '\',\'' + item.large + '\',\'' + item.cutline + '\');" src="' + item.thumb + '" alt="' + item.alt + '" />';
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        wrap: 'circular',
		scroll: 4,
        itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback},
        itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback}
    });
});


