
// Flash and CSS init (c) Agents.se - v3.2
//if(typeof deconcept!="undefined")
//var flashver = deconcept.SWFObjectUtil.getPlayerVersion()['major'];
/*
CSS Browser Selector v0.2.7 *Modified by The Agents
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
var css_browser_selector = function() {
	var
		ua=navigator.userAgent.toLowerCase();
		is=function(t){return ua.indexOf(t) != -1;},
		h=document.getElementsByTagName('html')[0],
		b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1)
			:is('firefox/2')?'gecko ff2':is('firefox/3')?'gecko ff3':is('gecko/')?'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',
		os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('nt 5')?' xp':is('win')?' win':'';
	var c=b+os+' js';
	h.className += h.className?' '+c:c;
}();

// Open window
var newWin = null;
function popMeUp(strURL,strType,strWidth,strHeight) {
	if (newWin != null){
		if(!newWin.closed) newWin.close();
	}
	var left=((window.screen.width/2)-(strWidth/2))-12;
	var top=((window.screen.height/2)-(strHeight/2));
	var strOptions="";
	if (strType=="console") strOptions="resizable,scrollbars,height="+strHeight+",width="+strWidth+",left="+left+",top="+top;
	if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth+",left="+left+",top="+top;
	if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth+",left="+left+",top="+top;
	newWin = window.open(strURL, 'newWin', strOptions);
	newWin.focus();
}

// No spam e-mail address v2
function noSpam(a,b,c,d) {
	if (d==null) {
		d = c+'@'+b+'.'+a;
	}
	document.write('<a href="mai'+'lto:'+c+'@'+b+'.'+a+'">'+d+'</a>');
}

// Cloak password field v2
function cloakpass(a,b,c) {
	d = b.split(":").join("_");
	switch(a) {
		case 0:
			e = "<input name=" + b + " id=" + d + " type=\"text\" value=\"L&ouml;senord\" size=\"8\" class=\"fstyle1\" onfocus=\"cloakpass(1, this.name, this.form.name);\">";
			cloakwrite(e);
		break;
		case 1:
			e = "<input name=" + b + " id=" + d + " type=\"password\" size=\"8\" class=\"fstyle1\" onblur=\"if(this.value==''){cloakpass(0, this.name, this.form.name);}\">";
			cloakwrite(e);
			document[c][d].focus();
			document[c][d].select();
			document[c][d].focus();
			document[c][d].select();
			document[c][d].focus();
			document[c][d].select();
		break;
	}
}
function cloakwrite(a) {
	document.getElementById("pwfield").innerHTML = a;
}

// Go to url
function go(a) {
	document.location.href = a;
}

// Hide/Show 1 Div
function toggle(a) {
	b = document.getElementById(a).style;
	if (b.display=="none") {
		b.display="block";
	} else {
		b.display="none";
	}
	return false;
}