var loadstate1 = "init"; //variable to find the state for loading content
var constantInnerHTML1 = ""; //varible to hold the Scheme Name Column
    
//Scheme Name column is stored upon calling this function
function initialiseInnerHTML1()
{
	constantInnerHTML1 = document.getElementById("fundingtab0").innerHTML;
}

//Content to appear upon loading of page
function initialiseTable1()
{
	if (loadstate1=="init")
	{
		elem1 = document.getElementById("fundingtab0");
		elem1.innerHTML= loadStateInit1();    
	} 
}

function btnPrev_Click1()
{
	if (loadstate1=="last")
	{
		loadstate1="step1";
	}
	else if (loadstate1=="step1")
	{
		loadstate1="init";
	}
	
	elem1 = document.getElementById("fundingtab0");
	
	if(loadstate1=="step1")
	{
		elem1.innerHTML = loadStateStep2();
	}
	else if (loadstate1=="init")
	{
		elem1.innerHTML = loadStateInit1();
	}  
}

function btnNext_Click1()
{
	if (loadstate1=="init")
	{
		loadstate1="step1";
	}
	else if (loadstate1=="step1")
	{
		loadstate1="last";
	}

	elem1 = document.getElementById("fundingtab0");

	if(loadstate1=="step1")
	{
		elem1.innerHTML = loadStateStep2();
	}
	else if (loadstate1=="last")
	{
		elem1.innerHTML = loadStateLast1();
	}  
}

function loadStateInit1()
{
	var innerHTMLText1 = "";

	innerHTMLText1 = constantInnerHTML1 + "<div id=\"fundingtab0_arrow_previous\"><img src=\"/BusinessCentre/PublishingImages/Funding/arrow_previous.png\" alt=\"Previous\" class=\"prev\" onclick=\"btnPrev_Click1();\" style=\"display:none\"/></div>";

	innerHTMLText1 = innerHTMLText1 + "<div id=\"fundingtab0_values\"><div><div class=\"values\" id=\"first\"><div class=\"head\">All</div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>"; 
	innerHTMLText1 = innerHTMLText1 + "<div><div onmouseover=\"MyTip('schemes','The MDA - South West Screen &ldquo;Multi-Platform Content Across Continents&rdquo; Initiative is a package of tangible support launched on 8 December 2010 to encourage Singapore and British production companies to co-develop concepts with multiplatform elements.<br><br>In the first phase of the Initiative, a targeted programme - which included business mentoring, training events and networking opportunities - was organised between December 2010 and February 2011 to facilitate the development of collaborative partnerships between media companies in Singapore and the South West of England.<br><br>In this second phase of the Initiative, the MDA and South West Screen invite Singaporean and British co-production partner to apply for development funding of up to &pound;15,000 for collaborative proposals that encompass the development of content which harnesses the interactivity and versatility of new digital media platforms, including but not limited to handheld devices, internet channels and social media platforms, to reach and engage an audience.','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div></div>"; 
 
	innerHTMLText1 = innerHTMLText1 + "<div class=\"values\" id=\"second\"><div class=\"head\">Film</div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','A co-funding scheme which provides emerging talents the opportunity to direct feature films in collaboration with a production company, with support for marketing and guaranteed local distribution. <br>Application deadline for 2010 is 18 November 6pm.<br><a href=/BusinessCentre/Pages/NFFF.aspx>For More Information.</a>','');\" onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div> ";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','IFF (International Film Fund) aims to encourage Singapore production and post-production companies to assume executive producer or co-producer roles with international partners in films with maximum international marketability and commercial value. Under this scheme, the Media Development Authority will co-invest, together with local production and/or post-production companies, and other international partners and investors, in feature films that present opportunities for global reach, and returns, under a co-sharing of rights and revenues arrangement. The MDA&acute;s level of participation will be dependent on the scale, scope and merits of the project.<br/><a href=/BusinessCentre/Pages/IFF.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div></div> ";

	innerHTMLText1 = innerHTMLText1 + "<div class=\"values\" id=\"third\"><div class=\"head\">TV</div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div><img  src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','In support of the Thye Hwa Kwan&#180;s  Moral Society&#180;s  (THKMS) efforts to combat family violence in the Indian community, the Ministry of Community Development, Youth &amp; Sports (MCYS) and the Media Development Authority (MDA) are jointly looking for proposals for a Tamil TV drama series with the theme “Family Violence in Indian Families in Singapore”. You are invited to make a submission for this public service content project.<br/><a href=/BusinessCentre/Pages/MCYS.aspx>For More Information.</a>','');\" onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','Funds the development of original media properties into brands and franchises. <br/> <a href=/BusinessCentre/Pages/360TV.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','Closing date for MDA-ScreenWest Call for Proposals is 6 December 2010.<br/><a href=/BusinessCentre/Pages/SouthWestScreen.aspx>For More Information.</a> ','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div> ";
	innerHTMLText1 = innerHTMLText1 + "<div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','The MDA and MediaCorp invite applications from Singapore traditional or digital production companies for format-driven and sponsor-friendly Web productions that are aimed at the younger audience of 15 - 34 years old; who enjoy mainstream entertainment and are active users of social media but not necessarily early adopters.  Both MDA and MediaCorp hope that the producers’ ideas will take advantage of the richness of traditional TV, harness the power of the broadband like interactivity, mobility, social media etc to deliver compelling new entertainment for the connected audiences around the world.<br><br><a href=/BusinessCentre/Pages/MDAMediaCorpxinmsn.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div></div>"; 

	innerHTMLText1 = innerHTMLText1 + "<div id=\"fundingtab0_arrow_next\"><img src=\"/BusinessCentre/PublishingImages/Funding/arrow_next.png\" alt=\"Next\" class=\"next\" onclick=\"btnNext_Click1();\" /></div></div>";

	return innerHTMLText1;
}

function loadStateStep2()
{
	var innerHTMLText1 = "";
	
	innerHTMLText1 = constantInnerHTML1 + "<div id=\"fundingtab0_arrow_previous\"><img src=\"/BusinessCentre/PublishingImages/Funding/arrow_previous.png\" alt=\"Previous\" class=\"prev\" onclick=\"btnPrev_Click1();\"  /><div></div><div></div></div>";

	innerHTMLText1 = innerHTMLText1 + "<div></div><div id=\"fundingtab0_values\"><div><div class=\"values\" id=\"fourth\"><div class=\"head\">Publishing</div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div  onmouseover=\"MyTip('schemes','SPINE aims to catalyse the development of original publishing properties into brands and franchises that live on multiple media platforms &ndash;print, online, TV, mobile/handheld devices, consumer products. The Programme may involve the development of new publishing series or imprints, or the enhancement, extension and/or expansion of established publishing properties in relation to content, design, and distribution aimed at international distribution and readership.<br/> <a href=/BusinessCentre/Pages/SPINE.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div> ";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','The MDA Cross-Sector (X-sector) initiative aims to identify and develop new content, services, and applications catering to the unique requirements for the different sectors.<br/> <a href=/BusinessCentre/Pages/XSECTOR.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div>";
	innerHTMLText1 = innerHTMLText1 + "<div><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>";

	innerHTMLText1 = innerHTMLText1 + "<div class=\"values\" id=\"fifth\"><div class=\"head\">Games</div>";
	innerHTMLText1 = innerHTMLText1 + "<div><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div><div></div><div></div>"; 
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div  onmouseover=\"MyTip('schemes','The MDA Cross-Sector (X-sector) initiative aims to identify and develop new content, services, and applications catering to the unique requirements for the different sectors.<br/> <a href=/BusinessCentre/Pages/XSECTOR.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div>"; 
	innerHTMLText1 = innerHTMLText1 + "<div></div>"; 
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div></div>";
        
	innerHTMLText1 = innerHTMLText1 + "<div class=\"values\" id=\"sixth\"><div class=\"head\">Animation</div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','The MDA Cross-Sector (X-sector) initiative aims to identify and develop new content, services, and applications catering to the unique requirements for the different sectors.<br/> <a href=/BusinessCentre/Pages/XSECTOR.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div>";
	innerHTMLText1 = innerHTMLText1 + "<div><img  src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','IAF aims to encourage Singapore animation companies to assume executive producer or co-producer roles with international partners in films with maximum international marketability and commercial value.<br/> <a href=/BusinessCentre/Pages/IAF>For More Information.</a>','');\" onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div><div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','A co-funding scheme which provides emerging talents the opportunity to direct feature films in collaboration with a production company, with support for marketing and guaranteed local distribution. <br>Application deadline for 2010 is 18 November 6pm.<br><a href=/BusinessCentre/Pages/NFFF.aspx>For More Information.</a>','');\" onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div> ";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','IFF (International Film Fund) aims to encourage Singapore production and post-production companies to assume executive producer or co-producer roles with international partners in films with maximum international marketability and commercial value. Under this scheme, the Media Development Authority will co-invest, together with local production and/or post-production companies, and other international partners and investors, in feature films that present opportunities for global reach, and returns, under a co-sharing of rights and revenues arrangement. The MDA&acute;s level of participation will be dependent on the scale, scope and merits of the project.<br/><a href=/BusinessCentre/Pages/IFF.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div></div> ";

	innerHTMLText1 = innerHTMLText1+"<div id=\"fundingtab0_arrow_next\"><img src=\"/BusinessCentre/PublishingImages/Funding/arrow_next.png\" alt=\"Next\" class=\"next\" onclick=\"btnNext_Click1();\" /></div>";

	return innerHTMLText1;    
}

function loadStateLast1()
{
	var innerHTMLText1 = "";

	innerHTMLText1 = constantInnerHTML1 + "<div id=\"fundingtab0_arrow_previous\"><img src=\"/BusinessCentre/PublishingImages/Funding/arrow_previous.png\" alt=\"Previous\" class=\"prev\" onclick=\"btnPrev_Click1();\"  /><div></div><div></div></div>";
	
	innerHTMLText1 = innerHTMLText1 + "<div id=\"fundingtab0_values\"><div><div class=\"values\" id=\"seventh\"><div class=\"head\">Media  Services</div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','The MDA Cross-Sector (X-sector) initiative aims to identify and develop new content, services, and applications catering to the unique requirements for the different sectors.<br/> <a href=/BusinessCentre/Pages/XSECTOR.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>";

	innerHTMLText1 = innerHTMLText1 + "<div class=\"values\" id=\"eighth\"><div class=\"head\">IDM</div>";
    innerHTMLText1 = innerHTMLText1 + "<div></div><div><img  src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\" /></div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div onmouseover=\"MyTip('schemes','The MDA Cross-Sector (X-sector) initiative aims to identify and develop new content, services, and applications catering to the unique requirements for the different sectors.<br/> <a href=/BusinessCentre/Pages/XSECTOR.aspx>For More Information.</a>','');\"  onmouseout=\"UnTip();\"><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"  /></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div> ";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div></div>";

	innerHTMLText1 = innerHTMLText1 + "<div class=\"values\" id=\"last\"><div  class=\"head\">Music</div>";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div>";
	innerHTMLText1 = innerHTMLText1 + "<div><img src=\"/BusinessCentre/PublishingImages/Funding/icon_checked.gif\" alt=\"\"/></div> ";
	innerHTMLText1 = innerHTMLText1 + "<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>";

	return innerHTMLText1; 
}
