var message="Plenty Of Better Pages To Try And Steal At This Site!";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;





///Cookie Baker For Visitor Tracking---->

var expDays = 30;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function When(info){
	// When
	    	var rightNow = new Date()
		var WWHTime = 0;
		WWHTime = GetCookie('AlwaysGoodToSeeYou')
		
		WWHTime = WWHTime * 1

		var lastHereFormatting = new Date(WWHTime);  // Date-i-fy that number
	        var intLastVisit = (lastHereFormatting.getYear() * 10000)+(lastHereFormatting.getMonth() * 100) + lastHereFormatting.getDate()
	        var lastHereInDateFormat = "" + lastHereFormatting;  // Gotta use substring functions
	        var dayOfWeek = lastHereInDateFormat.substring(0,3)
	        var dateMonth = lastHereInDateFormat.substring(4,10)
		var hours = "" + lastHereFormatting.getHours()
		var year = lastHereFormatting.getYear()
                if (year < 1000) year+=1900
		var minutes = "" + lastHereFormatting.getMinutes()
		if (minutes.substring(0,1) == minutes){
			minutes = "0" + minutes
		}
	        var WWHText = dayOfWeek + ", " + dateMonth + " " + year + " at " +  hours + ":" + minutes// display
	
		SetCookie ("AlwaysGoodToSeeYou", rightNow.getTime(), exp)

	return WWHText;
}

function Count(info){
	var psj=0;
	// How many times
		var WWHCount = GetCookie('YouAreCounted')
		if (WWHCount == null) {
			WWHCount = 0;
		}
		else{
			WWHCount++;
		}
		SetCookie ('YouAreCounted', WWHCount, exp);


	return WWHCount+1;
}



function set(){
//	VisitorName = prompt("Who are you?", "Nada");
//	SetCookie ('VisitorName', VisitorName, exp);
	SetCookie ('YouAreCounted', 0, exp);
	SetCookie ('AlwaysGoodToSeeYou', 0, exp);
}

function getCookieVal (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1)    
		endstr = document.cookie.length;  
		return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
	var j = i + alen;    
	if (document.cookie.substring(i, j) == arg)      
		return getCookieVal (j);    
		i = document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}  
	return null;
}

function SetCookie (name, value) {  
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}

function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	// This cookie is history  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();

}

//End Cookie Cutting--->







////////////Old Fashion Mouseover Status Bar---Don't Laugh It Works!--->

function msg(text) {

        window.status=text;

        return true;

        }




//// Do Frame Busting---I'm Doing Linkers A Favor Here!

  if( top.location != location ) 
    top.location.href = location.href; 

  // For Poor IE4 Users
  function isMsie4orGreater() 
  { 
    var ua = window.navigator.userAgent;   
    var msie = ua.indexOf ( "MSIE " );
    if( msie > 0 )
    {
      return (parseInt( ua.substring( msie+5, ua.indexOf( ".", msie ))) >=4) && (ua.indexOf("MSIE 4.0b") <0);
    }
    else 
    {
      return false;
    }
  }
  // End Breaking Frames and now Do red arrow image changeover

image01 = "extras/on.gif"  
image02 = "extras/off.gif"

function imgover(imgname){
     imgname.src = image01
}

function imgout(imgname){
     imgname.src = image02
}





// End That And Do The Best NS4 Bug Fix Script Yet!

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var rootdomain="http://"+window.location.hostname

function ajaxinclude(url) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.open('GET', url, false) //get page synchronously 
page_request.send(null)
writecontent(page_request)
}

function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}




/////Tones 4 $ Studio Pop

function mofo()  {
   iwin = window.open("extras/studio.html","IWIN",
   "status=no, scrollbars=yes,toolbar=yes,location=no,menu=no,width=1240,height=900,resizable=yes");
}

/////Copyright Alert

function fofo()  {
   iwin = window.open("greg/mootoo.html","IWIN",
   "status=no,toolbar=no,location=no,menu=no,width=100,height=100,resizable=no");
}

////Referrer Page Test

function nono()  {
   iwin = window.open("extras/test.php","IWIN",
   "status=no,toolbar=no,location=no,menu=no,width=300,height=200,resizable=no");
}

/////Mixing Tutorial Pop

function coco()  {
   iwin = window.open("extras/mixerpanel.html","IWIN",
   "status=yes,toolbar=no,location=no,menu=no,width=600,height=800,resizable=yes");
}





////Cookie Controller For Tutorial Pop

var expDays = 1; // number of days the cookie should last

var page = "extras/mixerpanel.html";

var windowprops = "width=600,height=800,location=no,status=yes,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";

function GetCookie (name) {  

var arg = name + "=";  

var alen = arg.length;  

var clen = document.cookie.length;  

var i = 0;  

while (i < clen) {    

var j = i + alen;    

if (document.cookie.substring(i, j) == arg)      

return getCookieVal (j);    

i = document.cookie.indexOf(" ", i) + 1;    

if (i == 0) break;   

}  

return null;

}

function SetCookie (name, value) {  

var argv = SetCookie.arguments;  

var argc = SetCookie.arguments.length;  

var expires = (argc > 2) ? argv[2] : null;  

var path = (argc > 3) ? argv[3] : null;  

var domain = (argc > 4) ? argv[4] : null;  

var secure = (argc > 5) ? argv[5] : false;  

document.cookie = name + "=" + escape (value) + 

((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 

((path == null) ? "" : ("; path=" + path)) +  

((domain == null) ? "" : ("; domain=" + domain)) +    

((secure == true) ? "; secure" : "");

}

function DeleteCookie (name) {  

var exp = new Date();  

exp.setTime (exp.getTime() - 1);  

var cval = GetCookie (name);  

document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();

}

var exp = new Date(); 

exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function amt(){

var Stocking = GetCookie('Seminar')

if(Stocking == null) {

SetCookie('Seminar','1')

return 1

}

else {

var newStocking = parseInt(Stocking) + 1;

DeleteCookie('Seminar')

SetCookie('Seminar',newStocking,exp)

return Stocking

   }

}

function getCookieVal(offset) {

var endstr = document.cookie.indexOf (";", offset);

if (endstr == -1)

endstr = document.cookie.length;

return unescape(document.cookie.substring(offset, endstr));

}



function checkSeminar() {

var Stocking = GetCookie('Seminar');

if (Stocking == null) {

Stocking=1;

SetCookie('Seminar', Stocking, exp);



window.open(page, "", windowprops);



}

else {

Seminar++;

SetCookie('Seminar', Seminar, exp);

   }

}
