//** Tab Content script v2.0- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
//** Updated Oct 7th, 07 to version 2.0. Contains numerous improvements:
//   -Added Auto Mode: Script auto rotates the tabs based on an interval, until a tab is explicitly selected
//   -Ability to expand/contract arbitrary DIVs on the page as the tabbed content is expanded/ contracted
//   -Ability to dynamically select a tab either based on its position within its peers, or its ID attribute (give the target tab one 1st)
//   -Ability to set where the CSS classname "selected" get assigned- either to the target tab's link ("A"), or its parent container
//** Updated Feb 18th, 08 to version 2.1: Adds a "tabinstance.cycleit(dir)" method to cycle forward or backward between tabs dynamically
//** Updated April 8th, 08 to version 2.2: Adds support for expanding a tab using a URL parameter (ie: http://mysite.com/tabcontent.htm?tabinterfaceid=0) 

////NO NEED TO EDIT BELOW////////////////////////

function MM_swapImgRestore(){ //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages(){ //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d){ //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage(){ //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function fm102xt(){
var myrandom=Math.round(Math.random()*30)
var links=new Array()

links[0]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=148888.10000008&type=4&subid=0\"><IMG alt=\"For your life on the go ... mobile apps and games for your smartphone or PDA from Handango.\" border=\"0\" src=\"http://assets.handango.com/marketing/affiliate/drivepm/handango4_728X90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=148888.10000008&type=4&subid=0\">"

links[1]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=148888.10000180&type=4&subid=0\"><IMG alt=\"Handango Inc.\" border=\"0\" src=\"http://assets.handango.com/marketing/Affiliate/Retro/Affiliate_Retro_728x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=148888.10000180&type=4&subid=0\">"

links[2]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=148888.10000171&type=4&subid=0\"><IMG alt=\"Handango Inc.\" border=\"0\" src=\"http://assets.handango.com/marketing/Affiliate/standard/Affiliate_btn_728x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=148888.10000171&type=4&subid=0\">"

links[3]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=137512.10000051&type=4&subid=0\"><IMG alt=\"iPad TPU Thermoplastic Polyurethane Resin Skin Cover \" border=\"0\" src=\"http://www.reigndynasty.com/images/linkshare/tup-ipad-product-banner.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=137512.10000051&type=4&subid=0\">"

links[4]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=123018.10000046&type=4&subid=0\"><IMG alt=\"Homestead an Intuit Co.\" border=\"0\" src=\"http://www.hspromos.com/files/Ads/easyas123_728x90.gif\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=123018.10000046&type=4&subid=0\">"

links[5]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=215953.10000328&subid=0&type=4\"><IMG border=\"0\"   alt=\"Hotwire: 4-Star Hotels at 2 Star Prices; Save 50%\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=215953.10000328&subid=0&type=4&gridnum=16\"></a>"

links[6]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=161503.828&type=4&subid=0\"><IMG alt=\"\" border=\"0\" src=\"http://www.rifftrax.com/files/ls_banners/SantaAndBunny_728x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=161503.828&type=4&subid=0\">"

links[7]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=161503.809&type=4&subid=0\"><IMG alt=\"\" border=\"0\" src=\"http://www.rifftrax.com/files/ls_banners/Twilight3_728x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=161503.809&type=4&subid=0\">"

links[8]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=161503.693&type=4&subid=0\"><IMG alt=\"\" border=\"0\" src=\"http://www.rifftrax.com/files/ls_banners/Avatar_728x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=161503.693&type=4&subid=0\">"

links[9]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=166833.10000294&subid=0&type=4\"><IMG border=\"0\"   alt=\"Microsoft Store\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=166833.10000294&subid=0&type=4&gridnum=16\"></a>"

links[10]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=166833.10000359&subid=0&type=4\"><IMG border=\"0\"   alt=\"Microsoft Store\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=166833.10000359&subid=0&type=4&gridnum=16\"></a>"

links[11]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=191979.10001421&subid=0&type=4\"><IMG border=\"0\"   alt=\"No Fees + PA (728x90)\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=191979.10001421&subid=0&type=4&gridnum=16\"></a>"

links[12]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=174585.10000537&subid=0&type=4\"><IMG border=\"0\"   alt=\"Office Depot, Inc\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=174585.10000537&subid=0&type=4&gridnum=16\"></a>"

links[13]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=209192.10000102&type=4&subid=0\"><IMG alt=\"Picaboo Family Photo Books\" border=\"0\" src=\"http://affiliates.picaboocorp.com/affiliates/images/general/family728x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=209192.10000102&type=4&subid=0\">"

links[14]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=45320.10000403&type=4&subid=0\"><IMG alt=\"Plow & Hearth\" border=\"0\" src=\"http://www.plowhearth.com/plow_assets/affiliates/PHtag_728x90_1.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=45320.10000403&type=4&subid=0\">"

links[15]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=175560.10001030&subid=0&type=4\"><IMG border=\"0\"   alt=\"Register.com\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=175560.10001030&subid=0&type=4&gridnum=16\"></a>"

links[16]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=216470.10000416&type=4&subid=0\"><IMG alt=\"Sierra Trading Post\" border=\"0\" src=\"http://www.sierratradingpost.com/assets/images/ppam/ad_images/stylefeeder_728x90.gif\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=216470.10000416&type=4&subid=0\">"

links[17]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=129871.10000070&subid=0&type=4\"><IMG border=\"0\"   alt=\"Sirius Satellite Radio Inc.\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=129871.10000070&subid=0&type=4&gridnum=16\"></a>"

links[18]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=208563.9&subid=0&type=4\"><IMG border=\"0\"   alt=\"TidySongs - Automatically Fix Your Music\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=208563.9&subid=0&type=4&gridnum=16\"></a>"

links[19]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=208563.9&subid=0&type=4\"><IMG border=\"0\"   alt=\"TidySongs - Automatically Fix Your Music\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=208563.9&subid=0&type=4&gridnum=16\"></a>"

links[20]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=208563.9&subid=0&type=4\"><IMG border=\"0\"   alt=\"TidySongs - Automatically Fix Your Music\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=208563.9&subid=0&type=4&gridnum=16\"></a>"

links[21]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=124192.10000485&type=4&subid=0\"><IMG alt=\"Wolfgang's Vault - Santana Downloads\" border=\"0\" src=\"http://www.wolfgangsvault.com/content/images/affiliates/santana-728x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=124192.10000485&type=4&subid=0\">"

links[22]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=124192.10000061&type=4&subid=0\"><IMG alt=\"Wolfgang's Vault\" border=\"0\" src=\"http://www.wolfgangsvault.com/content/images/affiliates/general/general-728x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=124192.10000061&type=4&subid=0\">"

links[23]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=124192.10000088&type=4&subid=0\"><IMG alt=\"Wolfgang's Vault -  Exclusive rock and roll posters\" border=\"0\" src=\"http://www.wolfgangsvault.com/content/images/affiliates/posters/728x90-choose.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=124192.10000088&type=4&subid=0\">"

links[24]="<a target='new' href=\"http://linksynergy.walmart.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=183959.10002336&subid=0&type=4\"><IMG border=\"0\"   alt=\"Wal-Mart.com USA, LLC\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=183959.10002336&subid=0&type=4&gridnum=16\"></a>"

links[25]="<script type=\"text/javascript\"><!-- google_ad_client = \"ca-pub-4076360031556999\"; /* FM102x728 */ google_ad_slot = \"8568929943\"; google_ad_width = 728; google_ad_height = 90;//--></script><script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script>"

links[26]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=170943.10000245&type=4&subid=0\"><IMG alt=\"Camping World\" border=\"0\" src=\"http://www.campingworld.com/AffiliateAds/728x90/promo1.gif\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=170943.10000245&type=4&subid=0\">"

links[27]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=86611.10000096&subid=0&type=4\"><IMG border=\"0\"   alt=\"Mrs. Fields Gifts, Inc\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=86611.10000096&subid=0&type=4&gridnum=16\"></a>"

links[28]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=132481.10000007&type=4&subid=0\"><IMG alt=\"f.y.e.com free shipping Over $30 120x90\" border=\"0\" src=\"http://www.fye.com/moduleimages/138/freeship_782x90.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=132481.10000007&type=4&subid=0\">"

links[29]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=215687.10000482&type=4&subid=0\"><IMG alt=\"drugstore.com\" border=\"0\" src=\"http://a248.e.akamai.net/f/248/580/1d/pics.drugstore.com/prodimg/promo/assoclinks/728x90_back_to_basics.gif\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=215687.10000482&type=4&subid=0\">"

links[30]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=48797.10000142&type=4&subid=0\"><IMG alt=\"David's Cookies - Can one desire too much of a good thing?\" border=\"0\" src=\"http://www.bannerservlet.com/banners/set003/728x90_001.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=48797.10000142&type=4&subid=0\">"




document.write(links[myrandom])
}

function mcspr() {

var myrandoms=Math.round(Math.random()*1)
var linkss=new Array()

linkss[0]="<a href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=146261.10005884&type=4&subid=0\"><IMG alt=\"\" border=\"0\" src=\"http://images.apple.com/itunesaffiliates/US/generic/TopSongsBlue_120x60.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=146261.10005884&type=4&subid=0\">"

linkss[1]="<a target='new' href=\"http://linksynergy.walmart.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=183959.10001844&type=4&subid=0\"><IMG alt=\"Wal-Mart.com USA, LLC\" border=\"0\" src=\"http://i.walmart.com/i/email/nl/100808/120X60_electronics.gif\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=183959.10001844&type=4&subid=0\">"


document.write(linkss[myrandoms])


}

function fmcspr() {

var myrandomss=Math.round(Math.random()*1)
var linksss=new Array()

linksss[0]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=132481.10000016&type=4&subid=0\"><IMG alt=\"f.y.e.com f.y.e 468x60\" border=\"0\" src=\"http://www.fye.com/onlinemarketing/fye/banners/fye_yourA_468x60.gif\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=132481.10000016&type=4&subid=0\">"

linksss[1]="<a target='new' href=\"http://click.linksynergy.com/fs-bin/click?id=7Iy*FvOZ6Sw&offerid=146261.10005877&type=4&subid=0\"><IMG alt=\"\" border=\"0\" src=\"http://images.apple.com/itunesaffiliates/US/generic/TopPodcastsBlue_468x60.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=7Iy*FvOZ6Sw&bids=146261.10005877&type=4&subid=0\">"


document.write(linksss[myrandomss])


}








function ddtabcontent(tabinterfaceid){
	this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container
	this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container
	this.enabletabpersistence=true
	this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container
	this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array
	this.subcontentids=[] //Array to store ids of the sub contents ("rel" attr values)
	this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)
	this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")
}

ddtabcontent.getCookie=function(Name){ 
	var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
	if (document.cookie.match(re)) //if cookie found
		return document.cookie.match(re)[0].split("=")[1] //return its value
	return ""
}

ddtabcontent.setCookie=function(name, value){
	document.cookie = name+"="+value+";path=/" //cookie value is domain wide (path=/)
}

ddtabcontent.prototype={

	expandit:function(tabid_or_position){ //PUBLIC function to select a tab either by its ID or position(int) within its peers
		this.cancelautorun() //stop auto cycling of tabs (if running)
		var tabref=""
		try{
			if (typeof tabid_or_position=="string" && document.getElementById(tabid_or_position).getAttribute("rel")) //if specified tab contains "rel" attr
				tabref=document.getElementById(tabid_or_position)
			else if (parseInt(tabid_or_position)!=NaN && this.tabs[tabid_or_position].getAttribute("rel")) //if specified tab contains "rel" attr
				tabref=this.tabs[tabid_or_position]
		}
		catch(err){alert("Invalid Tab ID or position entered!")}
		if (tabref!="") //if a valid tab is found based on function parameter
			this.expandtab(tabref) //expand this tab
	},

	cycleit:function(dir, autorun){ //PUBLIC function to move foward or backwards through each hot tab (tabinstance.cycleit('foward/back') )
		if (dir=="next"){
			var currentTabIndex=(this.currentTabIndex<this.hottabspositions.length-1)? this.currentTabIndex+1 : 0
		}
		else if (dir=="prev"){
			var currentTabIndex=(this.currentTabIndex>0)? this.currentTabIndex-1 : this.hottabspositions.length-1
		}
		if (typeof autorun=="undefined") //if cycleit() is being called by user, versus autorun() function
			this.cancelautorun() //stop auto cycling of tabs (if running)
		this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])
	},

	setpersist:function(bool){ //PUBLIC function to toggle persistence feature
			this.enabletabpersistence=bool
	},

	setselectedClassTarget:function(objstr){ //PUBLIC function to set which target element to assign "selected" CSS class ("linkparent" or "link")
		this.selectedClassTarget=objstr || "link"
	},

	getselectedClassTarget:function(tabref){ //Returns target element to assign "selected" CSS class to
		return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref
	},

	urlparamselect:function(tabinterfaceid){
		var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)", "i")) //check for "?tabinterfaceid=2" in URL
		return (result==null)? null : parseInt(RegExp.$1) //returns null or index, where index (int) is the selected tab's index
	},

	expandtab:function(tabref){
		var subcontentid=tabref.getAttribute("rel") //Get id of subcontent to expand
		//Get "rev" attr as a string of IDs in the format ",john,george,trey,etc," to easily search through
		var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : ""
		this.expandsubcontent(subcontentid)
		this.expandrevcontent(associatedrevids)
		for (var i=0; i<this.tabs.length; i++){ //Loop through all tabs, and assign only the selected tab the CSS class "selected"
			this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("rel")==subcontentid)? "selected" : ""
		}
		if (this.enabletabpersistence) //if persistence enabled, save selected tab position(int) relative to its peers
			ddtabcontent.setCookie(this.tabinterfaceid, tabref.tabposition)
		this.setcurrenttabindex(tabref.tabposition) //remember position of selected tab within hottabspositions[] array
	},

	expandsubcontent:function(subcontentid){
		for (var i=0; i<this.subcontentids.length; i++){
			var subcontent=document.getElementById(this.subcontentids[i]) //cache current subcontent obj (in for loop)
			subcontent.style.display=(subcontent.id==subcontentid)? "block" : "none" //"show" or hide sub content based on matching id attr value
		}
	},

	expandrevcontent:function(associatedrevids){
		var allrevids=this.revcontentids
		for (var i=0; i<allrevids.length; i++){ //Loop through rev attributes for all tabs in this tab interface
			//if any values stored within associatedrevids matches one within allrevids, expand that DIV, otherwise, contract it
			document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)? "block" : "none"
		}
	},

	setcurrenttabindex:function(tabposition){ //store current position of tab (within hottabspositions[] array)
		for (var i=0; i<this.hottabspositions.length; i++){
			if (tabposition==this.hottabspositions[i]){
				this.currentTabIndex=i
				break
			}
		}
	},

	autorun:function(){ //function to auto cycle through and select tabs based on a set interval
		this.cycleit('next', true)
	},

	cancelautorun:function(){
		if (typeof this.autoruntimer!="undefined")
			clearInterval(this.autoruntimer)
	},

	init:function(automodeperiod){
		var persistedtab=ddtabcontent.getCookie(this.tabinterfaceid) //get position of persisted tab (applicable if persistence is enabled)
		var selectedtab=-1 //Currently selected tab index (-1 meaning none)
		var selectedtabfromurl=this.urlparamselect(this.tabinterfaceid) //returns null or index from: tabcontent.htm?tabinterfaceid=index
		this.automodeperiod=automodeperiod || 0
		for (var i=0; i<this.tabs.length; i++){
			this.tabs[i].tabposition=i //remember position of tab relative to its peers
			if (this.tabs[i].getAttribute("rel")){
				var tabinstance=this
				this.hottabspositions[this.hottabspositions.length]=i //store position of "hot" tab ("rel" attr defined) relative to its peers
				this.subcontentids[this.subcontentids.length]=this.tabs[i].getAttribute("rel") //store id of sub content ("rel" attr value)
				this.tabs[i].onclick=function(){
					tabinstance.expandtab(this)
					tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
					return false
				}
				if (this.tabs[i].getAttribute("rev")){ //if "rev" attr defined, store each value within "rev" as an array element
					this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))
				}
				if (selectedtabfromurl==i || this.enabletabpersistence && selectedtab==-1 && parseInt(persistedtab)==i || !this.enabletabpersistence && selectedtab==-1 && this.getselectedClassTarget(this.tabs[i]).className=="selected"){
					selectedtab=i //Selected tab index, if found
				}
			}
		} //END for loop
		if (selectedtab!=-1) //if a valid default selected tab index is found
			this.expandtab(this.tabs[selectedtab]) //expand selected tab (either from URL parameter, persistent feature, or class="selected" class)
		else //if no valid default selected index found
			this.expandtab(this.tabs[this.hottabspositions[0]]) //Just select first tab that contains a "rel" attr
		if (parseInt(this.automodeperiod)>500 && this.hottabspositions.length>1){
			this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod)
		}
	} //END int() function

} //END Prototype assignment
