var $j = jQuery.noConflict();

// Get Date For Form Processor
var getDate=new Date()
var getYear=getDate.getYear()
if (getYear < 1000)
getYear+=1900
var getDay=getDate.getDay()
var getMonth=getDate.getMonth()+1
if (getMonth<10)
getMonth="0"+getMonth
var getCurrentDay=getDate.getDate()
if (getCurrentDay<10)
getCurrentDay="0"+getCurrentDay
theDate = +getMonth+"/"+getCurrentDay+"/"+getYear


// Suckerfish drop-downs
sfHover = function() {
	var sfEls = document.getElementById("primaryNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// Stripy Tables  ## JDW - jwynn@topspotims.com ##
$j(document).ready(function()
{
	var tbodys = $j("tbody.stripy");
	for (var i = 0, tbLength = tbodys.length; i < tbLength; i++) 
	{
		var rows = tbodys[i].getElementsByTagName("tr");
		for (var j = 1, rLength = rows.length; j < rLength; j+=2)
		{
			$j(rows[j]).addClass("altRow");
		}
	}
});

$j(document).ready(function() {
	$j("a.imageLink").colorbox();
	$j("a#wF817ratingsLink").colorbox({inline:true, href:"#wF817ratings", width:"650px", height:"400px"});
	$j("a#wF1197ratingsLink").colorbox({inline:true, href:"#wF1197ratings", width:"650px", height:"325px"});
	$j("a#vrg220SpecsLink").colorbox({inline:true, href:"#vrg220Specs", width:"600px", height:"250px"});
	$j("a#vrg330SpecsLink").colorbox({inline:true, href:"#vrg330Specs", width:"625px", height:"450px"});
	$j("a#cSeriesSpecsLink").colorbox({inline:true, href:"#cSeriesSpecs", width:"650px"});
});
