// DETECTARE FLASH - daca este instalat si ce versiune este instalata
var flashinstalled = 0;
var flashversion = 0;
MSDetect = 0;
if (navigator.plugins && navigator.plugins.length) {
    x = navigator.plugins["Shockwave Flash"];
    if (x) {
        flashinstalled = 2;
        if (x.description) {
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
    } else
        flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"]) {
        flashinstalled = 2;
        flashversion = 2;
	}
} else
    if (navigator.mimeTypes && navigator.mimeTypes.length) {
        x = navigator.mimeTypes['application/x-shockwave-flash'];
        if (x && x.enabledPlugin) flashinstalled = 2;
       	else flashinstalled = 1;
    } else
        MSDetect = 1;

//detectarea manuala a versiunii de flash
if (MSDetect) {
    document.write('<script language=VBScript>\n on error resume next\n');
    document.write('For i = 2 to 7\n If IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i)) Then\n flashinstalled=2\n flashversion=i\n End If\n Next\n');
    document.write('If flashinstalled=0 Then\n  flashinstalled=1\n End If\n <\/SCRIPT>');
}

// referer
if(typeof(top.document)=="object")
    DCsCounter_referer=escape(top.document.referrer);
else
    for(count_i=0;count_i<20&&typeof(window.document)=="object";count_i++)
        DCsCounter_referer=escape(window.document.referrer);


// java enabled
if (navigator.javaEnabled() < 1) DCsCounter_javaEnabled=0;
if (navigator.javaEnabled() == 1) DCsCounter_javaEnabled=1;

// numar culori
if (navigator.appName!="Netscape")
    DCsCounter_colorDepth=screen.colorDepth;
else
    DCsCounter_colorDepth=screen.pixelDepth;

// GO COUNT link
var DCsCounter_goCount="";
DCsCounter_goCount+="http://www.dcsfastlink.ro/DCsAdvancedCounter/countvisitor.php?";
DCsCounter_goCount+="DCsCounter_company="+DCsCounter_company;
DCsCounter_goCount+="&DCsCounter_section="+DCsCounter_section;
DCsCounter_goCount+="&DCsCounter_screenWidth="+screen.width;
DCsCounter_goCount+="&DCsCounter_screenHeight="+screen.height;
DCsCounter_goCount+="&DCsCounter_colorDepth="+DCsCounter_colorDepth;
DCsCounter_goCount+="&DCsCounter_flashInstalled="+flashinstalled;
DCsCounter_goCount+="&DCsCounter_flashVersion="+flashversion;
DCsCounter_goCount+="&DCsCounter_referer="+DCsCounter_referer;
DCsCounter_goCount+="&DCsCounter_javaEnabled="+DCsCounter_javaEnabled;

// GO COUNT
document.write('<img src="'+DCsCounter_goCount+'" border=0 width=1 height=1>');
