var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
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 = "true";

if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) 
{
document.write('<SCRIPT LANGUAGE=\"VBScript\">\n on error resume next\n If MSDetect = \"true\" Then\n For i = 1 to 15\n If Not(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & i))) Then\n Else\n flashinstalled = 2\n flashversion = i\n End If\n Next\n End If\n If flashinstalled = 0 Then\n flashinstalled = 1\n End If</SCRIPT>');
}

var cookieEnabled=(navigator.cookieEnabled)? true : false;

if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled) { 
document.cookie="testcookie";
cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)? true : false; }

if (cookieEnabled) { var cook = "y"; }else{ var cook = "n"; }

sPath = document.URL;
if (sPath.indexOf('http://') == 0) { sPage = sPath.substring(sPath.indexOf('/',7) + 1); }else{ sPage = sPath.substring(sPath.indexOf('/') + 1); }
if (sPage.indexOf('?') > 0) { sPage = sPage.substring(0,sPage.indexOf('?')); }

ref = document.referrer;
var perSep = /]*]/gi; 
ref = ref.replace(perSep,"");



val = sPage + ']|]' + ref + ']|]' + screen.pixelDepth + '-' + screen.colorDepth + ']|]' + screen.width + 'X' + screen.height + ']|]' + flashinstalled + ']|]' + flashversion; 



var exp = new Date(); 
exp.setTime(exp.getTime() + (60*1000)); // 1 min.
document.cookie = "strStx=" + escape(val) + "; expires=" + exp.toGMTString() + ";";



location.href="portfolio.php";
