function f2dDown(objectID) {
	var object = document.getElementById(objectID);
	object.style.color = "#000000";
}
function f2dUp(objectID) {   
	var object = document.getElementById(objectID);
	object.style.color = "#000000";
}
function f2dOver(objectID) {
	var object = document.getElementById(objectID);
	object.style.color = "#ffffcc";
	object.style.background = "url(images/btnGradient4.png)";
	object.style.backgroundRepeat = "repeat-y";
}
function f2dOver2(objectID) {
	var objectA = document.getElementById(objectID);
	objectA.style.color = "#ffffcc";
	objectA.style.background = "url(images/btnGradient4.png)";
	objectA.style.backgroundRepeat = "repeat-y";
	var objectB = document.getElementById('siteLocBelowL');
	objectB.style.backgroundImage = "none";
}
function f2dOut(objectID) {
	var object = document.getElementById(objectID);
	object.style.backgroundImage = "none";
	object.style.color = "#000000";
}
function f2dOut2(objectID) {
	var objectA = document.getElementById(objectID);
	objectA.style.backgroundImage = "url(images/pageDropShadowB.png)";
	objectA.style.backgroundRepeat = "repeat-x";
	objectA.style.color = "#000000";
	var objectB = document.getElementById('siteLocBelowL');
	objectB.style.backgroundImage = "url(images/pageDropShadowBL.png)";
}
function sSOver(){
	var object = document.getElementById("sSMsg");
	object.style.visibility = "visible";
}
function sSOut(){
	var object = document.getElementById("sSMsg");
	object.style.visibility = "hidden";
}
function Track(evt) {
	var mouseX = null;
	var mouseY = null;
	evt = (evt) ? evt : ((window.event) ? window.event : null);//browser sniffing
	mouseX = evt.clientX;
	mouseY = evt.clientY;
	document.getElementById("sSMsg").style.left = mouseX +15 + "px";
	document.getElementById("sSMsg").style.top = mouseY -10 + "px";
}
var current=1
var next=2
function MoveMsg(){
	x=document.getElementById("message"+current).style
	y=document.getElementById("message"+next).style
	x.top=parseInt(x.top) - 5 +"px"
	y.top=parseInt(y.top) - 5 +"px"
	if(parseInt(x.top) > - 30)
	{
		setTimeout("MoveMsg()",50)
	}
	else
	{
		y.top="5px"
		x.top="50px"
		current=next
		next++
		if(next>5)
		{
			next=1
		}
		setTimeout("MoveMsg()",5000)
	}
}
var arraycounter = 0;
function rotateimages(){
	arraycounter=(arraycounter<imagearray.length-1) ? arraycounter+1 : 0;
	document.getElementById("slideImg").setAttribute("src", imagearray[arraycounter]);
	prefix = "http://f2designs.com/prod_detail.php";
	suffix = linkarray[arraycounter];
	myURL = prefix+suffix;
	document.getElementById("slideLink").href=myURL;
	mySubtitle = subtitlearray[arraycounter];
	document.getElementById("slideSubtitle").firstChild.data=mySubtitle;
}
function imageSwap(imgURL){
	document.getElementById("nowImg").src=imgURL;
}
function subtitleSwap(imgSubtitle){
	document.getElementById("imgSubtitle").firstChild.data=imgSubtitle;
}
function showTitle(objectID){
	var object = document.getElementById('productsTitle');
	object.style.visibility = "visible";
}
function hideTitle(objectID){
	var object = document.getElementById('productsTitle');
	object.style.visibility = "hidden";
}
function initPage(){
	setTimeout("MoveMsg()", 2000);
}
window.onload=initPage
