document.write("<div id='aDiv' style='position:absolute;z-index:150; overflow:hidden ; background-color:#FFFFFF; border:3px solid #323232; visibility:hidden;text-align:center;color:#CCCCCC;font-size:4em;'>&nbsp;</div>")
var fsrc = (document.all && window.location.protocol=="https:")?document.images[0].src:"about:blank"
document.write("<iframe name='defaultFrameframe' id='defaultFrameframe' src='" + fsrc + "' style='position:absolute;left:0px;top:0px;width:0px;height:0px;visibility:hidden;z-index:151;' frameborder='0' scrolling='No' marginheight='0px' marginwidth='0px'></iframe>")


var defaultFrame = {
winheight:452,winwidth:600,rowheight:26,openLeft:100,
pframe:null,openerror:false,closedTop:null,closedHeight:null,closedLeft:null,closedWidth:null
}
defaultFrame.init = function(loadPG){
	this.pframe = new frameobj()
	this.pframe.setFrame('defaultFrameframe')
	this.pframe.setResizeCmd("defaultFrame.pframe.browserResize()")
	framemain.setFrameobjs(this)
	if(document.getElementById('SideBarContent')){ //is main3.css content
		defaultFrame.winheight=605
		defaultFrame.winwidth=750
		defaultFrame.openLeft=-80
	}
	//if(!document.all)this.rowheight = 25
}
defaultFrame.getParentTag = function(obj,parentTag){
	while(obj != null && obj.tagName!=parentTag){
		obj = obj.parentNode
	}
	return obj
}
defaultFrame.getOffsetTopLeft = function(obj){
	with(this){
		closedHeight = obj.offsetHeight
		closedWidth = obj.offsetWidth
		closedTop = 0
		closedLeft = 0
		while(obj!=null){
			closedTop=closedTop+obj.offsetTop;
			closedLeft=closedLeft+obj.offsetLeft;
			obj = obj.offsetParent
		}
		closedLeft = closedLeft - alayer.getBrowserMidX()
	}
}

defaultFrame.open = function(linkobj,parentTag){
	try{
		var scrollPos, openTop, closeObj,url
		with(this){
			if(!this.pframe)init(true)
			scrollPos=(document.body.scrollTop)?document.body.scrollTop:document.documentElement.scrollTop
			closeObj = getParentTag(linkobj,parentTag)
			getOffsetTopLeft(closeObj)
			openTop = (scrollPos < 60)? 180 : 100+scrollPos
			pframe.setClosePosition(closedLeft,closedTop,closedWidth,closedHeight);
			pframe.setOpenPosition(
								   linkobj.openLeft?linkobj.openLeft:openLeft,
								   linkobj.openTop?linkobj.openTop:openTop,
								   linkobj.winwidth?linkobj.winwidth:winwidth,
								   linkobj.winheight?linkobj.winheight:winheight
								   );
			url = linkobj.href
			url = url + ((url.indexOf("?")>-1)?"&popUp=true":"?popUp=true")
			pframe.openURL(url)
			framemain.openpart1(this)
		}
		if(window.event)event.returnValue = false;
		return defaultFrame.openerror
	}catch(er){
		this.openerror = true 
		return defaultFrame.openerror
		location = linkobj.href
	}
}
defaultFrame.frameLoaded = function() {
	if(!this.pframe)this.init(true)
	this.pframe.frameLoaded()
}
defaultFrame.doDrag = function(x,y) {
	this.pframe.doDrag(x,y)
}
defaultFrame.closeAndUpdate = function(val){
	this.pframe.closeFrame(val)
}




