// JavaScript Document

function showHide(what)
{
	obj = document.getElementById(what);
	if(obj.style.display == "none")
	{
		obj.style.display = "block";
		
	}
	else
	{
		obj.style.display = "none";
		
	}
}

function fz_expand(self,what)
{
	self.blur();
	
	
	obj = document.getElementById(what);
	if(obj.style.display == "none")
	{

		self.className = "catbar off";
	}
	else
	{

		self.className = "catbar";
	}
	showHide(what);
	
}

function setFocus(el,txt)
{
	if(el.value == "")
	{
		el.value = txt;
		return false;
	}
	if(el.value == txt)
	{
		el.value = "";	
		return false;
	}
	
}

function OpenWindow(url,name,w,h)
{
	var day=new Date();
	var parameters='';
	var pageName=name?name:day.getTime();
	if(screen.height<525)
	{
		parameters='scrollbars=yes,status=no,width='+w+',height='+h+',menubar=no,left=50,top=50,location=no,resizable=no,directories=no';
	}
	else{
		parameters='scrollbars=no,status=no,width='+w+',height='+h+',menubar=no,left=50,top=50,location=no,resizable=no,directories=no';
	}
		eval("malwarecity"+pageName+" = window.open('"+url+"','"+pageName+"','"+parameters+"')");if(eval("malwarecity"+pageName)&&window.focus)eval("malwarecity"+pageName).focus();
		
}






// CSS Browser Selector   v0.2.5
// Documentation:         http://rafael.adm.br/css_browser_selector
// License:               http://creativecommons.org/licenses/by/2.5/
// Author:                Rafael Lima (http://rafael.adm.br)
// Contributors:          http://rafael.adm.br/css_browser_selector#contributors
var css_browser_selector = function()
{
    var ua=navigator.userAgent.toLowerCase();
    var is=function(t){ return ua.indexOf(t) != -1; };
    var h=document.getElementsByTagName('html')[0];
    var b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):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':'';
    var os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';
    var c=b+os+' js';
   
    h.className += h.className?' '+c:c;
}();
