/*	© 2004 AUTUMN:01 | info@autumn01.com */


var isAdmin = String(this.location).split("?");
isAdmin = isAdmin[0].split("#");
var isAdmin = (String(isAdmin).toLowerCase()).indexOf("/admin/")==-1?false:true;
var scriptPath = (isAdmin?"../":"");

var winName = window.name;
var isIFrame = (winName == 'iFrame'?true:false);

/* begin - text variables */
var dispRegion = "<nobr>DISPLAY IN MY REGION :</nobr>"; 
var sepBtn = '<span style="font-size:10pt">&nbsp;</span>';
var titleMy		= 'MY REGION\'s';
var titleOther	= 'OTHER REGION\'s';
/* end - text variables */

/* begin url variables */
var randNoStr = "RandNo="; //should correlate to randNoStr in SP.asp
var thisLocation = String(this.location);
var check01 = thisLocation.indexOf("?");
var check02 = thisLocation.indexOf("#");
var thisPage;
var queryStr = '';
if (check01 != -1) { 
 thisPage = thisLocation.slice(0,check01);
 queryStr = thisLocation.slice(check01+1,thisLocation.length)
}
else if (check02 != -1) { thisPage = thisLocation.slice(0,check02) }
else { thisPage = thisLocation }
thisPage += "?";
var thisDir = thisPage.slice(0,(thisPage.lastIndexOf("/")));
var isAdminDir = (thisDir.indexOf('/admin')!=-1?true:false);
var thisServer = thisLocation.slice(0,thisLocation.indexOf("/",7));

var queryStrArr = String(queryStr).split("&");
queryStr = '';
for (var i in queryStrArr) {
  if (String(queryStrArr[i]).indexOf(randNoStr) == -1 && String(queryStrArr[i]).indexOf('#') != 0) { 
    queryStr += '&' + queryStrArr[i]
  }
}
queryStr = (queryStr.slice(1));
/* end ur variables */

/* begin - browser varaibles */
var agt = navigator.userAgent.toLowerCase();
var isWin = ((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1)?1:0);
var isIE = (agt.indexOf("msie") != -1?1:0);
/* end - browser varaibles */

if (!isAdmin) {
	if (this.location != top.location && String(top.location).indexOf('/site/common/') == -1) {
		//top.location = this.location;
	}
}
