/*
	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);
			}
		}
	}
}




window.onload = function(){
	initRollovers();
}

$(document).ready(function() {
	$("#wrapper #contents #bd #faq dt").hover(function(){
		$(this).css("cursor","pointer"); 
	},function(){
		$(this).css("cursor","default"); 
		});
	$("#wrapper #contents #bd #faq dd").css("display","none");
	$("#wrapper #contents #bd #faq dt").click(function(){
		$(this).next().slideToggle("fast");


		});
	
	$(function(){
	$("#wrapper #contents #bd #faq dt").click(function(){
		$(this).toggleClass("act")
	})
	
	
});
});


$(function(){
	$("ul.fcon a.tgt").textresizer({
	     target: "#wrapper #contents"
	});
});

/*popoupwindow*/
var profiles =
{

	window800:
	{
		height:800,
		width:800,
		status:1
	},

	window200:
	{
		height:200,
		width:200,
		status:1,
		resizable:0
	},

	windowCenter:
	{
		height:700,
		width:600,
		center:1
	},
	windowCenter2:
	{
		height:800,
		width:615,
		center:1
	},
	windowCenter3:
	{
		height:900,
		width:600,
		center:1
	},
		windowCenter4:
	{
		height:800,
		width:680,
		center:1
	},
	
	windowNotNew:
	{
		height:300,
		width:400,
		center:1,
		createnew:0
	}

};


$(function()
{
	$(".popupwindow").popupwindow(profiles);
});



