var viewportwidth;
var viewportheight;
var xmlHttp

gSlideshowInterval = 5;
gNumberOfImages = 5;
gImages = new Array(gNumberOfImages);
gImages[0] = "res/subimg_about_collaborative_practice.jpg";
gImages[1] = "res/subimg_faq.jpg";
gImages[2] = "res/subimg_contact.jpg";
gImages[3] = "res/subimg_learnMore.jpg";
gImages[4] = "res/subimg_memLogin.jpg";

function jsPickLanguage(p,e) {
v=e.value
if (v!="") {
	window.location=p + v
	}
}
function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}
function loadSlide(imageURL) {
	if (gImageCapableBrowser) {
		document.slide.src = imageURL;
		return false;
	}
	else {
		return true;
	}
}
function nextSlide() {
	gCurrentImage = (gCurrentImage + 1) % gNumberOfImages;
	loadSlide(gImages[gCurrentImage]);
}
gImageCapableBrowser = canManipulateImages();
gCurrentImage = 0;
//setInterval("nextSlide()",gSlideshowInterval * 1000);
// -->
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=[jImagesDir + "SlideShow-75780131-NewFirstImage.jpg", "", ""] 
fadeimages[1]=[jImagesDir + "SlideShow1-dv545085.jpg", "", ""] 
fadeimages[2]=[jImagesDir + "SlideShow2-skd268022sdc.jpg", "", ""] 
fadeimages[3]=[jImagesDir + "SlideShow3-dv545020.jpg", "", ""] 
fadeimages[4]=[jImagesDir + "SlideShow4-72302644.jpg", "", ""] //image with link syntax
fadeimages[5]=[jImagesDir + "SlideShow5-LHO_003.jpg", "", ""] //image with link and target syntax
fadeimages[6]=[jImagesDir + "SlideShow6-skd227533sdc.jpg", "", ""] 
fadeimages[7]=[jImagesDir + "SlideShow7-dv545032.jpg", "", ""] 
fadeimages[8]=[jImagesDir + "SlideShow8-skd227415sdc.jpg", "", ""] 
 
var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["res/subimg_about_collaborative_practice.jpg", "", ""] 
fadeimages2[1]=["res/13.jpg", "", ""] 
fadeimages2[2]=["res/subimg_locatePro.jpg", "", ""] 
fadeimages2[3]=["res/mar06_Cmark.gif", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages2[4]=["res/6.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
 
var fadeimages3=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages3[0]=["res/new_images/1.jpg", "", ""] 
fadeimages3[1]=["res/new_images/2.jpg", "", ""] 
fadeimages3[2]=["res/new_images/3.jpg", "", ""] 
fadeimages3[3]=["res/new_images/4.jpg", "", ""] 
fadeimages3[4]=["res/new_images/5.jpg", "", ""] 
 
var fadebgcolor="white"
 
////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}

var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2

if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')

if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}

fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}


fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}

fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=obj.degree/100
}


fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}
var jIsSubmitting=false
function jsForgotEmail() {
o=document.thisForm.emailforgot
if (o.value=="") { alert("Please enter an email address."); o.focus(); return; }
rv=isEmail(o);
if (rv!="") { alert(mBadEmail + ":" + o.name + ":" + rv); o.focus(); return; }
document.thisForm.submit()
}
function jsLogin(f,t,un,pw) {
o=un
if (o.value=="") { alert("Please enter an email address."); o.focus(); return; }
rv=isEmail(o);
if (rv!="") { alert(mBadEmail + ":" + o.name + ":" + rv); o.focus(); return; }
f.hdnVal1.value=o.value
o=pw
if (o.value=="") { alert("Please enter a Password."); o.focus(); return; }
f.hdnVal2.value=o.value
f.hdnNextOp.value='LOGIN'
f.submit()
}

function jsSideLogin(f,t,un,pw) {
o=un
if (o.value=="") { alert("Please enter an email address."); o.focus(); return; }
rv=isEmail(o);
if (rv!="") { alert(mBadEmail + ":" + o.name + ":" + rv); o.focus(); return; }
f.hdnVal1.value=o.value
o=pw
if (o.value=="") { alert("Please enter a Password."); o.focus(); return; }
f.hdnVal2.value=o.value
f.hdnNextOp.value='LOGIN'
f.submit()
}
function jsLoadSub(v) {
document.thisForm.SubscriptionID.value=v
}
function jsSubmitJoin(t) {
if (jIsSubmitting) { alert("We are in the process of submitting your transaction.  Please wait."); return 0; }
o=document.thisForm.SubscriptionID
if (o.value=="") { 
	alert("Please select a subscription");
	return
	}
o=document.thisForm.Address1
if (o.value=="") { alert("Please enter an address"); o.focus(); return }
o=document.thisForm.City
if (o.value=="") { alert("Please enter a city"); o.focus(); return }
o=document.thisForm.State
if (o.value=="") { alert("Please enter a state"); o.focus(); return }
o=document.thisForm.Postal
if (o.value=="") { alert("Please enter a Postal Code"); o.focus(); return }
o=document.thisForm.Country
if (o.value=="") { alert("Please enter a Country"); o.focus(); return }
o=document.thisForm.isAdmin
if (o.value!="ADMIN") {
	o=document.thisForm.ccType
	if (o.value=="") { alert("Please enter a Credit Card Type"); o.focus(); return }
	o=document.thisForm.ccNumber
	if (o.value=="") { alert("Please enter a Credit Card Number"); o.focus(); return }
	o=document.thisForm.ccMonth
	if (o.value=="") { alert("Please enter a Expiration Month"); o.focus(); return }
	o=document.thisForm.ccYear
	if (o.value=="") { alert("Please enter a Expiration Year"); o.focus(); return }
	}
o=document.thisForm.chkagreeToAbideByMarkLicense
if (!o.checked) { alert("You must agree to abide by the License Agreement relative to the use of the Collaborative Practice 'Mark'."); return; }
jIsSubmitting=true
document.thisForm.hdnSaveThis.value="SAVE"
document.thisForm.submit()
//rv=jsSaveFormRec(document.thisForm,this,'','')
}
function jsCheckRenew(t) {
if (jIsSubmitting) { alert("We are in the process of submitting your transaction.  Please wait."); return 0; }
o=document.thisForm.SubscriptionID
if (o.value=="") { 
	alert("Please select a subscription");
	return
	}
o=document.thisForm.Address1
if (o.value=="") { alert("Please enter an address"); o.focus(); return }
o=document.thisForm.City
if (o.value=="") { alert("Please enter a city"); o.focus(); return }
o=document.thisForm.State
if (o.value=="") { alert("Please enter a state"); o.focus(); return }
o=document.thisForm.Postal
if (o.value=="") { alert("Please enter a Postal Code"); o.focus(); return }
o=document.thisForm.Country
if (o.value=="") { alert("Please enter a Country"); o.focus(); return }
o=document.thisForm.isAdmin
if (o.value!="ADMIN") {
	o=document.thisForm.ccType
	if (o.value=="") { alert("Please enter a Credit Card Type"); o.focus(); return }
	o=document.thisForm.ccNumber
	if (o.value=="") { alert("Please enter a Credit Card Number"); o.focus(); return }
	o=document.thisForm.ccMonth
	if (o.value=="") { alert("Please enter a Expiration Month"); o.focus(); return }
	o=document.thisForm.ccYear
	if (o.value=="") { alert("Please enter a Expiration Year"); o.focus(); return }
	}
o=document.thisForm.chkagreeToAbideByMarkLicense
if (!o.checked) { alert("You must agree to abide by the License Agreement relative to the use of the Collaborative Practice 'Mark'."); return; }
jIsSubmitting=true
document.thisForm.hdnSaveThis.value="SAVEPAY"
document.thisForm.submit()
}
function jsJazzGoto(p) {
if (p=="ComingSoon") { window.location="_t.asp?T=ComingSoon" }
if (p=="ContactUs") { window.location="_t.asp?T=ContactUs&W=InfoContactUs" }

if (p=="Civil") { window.location="_Jazz-Home.asp" }

if (p=="Stories") { window.location="_t.asp?T=Stories" }

if (p=="PracticeGroups") { window.location="_t.asp?T=PracticeGroups&J=Y" }
if (p=="Books") { window.location="_t.asp?T=Books" }
if (p=="Articles") { window.location="_t.asp?T=Articles" }
if (p=="Videos") { window.location="_t.asp?T=Videos" }
if (p=="Links") { window.location="_t.asp?T=Links" }
if (p=="Links") { window.location="_t.asp?T=Links" }
if (p=="Periodicals") { window.location="_t.asp?T=Periodicals" }

if (p=="Login") { window.location="_pro.asp?T=Login" }

if (p=="CalendarPost") { window.location="_t.asp?T=CalendarPost" }
if (p=="Calendar") { window.location="_t.asp?T=Calendar" }
if (p=="MembershipRenewalAuth") { window.location="_t.asp?T=Calendar" }
if (p=="GiftMembership") { window.location="_t.asp?T=Calendar" }
if (p=="AddPracticeGroup") { window.location="_t.asp?T=GroupReg" }
if (p=="Forum") { window.location="_t.asp?T=Forum" }
if (p=="Ethics") { window.location="_t.asp?T=Ethics" }
if (p=="CivilCollab") { window.location="_t.asp?T=CivilCollab" }
if (p=="TrainersDir") { window.location="_t.asp?T=TrainersDir" }
if (p=="MemberFAQs") { window.location="_t.asp?T=MemberFAQs" }
if (p=="MembershipApp") { window.location="_reg.asp?M=" + jProLvl + "&MS=11" }

if (p=="PracticeToolsLib") { window.location="_t.asp?T=PracticeLibrary" }
if (p=="BooksPro") { window.location="_t.asp?T=BooksPro" }
if (p=="ArticlesForCivilPrac") { window.location="_t.asp?T=ARTSCIVILPRAC" }
if (p=="ArticlesPro") { window.location="_t.asp?T=ArticlesPro" }

if (p=="TrainersReg") { window.location="_t.asp?T=TrainersReg" }
if (p=="VideoLibrary") { window.location="_t.asp?T=ComingSoon" }
if (p=="WelcomeCenter") { window.location="_t.asp?T=WelcomeCenter" }
if (p=="Tip") { window.location="_mem.asp?T=Tip" }
if (p=="EthicsLib") { window.location="_t.asp?T=EthicsLib" }
if (p=="PublicEd") { window.location="_t.asp?T=PublicEd" }
if (p=="Review") { window.location="_t.asp?T=CollabReview" }
if (p=="Connection") { window.location="_t.asp?T=Connection" }
if (p=="Survey") { window.location="_t.asp?T=Survey" }
if (p=="Mentoring") { window.location="_t.asp?T=Mentoring" }
if (p=="MessageBoards") { window.location="_t.asp?T=MessageBoards" }

if (p=="UpdateProfile") { window.location="_memprofile.asp?M=" + jMemLvl + "&MS=22&MSS=2&T=Profile&S=Personal" }
if (p=="Profile-Personal") { window.location="_memprofile.asp?M=" + jMemLvl + "&MS=22&MSS=2&T=Profile&S=Personal" }
if (p=="Profile-Training") { window.location="_memprofile.asp?M=" + jMemLvl + "&MS=22&MSS=3&T=Profile&S=Training" }
if (p=="Profile-Education") { window.location="_memprofile.asp?M=" + jMemLvl + "&MS=22&MSS=4&T=Profile&S=Education" }
if (p=="Profile-Professional") { window.location="_memprofile.asp?M=" + jMemLvl + "&MS=22&MSS=5&T=Profile&S=Professional" }
if (p=="Profile-Account") { window.location="_memprofile.asp?M=" + jMemLvl + "&MS=22&MSS=6&T=Profile&S=Account" }

if (p=="WelcomeCenter") { window.location="_t.asp?T=WelcomeCenter" }

if (p=="GettingStarted") { window.location="_t.asp?T=GettingStarted" }
if (p=="GettingInvolved") { window.location="_t.asp?T=GettingInvolved" }
if (p=="WebTour") { window.location="_t.asp?T=WebTour" }
if (p=="Tools") { window.location="_t.asp?T=Tools" }

if (p=="Renew") { window.location=jIACPURL + "_ren.asp?S=RENEW&M=" + jMemLvl + "&MS=23" }
if (p=="AudioLibrary") { window.location="_t.asp?T=AudioLibrary" }

if (p=="SuggestionBox") { window.location="_t.asp?T=SuggestionBox" }
}
function jsEmailThisPage() {
document.frmPageInfo.hdnThisTitle.value=document.title;
document.frmPageInfo.hdnThisPage.value=window.location;
document.frmPageInfo.submit();
}
function jsFormLogin(f,t) {
o=f.MainUN
if (o.value=="") { alert("Please enter an valid username."); o.focus(); return; }
o=f.MainPW
if (o.value=="") { alert("Please enter a Password."); o.focus(); return; }
f.hdnNextOp.value='LOGIN'
f.submit()
}
function jsFormLoginRenew(f,t) {
o=f.MainUN
if (o.value=="") { alert("Please enter an valid username."); o.focus(); return; }
o=f.MainPW
if (o.value=="") { alert("Please enter a Password."); o.focus(); return; }
f.hdnNextOp.value='RENEW'
f.submit()
}
function jsLostPW(f) {
o=f.MainUN
if (o.value=="") { alert("Please enter an valid username and we will send your password to your registered email address."); o.focus(); return; }
f.hdnNextOp.value='FINDPW'
f.submit()
}
function jsRequestInfo(f,t) {
o=f.vInfoEmail
rv=isEmail(o);
if (rv!="") { alert(mBadEmail + ":" + o.name + ":" + rv); o.focus(); return; }
if (o.value=="") { alert("Please enter a valid email address."); o.focus(); event.preventDefault; return; }
o=f.vInfoCountry
if (o.value=="") { alert("Please select a valid Country."); o.focus(); return; }
if ((o.value!="Hong Kong") && (o.value!="Ireland")) {
	o=f.vInfoZip
	if (o.value=="") { alert("Please enter a valid Zip/Postal Code."); o.focus(); return; }
}
o=f.vInfoCountry
if (o.value=="") { alert("Please select a valid Country."); o.focus(); return; }
f.hdnNextOp.value='REQUESTINFO'
f.submit()
}
function jsSubmitEmail(f) {
o=f.RecipName
if (o.value=="") { alert("Please enter a Recipient name."); o.focus(); return; }
o=f.RecipEmail
if (o.value=="") { alert("Please enter an email for the recipient."); o.focus(); return; }
rv=isEmail(o);
if (rv!="") { alert(mBadEmail + ":" + o.name + ":" + rv); o.focus(); return; }
o=f.SenderName
if (o.value=="") { alert("Please enter your name."); o.focus(); return; }
o=f.SenderEmail
if (o.value=="") { alert("Please enter your email."); o.focus(); return; }
rv=isEmail(o);
if (rv!="") { alert(mBadEmail + ":" + o.name + ":" + rv); o.focus(); return; }
f.hdnSaveThis.value="SAVE"
f.submit()
}
function jsOpenLocate() {
vHeight=700
vWidth=850
vProps='resizable=yes,location=yes,menubar=yes,menu=yes,scrollbars=yes,height=' + vHeight + ',width=' + vWidth
vThisWin=window.open("http://www.collaborativepractice.com/_loc.asp",'View',vProps)
vThisWin.focus()
}
function jsSubmitSearch(si) {
document.forms("searchbox_008873985823673333676:tza5yk10keo").submit()
}
function jsCheckMember() {
document.thisForm.hdnNextOp.value="CHECKMEMBER"
document.thisForm.submit()
}
function jsShowMaintenance() {
alert('Sorry, but we are currently working on this function.  Please check back soon.')
}
function jsDoSort(sf,sd) {
document.thisForm.hdnSortFld.value=sf
document.thisForm.hdnSortDir.value=sd
document.thisForm.hdnNextOp.value="LIST"
document.thisForm.submit()
}
function InsertSampleMovie(path,file,w,h) {
if (file.indexOf('.swf') != -1) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + w + '" height="' + h + '">\n');
	document.write('<param name="movie" value="'  + path + file + '" />\n');
	document.write('<param name="quality" value="high"><param name="menu" value=true"><PARAM NAME="wmode" VALUE="transparent"> />\n');
	document.write('<embed src="'  + path + file + '" quality="high"  wmode="transparent" menu="true" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '"></embed>\n');
	document.write('</object>');
	return;
	}
if (file.indexOf('.wmv') != -1) {
	document.write('<EMBED src="' + file + '" width="320" height="240" autoplay="true" CONTROLLER="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED>');
	return;
	}
var ua = navigator.userAgent.toLowerCase();
  if (ua.indexOf('safari') != - 1) { 
	document.write('<object classid="clsid: 02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="https://www.apple.com/qtactivex/qtplugin.cab" width="' + w + '" height="' + h + '">\n');
	document.write('<param name="src" value="'  + path + file + '" />\n');
	document.write('<param name="controller" value="true" />\n');
	document.write('</object>\n');

  } else 

	if (navigator.plugins && navigator.plugins.length) { // Not IE browser
		document.write(' <object type="video/quicktime" data="'  + path + file + '" width="' + w + '" height="' + h + ' class="mov">\n');
	    	document.write('<param name="controller" value="true" />\n');
		document.write('</object>\n');
	}

	else { // IE / PC browser
		document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="https://www.apple.com/qtactivex/qtplugin.cab" width="' + w + '" height="' + h + '">\n');
		document.write('<param name="src" value="'  + path + file + '" />\n');
		document.write('<param name="menu" value="true" />\n');
		document.write('<param name="controller" value="true" />\n');
 		document.write('</object>\n');
  }
	
}
function jsJumpToThis(t) {
if (t.value!="") {
	window.location="#" + t.value
	}
}
function jsEditMember(t) {
window.location="../intranet_main.asp?T=MEMBER&MID=" + t
}
function jsplay(v) {
document.frmVideo.SRC.value=v
document.frmVideo.submit()
}
function stateChanged()  { 
if (xmlHttp.readyState==4) { document.getElementById(jFld).value=xmlHttp.responseText; }
}
function GetXmlHttpObject() {
var xmlHttp=null;
try  {  // Internet Explorer
    		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
//    	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
catch (e) { // Firefox, Opera 8.0+, Safari
	try {
  		xmlHttp=new XMLHttpRequest();
    		}
	catch (e) {
    		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    		}
  	}
return xmlHttp;
}
function jsLogDownload(lp) {
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null) {  alert ("Your browser does not support AJAX!");  return;  } 
var url="__GetData.asp";
url=url+"?ACT=ADD&SQL=KIT";
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
window.open(lp)
}
function jsChgClr(t,c) {
	t.style.color=c
}
function jsShowHideLogin(t) {
if (t.style.visibility=="visible") {
	t.style.visibility='hidden'
	}
else {
	t.style.visibility='visible'
	}
}
function jsMsg() {
alert(viewportheight)
//gotoThis("intranet_main.asp?T=SHOMNU")
}
function gotoThis(p) {
	alert(viewportheight)
//parent.textFrame.location=p + "H=" + viewportheight
//
}

