/*
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/

function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_ov'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_ov'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

//------------------------

function viewTop(){
	//var so = new SWFObject("/top3.swf", "top", "850", "300", "8", "#ffffff");
    //	so.write("swfarea");
    var flashvars = null;
	var params = null;
	var attributes = null;
	swfobject.embedSWF("/top3.swf", "swfarea", "850", "300", "8.0.0","expressInstall.swf", flashvars, params, attributes);
}

function acvlink(acv){
	//alert("change");
	location.href=acv.value;
}

function gnaviSet(){
	initRollovers();
	if(jQuery("#wbList") != undefined) wbset();
}


function wbset(){
	jQuery(".wbspec").hide();
	jQuery("#wbList img").bind("mouseover", function(e){
		var num = jQuery(this).attr("id").split("-");
		var targ = jQuery("#post-" + num[1] + " .wbspec");
		targ.css("left", e.clientX + 10);
		targ.css("top", e.clientY + 10);
		targ.fadeIn(500);
	});
	jQuery("#wbList img").bind("mouseout", function(){
		var num = jQuery(this).attr("id").split("-");
		jQuery("#post-" + num[1] + " .wbspec").fadeOut(100);
	});
}

function showspec(e){
	alert(e.data.foo);
}