/**********************************************************************************************************************************
Created on:  March 31, 2008
Created by:  Venus Jacobson (vjacobson@myspace.com)
For Client:  FlipVideo

Description:
Based on the hour of the day from a users computer, TimeSwapper() swaps out the iframe src with ID name "MovieSwap".  
The iframe is contained in the HTML (AboutMe) section of the advertiser profile.  

Also, each movie has a corresponding style. The daytime movie uses index_day.css,  the night time movie uses index_night.css.  
The stylesheet reference is located in the HTML (AboutMe) section of the advertiser profile and has an ID name of "MyStyle".
**********************************************************************************************************************************/

function TimeSwapper()
{
	Stamp = new Date();
	var Hours = Stamp.getHours();

	if (Hours >= 20 || Hours < 6) 
	{
		document.getElementById('MovieSwap').src='http://creative.myspace.com/Client/FlipVideo/index_night.html';
		document.getElementById('MyStyle').href = 'http://creative.myspace.com/Client/FlipVideo/index_night.css';
	}
	else 
	{
		document.getElementById('MovieSwap').src='http://creative.myspace.com/Client/FlipVideo/index_day.html';
		document.getElementById('MyStyle').href = 'http://creative.myspace.com/Client/FlipVideo/index_day.css';			
	}

}
