//<![CDATA[
/* Replacement calls. Please see documentation for more information. */

/*if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".TOPNAV", 
	sFlashSrc:"image/veetee-helvetica.swf", 
	sColor:"#ffffff", 
	sLinkColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=center", sWmode: "transparent"}));

};*/
//]]>

//<![CDATA[
/* Replacement calls. Please see documentation for more information. */

if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:"tt_header", 
	sFlashSrc:"image/veetee-avant.swf", 
	sColor:"#ffffff", 
	sLinkColor:"#000000", 
	sBgColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));
};	
	
if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:"h3Re", 
	sFlashSrc:"image/veetee-avant.swf", 
	sColor:"#000000", 
	sLinkColor:"#000000", 
	sBgColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));
};

if(typeof sIFR == "function"){
	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:"h4", 
	sFlashSrc:"image/veetee-avant.swf", 
	sColor:"#000000", 
	sLinkColor:"#000000", 
	sBgColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));
};

if(typeof sIFR == "function"){
	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".tt_header", 
	sFlashSrc:"image/veetee-avant.swf", 
	sColor:"#FFFFFF", 
	sLinkColor:"#FFFFFF", 
	sBgColor:"#000000", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));
};

if(typeof sIFR == "function"){
	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:"#PageFooter", 
	sFlashSrc:"image/veetee-helvetica2.swf", 
	sColor:"#000000", 
	sLinkColor:"#000000", 
	sBgColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=right", sWmode: "transparent"}));
};

if(typeof sIFR == "function"){
	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".CalendarTitle", 
	sFlashSrc:"image/veetee-avant.swf", 
	sColor:"#000000", 
	sLinkColor:"#000000", 
	sBgColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));
};

/*if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".TOPNAV", 
	sFlashSrc:"image/veetee-helvetica.swf", 
	sColor:"#ffffff", 
	sLinkColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=center", sWmode: "transparent"}));

};*/

if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".Avant", 
	sFlashSrc:"image/veetee-avant.swf", 
	sColor:"#000000", 
	sLinkColor:"#000000", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));

};

if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".AvantWhite", 
	sFlashSrc:"image/veetee-avant.swf", 
	sColor:"#FFFFFF", 
	sLinkColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));

};


if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".HelveticaRight", 
	sFlashSrc:"image/veetee-helvetica2.swf", 
	sColor:"#000000", 
	sLinkColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=right", sWmode: "transparent"}));

};

/* Replacement calls. Please see documentation for more information. */

if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:"h1", 
	sFlashSrc:"image/veetee-helvetica.swf", 
	sColor:"#ccbf89", 
	sLinkColor:"#ccbf89", 
	sBgColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));
	
	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".news_header", 
	sFlashSrc:"image/veetee-avantbold.swf", 
	sColor:"#FFFFFF", 
	sLinkColor:"#FFFFFF", 
	sBgColor:"#000000", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));


};

if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({
	sSelector:".Avant", 
	sFlashSrc:"image/veetee-avant.swf", 
	sColor:"#FFFFFF", 
	sLinkColor:"#FFFFFF", 
	sHoverColor:"#CCCCCC",
	sFlashVars:"textalign=left", sWmode: "transparent"}));

};



var scrolling;
				var myrules = {
					'#UP_SLIDER' : function(el){
						el.onmouseover = function(){
							//scrollSliderRight();
							scrolling_hover = setInterval("scrollSliderUp()", 75);
						}
						el.onmouseup = function(){
							//clear interval
							clearInterval(scrolling);
							clearInterval(scrolling_hover);
							scrolling_hover = setInterval("scrollSliderUp()", 75);
						}
						el.onmouseout = function(){
							//clear interval
							clearInterval(scrolling);
							clearInterval(scrolling_hover);
						}
						el.onmousedown = function(){
							scrolling = setInterval("scrollSliderUp()", 40);
						}
					},
					'#DOWN_SLIDER' : function(el){
						el.onmouseover = function(){
							//scrollSliderRight();
							scrolling_hover = setInterval("scrollSliderDown()", 75);
						}
						el.onmouseup = function(){
							//clear interval
							clearInterval(scrolling);
							clearInterval(scrolling_hover);
							scrolling_hover = setInterval("scrollSliderDown()", 75);
						}
						el.onmouseout = function(){
							//clear interval
							clearInterval(scrolling);
							clearInterval(scrolling_hover);
						}
						el.onmousedown = function(){
							scrolling = setInterval("scrollSliderDown()", 40);
						}
					}
				};
				
				//window.onload=function(){
					Behaviour.register(myrules);
				//}
				
				function scrollSliderUp(){
					document.getElementById('homeearthstoriesslider').scrollTop=document.getElementById('homeearthstoriesslider').scrollTop-10; 
				}
				function scrollSliderDown(){
					document.getElementById('homeearthstoriesslider').scrollTop=document.getElementById('homeearthstoriesslider').scrollTop+10; 
				}
				function subscriberValidation()
				{
					if(trim(document.subscriber.email.value)=="")
					{
						alert("Please enter email address.");
						document.subscriber.email.focus();
						return false;
					}
					if(!validate_email(document.subscriber.email.value))
					{
						alert("Please enter correct email address like 123@abc.com or remove extra spaces from email address.");
						document.subscriber.email.focus();
						return false;
					}
				}
				
				
				
				
//]]>