var splash_list = {
	video_micropayments:{
		id: 0,
		header:"Video Micropayments",
		text:"<p>Our video micropayments module is a key part of our standard plugin.  It lets you, as a video publisher, set a small fee or subscription that viewers pay when they watch your video assets.</p><p>This is set on a per-video or site-wide basis and takes just two clicks from your 'my videos' section.</p><p>When using our micropayments tool, you can opt to turn other revenue sources (such as advertising) off.</p><p>We can integrate with SSO systems.</p>",
		link:"./pub_packages.php"
	},
	pay_per_click:{
		id: 1,
		header:"Pay-per-click",
		text:"<p>Pay per click advertising is possibly the most effective and measurable type available.  As popularised by Google with their Adwords product, pay-per-click ads are used by companies big and small.</p><p>Our pay per click ads are linked to hotspots in publisher's video, generating you clicks from inspired viewers.</p>",
		link:"./pub_packages.php"
	}/*,
	display_advertising:{
		id: 2,
		header:"Video display advertising",
		text:"<p>Video display advertising is arguably the most effective form of display advertising; engagement rates of IRO 20% show that 'banner blindness' doesn't occur with video.</p><p>You don't even need your own videos to get started; we can create cost-effective 'video' creative from your static images too!</p>",
		link:"./campaign.php"
	},
	linklock:{
		id: 3,
		header:"LinkLock",
		text:"<p>LinkLocks give you the opportunity to lock down the videos that are most relevant to you.</p><p>You then pay on a 'per view' rather than 'per click' basis.</p><p>The fee is calculated based on a fixed fee per hotspot impression and proves very cost effective.</p><p>To get started <a href=\"#\" onclick=\"window.open('./contact_form.php','contact_form','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=500, height=400');return false;\">contact us</a>, or click the invideous.com favicon on any third party video you want to lock down.</p>",
		link:"./signup.php"
	},
	video_seo_tools:{
		id: 4,
		header:"Video SEO tools",
		text:"<p>As a website publisher video can be hugely beneficial in terms of improved SEO, but it can also be a minefield.</p><p>Work with us to get the tools you need to maximise the value that video brings to your website.</p>",
		link:"./signup.php"
	},
	earn_cpc_revenue:{
		id: 5,
		header:"Earn CPC revenues",
		text:"<p>As a website publisher video can earn you significant revenues, often with no opportunity cost.</p><p>Try getting started with our CPC ad insertion technology as a remarkable unobtrusive format for your viewers.</p><p>We supply the ads so you can sit back and count the revenues.</p>",
		link:"./signup.php"
	},
	earn_cpm_revenue:{
		id: 6,
		header:"Earn CPM revenues",
		text:"<p>CPM revenues accrue each time a video ad loads on your website, regardless of whether a viewer clicks it or not.</p><p>Our video ads can display either in your video player itself, or in conventional MPU positions.</p>",
		link:"./signup.php"
	},
	earn_cpa_revenue:{
		id: 7,
		header:"Earn CPA revenues",
		text:"<p>CPA is generally used in the course of affiliate marketing activities.  This means that each time a sale, lead or other deliverable occurs as a result of a viewer clicking or engaging with a video ad, you earn money.</p><p>We work with a variety of advertisers on this basis; please click the link below to find out more.</p>",
		link:"./signup.php"
	},
	youtube_plugin:{
		id: 8,
		header:"Get video for your website",
		text:"<p>We can help you get more video content for your website for the benefit of your visitors and to potentially earn more revenues.</p><p>Click the link below to get exciting video content for your website.</p>",
		link:"./signup.php"
	},
	get_product_video:{
		id: 9,
		header:"Get product video",
		text:"<p>We can help you produce the product video you need to help sell your products.</p><p>We can either advise on what video to shoot, or we can work with existing video or even photographs you may have in order to create compelling content.</p>",
		link:"./signup.php"
	},
	sales_through_cpm:{
		id: 10,
		header:"Generate sales with CPM ads",
		text:"<p>Our platform enables us to deliver your product videos, or video advertising creative, into third party sites at low cost.</p><p>You can either use our network of sites, or we can supply you with the ad tags so we serve the video into sites of your choosing.</p>",
		link:"./signup.php"
	},
	sales_through_cpa:{
		id: 11,
		header:"Generate sales with CPA ads",
		text:"<p>We currently work with Commission Junction (affiliate agency) to make video driven affiliate marketing as accountable as when using any other content type.</p><p>This means you get the benefits of video (15%+ CTR) with conventional affiliate marketing expertise.</p>",
		link:"./signup.php"
	},
	sales_through_cpc:{
		id: 12,
		header:"Generate sales with CPC ads",
		text:"<p>We have a unique platform that tags video with moveable, clickable hotspots.  These are tagged with meta-data to ensure relevant click through ads are displayed.</p><p>The ads appear on hover over and the destination URL opens on click meaning you get clicks from inspired viewers.</p>",
		link:"./signup.php"
	}*/
};

var num_splash_list = new Array(
	'video_micropayments',
	'pay_per_click'/*,
	'display_advertising',
	'linklock',
	'video_seo_tools',
	'earn_cpc_revenue',
	'earn_cpm_revenue',
	'earn_cpa_revenue',
	'youtube_plugin',
	'get_product_video',
	'sales_through_cpm',
	'sales_through_cpa',
	'sales_through_cpc'*/
);
var current_splash = 0;
var splash_total = 2;
var splash_slide_show = null;


function splashChange(id)
{
	if(undefined != splash_list[id])
	{
		$('table.ews_splash_banner div.ews_splash_content').fadeOut(
			1000,
			function ()
			{
				$('#ews_splash_banner_right div.ews_splash_content h2').text(splash_list[id].header);
				$('#ews_splash_banner_right div.ews_splash_content div').html(splash_list[id].text);
				$('#ews_splash_banner_button a').attr('href', splash_list[id].link);
				$('#ews_splash_banner_left div.ews_splash_content img').attr('src', './images/splash/' + id + '.jpg');
				
				current_splash = splash_list[id].id;
				
				$('table.ews_splash_banner div.ews_splash_content').fadeIn(1000);
			}
		);
	}
}

function splashNext()
{
	current_splash++;
	if(current_splash == splash_total)
		current_splash = 0;
	splashChange(num_splash_list[current_splash]);
}

function splashSlideShowStart()
{
	splash_slide_show = setInterval('splashNext()', 12000);
}

function splashSlideShowStop()
{
	clearInterval(splash_slide_show);
}

function splashGoTo(id, menuItem)
{
	splashSlideShowStop();
	if(current_splash != splash_list[id].id)
		splashChange(id);
	//setTimeout('splashSlideShowStart()', 10000);
}

splashSlideShowStart();