function get_firstchild(n) {var x=n.firstChild;while (x.nodeType!=1){x=x.nextSibling;}return x;} function SetCodeToStyleSheet(NewCode) { var ss = document.createElement("style"); ss.setAttribute('type', 'text/css'); if(ss.styleSheet){ ss.styleSheet.cssText = NewCode; } else { var cssText = document.createTextNode(NewCode); ss.appendChild(cssText); } var headRef = document.getElementsByTagName('head')[0]; if (headRef) {headRef.replaceChild(ss, get_firstchild(headRef));} else {alert('no header?');} } function GetBasicInfoCode() { var NewCode = ""; if (document.biStyle.piSection[0].checked) {NewCode = NewCode + "div.basicInfoModule {display:none;}\r";} else { // default picture if (document.biStyle.piSection[1].checked) {NewCode = NewCode + "div.basicInfoModule div.photo {display:none;}\rdiv.basicInfoModule div.basicInfoDetails {padding-left:0px;}\r";} // nick name if (document.biStyle.piSection[2].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails h2.nickname {visibility:hidden;}\r";} // real name if (document.biStyle.piSection[3].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails h1.profileFullName {display:none;}\r";} // status text if (document.biStyle.piSection[4].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails blockquote span.status {display:none;}\r";} // mood title if (document.biStyle.piSection[5].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails blockquote span.mood strong {display:none;}\r";} // mood text if (document.biStyle.piSection[6].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails blockquote span.mood {visibility:hidden;}\rdiv.basicInfoModule div.basicInfoDetails blockquote span.mood strong, div.basicInfoModule div.basicInfoDetails blockquote span.mood img {visibility:visible;}\r";} // mood icon if (document.biStyle.piSection[7].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails blockquote span.mood img {display:none;}\r";} // status changed date if (document.biStyle.piSection[8].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails blockquote span.date {display:none;}\r";} // view more status link if (document.biStyle.piSection[9].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails blockquote span.view {display:none;}\r";} // view my text if (document.biStyle.piSection[10].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails div.pageLinks em {display:none;}\r";} // view my photos videos blog playlist links if (document.biStyle.piSection[11].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails div.pageLinks ul a {display:none;}\r";} // separate mood and status if (document.biStyle.piSection[12].checked && !document.biStyle.piSection[4].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails blockquote span.status {display:block;}\r";} // myspace URL if (document.biStyle.piSection[13].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails span.urlLink a {display:none;}\r";} // send message link if (document.biStyle.piSection[14].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails ul.contactLinks li.message {display:none;}\r";} // add to friends link if (document.biStyle.piSection[15].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails ul.contactLinks li.addToFriends {display:none;}\r";} // add comment link if (document.biStyle.piSection[16].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails ul.contactLinks li.comment {display:none;}\r";} // add comment link if (document.biStyle.piSection[17].checked) {NewCode = NewCode + "div.basicInfoModule div.basicInfoDetails ul.contactLinks li.sendGift {display:none;}\r";} // profile demographics test if (document.biStyle.piSection[19].checked && document.biStyle.piSection[20].checked && document.biStyle.piSection[21].checked && document.biStyle.piSection[22].checked && document.biStyle.piSection[23].checked && document.biStyle.piSection[24].checked && document.biStyle.piSection[25].checked && document.biStyle.piSection[26].checked && document.biStyle.piSection[27].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics {display:none;}\rdiv.basicInfoModule div.basicInfoDetails {min-height:0px;}\r";} else { // hide commas and slashes if (document.biStyle.piSection[18].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics ul.profileUserInfo li.tags, div.basicInfoModule div.profileDemographics ul.profileUserInfo li#adr {visibility:hidden;}\rdiv.basicInfoModule div.profileDemographics ul.profileUserInfo li.tags span, div.basicInfoModule div.profileDemographics ul.profileUserInfo li#adr span {visibility:visible;}\r";} // age if (document.biStyle.piSection[19].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics span.age {display:none;}\r";} // gender if (document.biStyle.piSection[20].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics span.gender {display:none;}\r";} // city if (document.biStyle.piSection[21].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics span.locality {display:none;}\r";} // state if (document.biStyle.piSection[22].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics span.region {display:none;}\r";} // country if (document.biStyle.piSection[23].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics span.country-name {display:none;}\r";} // last login if (document.biStyle.piSection[24].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics li.lastlogin {display:none;}\r";} // online now icon if (document.biStyle.piSection[25].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics ul.profileUserInfo li span.msOnlineNow img {display:none;}\r";} // online now text if (document.biStyle.piSection[26].checked) { NewCode = NewCode + "div.basicInfoModule div.profileDemographics ul.profileUserInfo li span.msOnlineNow {visibility:hidden;}\r"; if (!document.biStyle.piSection[25].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics ul.profileUserInfo li span.msOnlineNow img {visibility:visible;}\r";} } // top 3 pictures if (document.biStyle.piSection[27].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics ul.profileUserAlbum {visibility:hidden;}\r";} // blue background if (document.biStyle.piSection[28].checked) {NewCode = NewCode + "div.basicInfoModule div.profileDemographics {background-color:transparent;}\r";} // rounded border if (document.biStyle.piSection[29].checked) {NewCode = NewCode + "div.basicInfoModule div.moduleTop, div.basicInfoModule div.moduleBottom {display:none;}\rdiv.basicInfoModule div.moduleMid, div.basicInfoModule div.moduleMid1 {border:0px;}\r";} // links look like buttons if (document.biStyle.piSection[30].checked && !document.biStyle.piSection[11].checked) {NewCode = NewCode + "div.basicInfoModule div.pageLinks ul li a {background-color:#e0eafd; padding:3px 10px; float:left; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666;}\r";} // hover links background color if (document.biStyle.piSection[31].checked && !document.biStyle.piSection[11].checked) {NewCode = NewCode + "div.basicInfoModule div.pageLinks ul li a:hover {background-color:#4184d5; color:#ffffff;}\r";} } } return NewCode; } function SetBasicInfoCode(sHeader) { var NewCode = GetBasicInfoCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetInterestsCode() { var NewCode = ""; if (document.iStyle.iSection[0].checked) //entire module {NewCode = NewCode + "div.interestsModule {display:none;}\r";} else { if (document.iStyle.iSection[2].checked) // hide header { NewCode = NewCode + "div.interestsModule h3.moduleHead {display:none;}\r"; if (!document.iStyle.iSection[4].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody {margin-top:-3px;}\r";} } else { // hide header text if (document.iStyle.iSection[1].checked) {NewCode = NewCode + "div.interestsModule h3.moduleHead span span {display:none;}\rdiv.interestsModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.iStyle.iSection[3].checked) {NewCode = NewCode + "div.interestsModule h3.moduleHead {text-align:center;}\r";} } } // remove spacing if (document.iStyle.iSection[4].checked) {NewCode = NewCode + "div.interestsModule ul.moduleList li {margin:0px;}\r";} // compress module if (document.iStyle.iSection[5].checked) {NewCode = NewCode + "div.interestsModule ul.moduleList li {padding:0px;}\rdiv.interestsModule ul.moduleList li h4 {margin:0px;}\r";} // headers on left if (document.iStyle.iSection[6].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li h4 {width:15%; float:left;}\rdiv.interestsModule div.moduleBody ul.moduleList li div.autoResize {width:85%;}\r";} // rounded border if (document.iStyle.iSection[7].checked) {NewCode = NewCode + "div.interestsModule div.moduleTop, div.interestsModule div.moduleBottom {display:none;}\rdiv.interestsModule div.moduleMid, div.interestsModule div.moduleMid1 {border:0px;}\r";} // blue background color if (document.iStyle.iSection[8].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li {background-color:transparent;}\r";} // hide general title if (document.iStyle.iSection[9].checked) { NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestGeneral h4 {display:none;}\r"; if (document.iStyle.iSection[6].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestGeneral div.autoResize {width:100%;}\r";} } // hide music title if (document.iStyle.iSection[10].checked) { NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestMusic h4 {display:none;}\r"; if (document.iStyle.iSection[6].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestMusic div.autoResize {width:100%;}\r";} } // hide movies title if (document.iStyle.iSection[11].checked) { NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestMovies h4 {display:none;}\r"; if (document.iStyle.iSection[6].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestMovies div.autoResize {width:100%;}\r";} } // hide television title if (document.iStyle.iSection[12].checked) { NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestTelevision h4 {display:none;}\r"; if (document.iStyle.iSection[6].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestTelevision div.autoResize {width:100%;}\r";} } // hide books title if (document.iStyle.iSection[13].checked) { NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestBooks h4 {display:none;}\r"; if (document.iStyle.iSection[6].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestBooks div.autoResize {width:100%;}\r";} } // hide heroes title if (document.iStyle.iSection[14].checked) { NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestHeroes h4 {display:none;}\r"; if (document.iStyle.iSection[6].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestHeroes div.autoResize {width:100%;}\r";} } // scroll general section if (document.iStyle.iSection[15].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestGeneral {overflow:auto; height:50px;}\r";} // scroll music section if (document.iStyle.iSection[16].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestMusic {overflow:auto; height:50px;}\r";} // scroll movies section if (document.iStyle.iSection[17].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestMovies {overflow:auto; height:50px;}\r";} // scroll television section if (document.iStyle.iSection[18].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestTelevision {overflow:auto; height:50px;}\r";} // scroll books section if (document.iStyle.iSection[19].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestBooks {overflow:auto; height:50px;}\r";} // scroll heroes section if (document.iStyle.iSection[20].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody ul.moduleList li.interestHeroes {overflow:auto; height:50px;}\r";} // scroll interests module if (document.iStyle.iSection[21].checked) {NewCode = NewCode + "div.interestsModule div.moduleBody {overflow:auto; height:150px;}\r";} if (!document.iStyle.iSection[1].checked && document.getElementById('itbc').value.length>0) {NewCode = NewCode + "table.interestsAndDetails td.text {background-color:" + document.getElementById('itbc').value + ";}\r";} if (!document.iStyle.iSection[1].checked && document.getElementById('itc').value.length>0) {NewCode = NewCode + "table.interestsAndDetails span.whitetext12 {color:" + document.getElementById('itc').value + ";}\r";} if (document.getElementById('ibi').value.length>0) {NewCode = NewCode + "table.interestsAndDetails table {background-image:url(" + document.getElementById('ibi').value + ");}\r"; if (document.getElementById('iibc').value.length == 0) {document.getElementById('iibc').value = 'transparent';} if (document.getElementById('isbc').value.length == 0) {document.getElementById('isbc').value = 'transparent';} } if (document.getElementById('itbi').value.length>0) {NewCode = NewCode + "table.interestsAndDetails td.text {background-image:url(" + document.getElementById('itbi').value + ");}\r";} if (document.getElementById('isbc').value.length>0) {NewCode = NewCode + "table.interestsAndDetails table {background-color:" + document.getElementById('isbc').value + ";}\r";} if (document.getElementById('iibc').value.length>0) {NewCode = NewCode + "table.interestsAndDetails td td {background-color:" + document.getElementById('iibc').value + ";}\r";} if (document.getElementById('stc').value.length>0) {NewCode = NewCode + "table.interestsAndDetails td td, table.interestsAndDetails td td a {color:" + document.getElementById('stc').value + ";}\r";} } return NewCode; } function SetInterestsCode(sHeader) { var NewCode = GetInterestsCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetDetailsCode() { var NewCode = ""; if (document.dStyle.dSection[0].checked) {NewCode = NewCode + "div.detailsModule {display:none;}\r";} else { if (document.dStyle.dSection[2].checked) // hide header { NewCode = NewCode + "div.detailsModule h3.moduleHead {display:none;}\r"; if (!document.dStyle.dSection[4].checked) {NewCode = NewCode + "div.detailsModule div.moduleBody {margin-top:-3px;}\r";} } else { // hide header text if (document.dStyle.dSection[1].checked) {NewCode = NewCode + "div.detailsModule h3.moduleHead span span {display:none;}\rdiv.detailsModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.dStyle.dSection[3].checked) {NewCode = NewCode + "div.detailsModule h3.moduleHead {text-align:center;}\r";} } } // remove spacing if (document.dStyle.dSection[4].checked) {NewCode = NewCode + "div.detailsModule ul.moduleList li {margin:0px;}\r";} // compress module if (document.dStyle.dSection[5].checked) {NewCode = NewCode + "div.detailsModule ul.moduleList li {padding:0px;}\rdiv.detailsModule ul.moduleList li h4 {margin:0px;}\r";} // rounded border if (document.dStyle.dSection[6].checked) {NewCode = NewCode + "div.detailsModule div.moduleTop, div.detailsModule div.moduleBottom {display:none;}\rdiv.detailsModule div.moduleMid, div.detailsModule div.moduleMid1 {border:0px;}\r";} // blue background color if (document.dStyle.dSection[7].checked) {NewCode = NewCode + "div.detailsModule div.moduleBody ul.moduleList li {background-color:transparent;}\r";} // hide left titles if (document.dStyle.dSection[8].checked) {NewCode = NewCode + "div.detailsModule div.moduleBody ul.moduleList li strong {display:none;}\r";} if (document.getElementById('dbi').value.length>0) {NewCode = NewCode + "table.userProfileDetail table {background-image:url(" + document.getElementById('dbi').value + ");}\r"; if (document.getElementById('dibc').value.length == 0) {document.getElementById('dibc').value = 'transparent';} if (document.getElementById('dsbc').value.length == 0) {document.getElementById('dsbc').value = 'transparent';} } if (document.getElementById('dtbi').value.length>0) {NewCode = NewCode + "table.userProfileDetail td.text {background-image:url(" + document.getElementById('dtbi').value + ");}\r";} if (document.getElementById('dsbc').value.length>0) {NewCode = NewCode + "table.userProfileDetail table {background-color:" + document.getElementById('dsbc').value + ";}\r";} if (document.getElementById('dsc').value.length>0) {NewCode = NewCode + "table.userProfileDetail td td, table.userProfileDetail td td a {color:" + document.getElementById('dsc').value + ";}\r";} if (document.getElementById('dibc').value.length>0) {NewCode = NewCode + "table.userProfileDetail td td {background-color:" + document.getElementById('dibc').value + ";}\r";} if (document.getElementById('dtc').value.length>0) {NewCode = NewCode + "table.userProfileDetail span.whitetext12 {color:" + document.getElementById('dtc').value + ";}\r";} } return NewCode; } function SetDetailsCode(sHeader) { var NewCode = GetDetailsCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetStatusMoodCode() { var NewCode = ""; if (document.smStyle.smSection[0].checked) {NewCode = NewCode + "div.statusMoodModule {display:none;}\r";} else { if (document.smStyle.smSection[2].checked) // hide header {NewCode = NewCode + "div.statusMoodModule h3.moduleHead {display:none;}\r";} else { // hide header text if (document.smStyle.smSection[1].checked) {NewCode = NewCode + "div.statusMoodModule h3.moduleHead span span {display:none;}\rdiv.statusMoodModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.smStyle.smSection[3].checked) {NewCode = NewCode + "div.statusMoodModule h3.moduleHead {text-align:center;}\r";} } } // user status if (document.smStyle.smSection[5].checked && !document.smStyle.smSection[4].checked) {NewCode = NewCode + "div.statusMoodModule h5.activityHeader {visibility:hidden;}\rdiv.statusMoodModule h5.activityHeader a {visibility:visible;}\r";} if (document.smStyle.smSection[5].checked && document.smStyle.smSection[4].checked) {NewCode = NewCode + "div.statusMoodModule h5.activityHeader {display:none;}\r";} // profile link if (document.smStyle.smSection[4].checked && !document.smStyle.smSection[5].checked) {NewCode = NewCode + "div.statusMoodModule h5.activityHeader a {display:none;}\r";} if (document.smStyle.smSection[6].checked && document.smStyle.smSection[7].checked && document.smStyle.smSection[8].checked) {NewCode = NewCode + "div.statusMoodModule ul.statusMood {display:none;}\r";} else { // hide mood title if (document.smStyle.smSection[6].checked) {NewCode = NewCode + "div.statusMoodModule ul.statusMood li h5.activityFooter span {display:none;}\r";} // hide mood itself if (document.smStyle.smSection[7].checked && document.smStyle.smSection[8].checked) {NewCode = NewCode + "div.statusMoodModule ul.statusMood li h5.activityFooter {display:none;}\r";} if (document.smStyle.smSection[7].checked && !document.smStyle.smSection[8].checked) {NewCode = NewCode + "div.statusMoodModule ul.statusMood li h5.activityFooter {visibility:hidden;}\rdiv.statusMoodModule ul.statusMood li h5.activityFooter img.moodPicture,div.statusMoodModule ul.statusMood li h5.activityFooter span.moodLabel {visibility:visible;}\rdiv.statusMoodModule ul.statusMood li h5.activityFooter img.moodPicture {margin-left:-80px;}\r";} // hide mood icon if (document.smStyle.smSection[8].checked) {NewCode = NewCode + "div.statusMoodModule ul.statusMood li h5.activityFooter img.moodPicture {display:none;}\r";} } // hide mood date time if (document.smStyle.smSection[9].checked) {NewCode = NewCode + "div.statusMoodModule ul.statusMood li span.date {display:none;}\r";} // hide bottom view more link if (document.smStyle.smSection[10].checked) {NewCode = NewCode + "div.statusMoodModule div.toolbar {display:none;}\r";} // rounded border if (document.smStyle.smSection[11].checked) {NewCode = NewCode + "div.statusMoodModule div.moduleTop, div.statusMoodModule div.moduleBottom {display:none;}\rdiv.statusMoodModule div.moduleMid, div.statusMoodModule div.moduleMid1 {border:0px;}\r";} // compress module if (document.smStyle.smSection[12].checked) {NewCode = NewCode + "div.statusMoodModule div.moduleBody ul.statusMood li {margin:0px;}\rdiv.statusMoodModule div.moduleBody div.toolbar ul.links {padding:0px;}\r";} // blue background color if (document.smStyle.smSection[13].checked) {NewCode = NewCode + "div.statusMoodModule div.moduleBody ul.statusMood li {background-color:transparent;}\r";} // links look like buttons if (document.smStyle.smSection[14].checked && (!document.smStyle.smSection[4].checked || !document.smStyle.smSection[10].checked)) {NewCode = NewCode + "div.statusMoodModule div.moduleBody ul.statusMood li h5.activityHeader a {background-color:#e0eafd; padding:8px 12px; float:left; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; margin-right:15px; _display:block;}\rdiv.statusMoodModule div.moduleBody div.toolbar ul.links li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; _display:block;}\r";} // hover links background color if (document.smStyle.smSection[15].checked && (!document.smStyle.smSection[4].checked || !document.smStyle.smSection[10].checked)) {NewCode = NewCode + "div.statusMoodModule div.moduleBody ul.statusMood li h5.activityHeader a:hover, div.statusMoodModule div.moduleBody div.toolbar ul.links li a:hover {background-color:#4184d5; color:#ffffff;}\r";} } return NewCode; } function SetStatusMoodCode(sHeader) { var NewCode = GetStatusMoodCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetSchoolsCode() { var NewCode = ""; if (document.sStyle.sSection[0].checked) {NewCode = NewCode + "div.schoolsModule {display:none;}\r";} else { if (document.sStyle.sSection[2].checked) // hide header { NewCode = NewCode + "div.schoolsModule h3.moduleHead {display:none;}\r"; if (!document.sStyle.sSection[4].checked) {NewCode = NewCode + "div.schoolsModule div.moduleBody {margin-top:-3px;}\r";} } else { // hide header text if (document.sStyle.sSection[1].checked) {NewCode = NewCode + "div.schoolsModule h3.moduleHead span span {display:none;}\rdiv.schoolsModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.sStyle.sSection[3].checked) {NewCode = NewCode + "div.schoolsModule h3.moduleHead {text-align:center;}\r";} } } // remove spacing if (document.sStyle.sSection[4].checked) {NewCode = NewCode + "div.schoolsModule ul.moduleList li {margin:0px;}\r";} // compress module if (document.sStyle.sSection[5].checked) {NewCode = NewCode + "div.schoolsModule ul.moduleList li {line-height:10px;}\r";} // rounded border if (document.sStyle.sSection[6].checked) {NewCode = NewCode + "div.schoolsModule div.moduleTop, div.schoolsModule div.moduleBottom {display:none;}\rdiv.schoolsModule div.moduleMid, div.schoolsModule div.moduleMid1 {border:0px;}\r";} // blue background color if (document.sStyle.sSection[7].checked) {NewCode = NewCode + "div.schoolsModule div.moduleBody ul.moduleList li {background-color:transparent;}\r";} // hide schools name if (document.sStyle.sSection[8].checked) {NewCode = NewCode + "div.schoolsModule div.moduleBody ul.moduleList li.moduleItem div.schoolInfo h4 {display:none;}\r";} // hide year and greek if (document.sStyle.sSection[9].checked) {NewCode = NewCode + "div.schoolsModule div.moduleBody ul.moduleList li span a {display:none;}\r";} // links look like buttons if (document.sStyle.sSection[10].checked && !document.sStyle.sSection[9].checked) {NewCode = NewCode + "div.schoolsModule div.moduleBody ul.moduleList li ul li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; margin-top:4px; float:none;}\r";} // hover links background color if (document.sStyle.sSection[11].checked && !document.sStyle.sSection[9].checked) {NewCode = NewCode + "div.schoolsModule div.moduleBody ul.moduleList li ul li a:hover {background-color:#4184d5; color:#ffffff;}\r";} if (document.getElementById('sbi').value.length>0) {NewCode = NewCode + "table.userProfileSchool table {background-image:url(" + document.getElementById('sbi').value + ");}\r"; if (document.getElementById('sibc').value.length == 0) {document.getElementById('sibc').value = 'transparent';} if (document.getElementById('ssbc').value.length == 0) {document.getElementById('ssbc').value = 'transparent';} } if (document.getElementById('stbi').value.length>0) {NewCode = NewCode + "table.userProfileSchool td.text {background-image:url(" + document.getElementById('stbi').value + ");}\r";} if (document.getElementById('stbc').value.length>0) {NewCode = NewCode + "table.userProfileSchool td.text {background-color:" + document.getElementById('stbc').value + ";}\r";} if (document.getElementById('ssbc').value.length>0) {NewCode = NewCode + "table.userProfileSchool table {background-color:" + document.getElementById('ssbc').value + ";}\r";} if (document.getElementById('sibc').value.length>0) {NewCode = NewCode + "table.userProfileSchool td td {background-color:" + document.getElementById('sibc').value + ";}\r";} if (document.getElementById('sstc').value.length>0) {NewCode = NewCode + "table.userProfileSchool span.whitetext12 {color:" + document.getElementById('sstc').value + ";}\r";} if (document.getElementById('ssc').value.length>0) {NewCode = NewCode + "table.userProfileSchool td td, table.userProfileSchool td td a {color:" + document.getElementById('ssc').value + ";}\r";} } return NewCode; } function SetSchoolsCode(sHeader) { var NewCode = GetSchoolsCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetMusicPlayerCode() { var NewCode = ""; if (document.mpStyle.mpSection[0].checked) {NewCode = NewCode + "div.musicPlayerModule {display:none;}\r";} else { // hide player letting it play if (document.mpStyle.mpSection[1].checked) {NewCode = NewCode + "div.musicPlayerModule div.moduleBody {width:1px; height:1px;}\rdiv.musicPlayerModule object {filter:alpha(opacity=0.1); -moz-opacity:0.1; opacity:0.1; -khtml-opacity:0.1; height:1px; width:1px;}\r";} // center player in module if (document.mpStyle.mpSection[2].checked) {NewCode = NewCode + "div.musicPlayerModule div.moduleBody div {text-align:center;}\r";} // scroll module if (document.mpStyle.mpSection[3].checked) {NewCode = NewCode + "div.musicPlayerModule {height:200px; overflow:auto;}\r";} // transparent module if (document.mpStyle.mpSection[4].checked) {NewCode = NewCode + "div.musicPlayerModule {background-color:transparent;}\r";} } return NewCode; } function SetMusicPlayerCode(sHeader) { var NewCode = GetMusicPlayerCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetCompanyCode() { var NewCode = ""; if (document.cStyle.cSection[0].checked) {NewCode = NewCode + "div.companiesModule {display:none;}\r";} else { if (document.cStyle.cSection[2].checked) // hide header { NewCode = NewCode + "div.companiesModule h3.moduleHead {display:none;}\r"; if (!document.cStyle.cSection[4].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody {margin-top:-3px;}\r";} } else { // hide header text if (document.cStyle.cSection[1].checked) {NewCode = NewCode + "div.companiesModule h3.moduleHead span span {display:none;}\rdiv.companiesModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.cStyle.cSection[3].checked) {NewCode = NewCode + "div.companiesModule h3.moduleHead {text-align:center;}\r";} } } // remove spacing if (document.cStyle.cSection[4].checked) {NewCode = NewCode + "div.companiesModule ul.moduleList li {margin:0px;}\r";} // compress module if (document.cStyle.cSection[5].checked) {NewCode = NewCode + "div.companiesModule ul.moduleList li {padding:0px;}\rdiv.companiesModule ul.moduleList li h4 {margin:0px;}\rdiv.companiesModule ul.moduleList li * {float:left;}\rdiv.companiesModule ul.moduleList li h4 {margin-right:20px; margin-top:1px;}\rdiv.companiesModule ul.moduleList li a {margin-left:20px;}\r"; if (!document.cStyle.cSection[7].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody {background-color:#d5e7fb;}\r";} } // rounded border if (document.cStyle.cSection[6].checked) {NewCode = NewCode + "div.companiesModule div.moduleTop, div.companiesModule div.moduleBottom {display:none;}\rdiv.companiesModule div.moduleMid, div.companiesModule div.moduleMid1 {border:0px;}\r";} // blue background color if (document.cStyle.cSection[7].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody ul.moduleList li {background-color:transparent;}\r";} // hide company name if (document.cStyle.cSection[8].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody ul.moduleList li div.companyInfo h4 {display:none;}\r";} // hide company years if (document.cStyle.cSection[9].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody ul.moduleList li div.companyYears {display:none;}\r";} // hide company location if (document.cStyle.cSection[10].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody ul.moduleList li {visibility:hidden; line-height:0px;}\rdiv.companiesModule div.moduleBody ul.moduleList li div, div.companiesModule div.moduleBody ul.moduleList li a {visibility:visible; line-height:11px;}\r";} // hide job description link if (document.cStyle.cSection[11].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody ul.moduleList li a {display:none;}\r";} // links look like buttons if (document.cStyle.cSection[12].checked && !document.cStyle.cSection[11].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody ul.moduleList li div.companyInfo ul li a {background-color:#e0eafd; padding:3px 10px; float:left; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666;}\r";} // hover links background color if (document.cStyle.cSection[13].checked && !document.cStyle.cSection[11].checked) {NewCode = NewCode + "div.companiesModule div.moduleBody ul.moduleList li div.companyInfo ul li a:hover {background-color:#4184d5; color:#ffffff;}\r";} if (document.getElementById('cobi').value.length>0) {NewCode = NewCode + "table.userProfileCompany table {background-image:url(" + document.getElementById('cobi').value + ");}\r"; if (document.getElementById('coibc').value.length == 0) {document.getElementById('coibc').value = 'transparent';} if (document.getElementById('cosbc').value.length == 0) {document.getElementById('cosbc').value = 'transparent';} } if (document.getElementById('cotbi').value.length>0) {NewCode = NewCode + "table.userProfileCompany td.text {background-image:url(" + document.getElementById('cotbi').value + ");}\r";} if (document.getElementById('cotbc').value.length>0) {NewCode = NewCode + "table.userProfileCompany td.text {background-color:" + document.getElementById('cotbc').value + ";}\r";} if (document.getElementById('cosbc').value.length>0) {NewCode = NewCode + "table.userProfileCompany table {background-color:" + document.getElementById('cosbc').value + ";}\r";} if (document.getElementById('coibc').value.length>0) {NewCode = NewCode + "table.userProfileCompany td td {background-color:" + document.getElementById('coibc').value + ";}\r";} if (document.getElementById('cotc').value.length>0) {NewCode = NewCode + "table.userProfileCompany span.whitetext12 {color:" + document.getElementById('cotc').value + ";}\r";} if (document.getElementById('cosc').value.length>0) {NewCode = NewCode + "table.userProfileCompany span.text {color:" + document.getElementById('cosc').value + ";}\r";} } return NewCode; } function SetCompanyCode(sHeader) { var NewCode = GetCompanyCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetNetworkCode() { var NewCode = ""; if (document.nStyle.nSection[0].checked) {NewCode = NewCode + "div.networkingModule {display:none;}\r";} else { if (document.nStyle.nSection[2].checked) // hide header { NewCode = NewCode + "div.networkingModule h3.moduleHead {display:none;}\r"; if (!document.nStyle.nSection[4].checked) {NewCode = NewCode + "div.networkingModule div.moduleBody {margin-top:-3px;}\r";} } else { // hide header text if (document.nStyle.nSection[1].checked) {NewCode = NewCode + "div.networkingModule h3.moduleHead span span {display:none;}\rdiv.networkingModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.nStyle.nSection[3].checked) {NewCode = NewCode + "div.networkingModule h3.moduleHead {text-align:center;}\r";} } } // remove spacing if (document.nStyle.nSection[4].checked) {NewCode = NewCode + "div.networkingModule ul.moduleList li {margin:0px;}\r";} // compress module if (document.nStyle.nSection[5].checked) {NewCode = NewCode + "div.networkingModule ul.moduleList li {line-height:10px;}\r";} // rounded border if (document.nStyle.nSection[6].checked) {NewCode = NewCode + "div.networkingModule div.moduleTop, div.networkingModule div.moduleBottom {display:none;}\rdiv.networkingModule div.moduleMid, div.networkingModule div.moduleMid1 {border:0px;}\r";} // blue background color if (document.nStyle.nSection[7].checked) {NewCode = NewCode + "div.networkingModule div.moduleBody ul.moduleList li.moduleItem {background-color:transparent;}\r";} // hide networking links if (document.nStyle.nSection[8].checked) {NewCode = NewCode + "div.networkingModule div.moduleBody ul.moduleList li.moduleItem ul li {display:none;}\r";} // hide networking description if (document.nStyle.nSection[9].checked) {NewCode = NewCode + "div.networkingModule div.moduleBody ul.moduleList li.moduleItem p.autoResize {visibility:hidden; font-size:3px;}\r";} // links look like buttons if (document.nStyle.nSection[10].checked && !document.nStyle.nSection[8].checked) {NewCode = NewCode + "div.networkingModule div.moduleBody ul.moduleList li ul li a {background-color:#e0eafd; padding:3px 10px; float:left; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; margin-top:4px;}\r";} // hover links background color if (document.nStyle.nSection[11].checked && !document.nStyle.nSection[8].checked) {NewCode = NewCode + "div.networkingModule div.moduleBody ul.moduleList li ul li a:hover {background-color:#4184d5; color:#ffffff;}\r";} if (document.getElementById('nbi').value.length>0) {NewCode = NewCode + "table.userProfileNetworking table {background-image:url(" + document.getElementById('nbi').value + ");}\r"; if (document.getElementById('nibc').value.length == 0) {document.getElementById('nibc').value = 'transparent';} if (document.getElementById('nsbc').value.length == 0) {document.getElementById('nsbc').value = 'transparent';} } if (document.getElementById('ntbi').value.length>0) {NewCode = NewCode + "table.userProfileNetworking td.text {background-image:url(" + document.getElementById('ntbi').value + ");}\r";} if (document.getElementById('ntbc').value.length>0) {NewCode = NewCode + "table.userProfileNetworking td.text {background-color:" + document.getElementById('ntbc').value + ";}\r";} if (document.getElementById('nsbc').value.length>0) {NewCode = NewCode + "table.userProfileNetworking table {background-color:" + document.getElementById('nsbc').value + ";}\r";} if (document.getElementById('nibc').value.length>0) {NewCode = NewCode + "table.userProfileNetworking td td {background-color:" + document.getElementById('nibc').value + ";}\r";} if (document.getElementById('ntc').value.length>0) {NewCode = NewCode + "table.userProfileNetworking span.whitetext12 {color:" + document.getElementById('ntc').value + ";}\r";} if (document.getElementById('nsc').value.length>0) {NewCode = NewCode + "table.userProfileNetworking span.text, table.userProfileNetworking td.tdborder a {color:" + document.getElementById('nsc').value + ";}\r";} } return NewCode; } function SetNetworkCode(sHeader) { var NewCode = GetNetworkCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetBlogsCode() { var NewCode = ""; if (document.bStyle.bSection[0].checked) {NewCode = NewCode + "div.blogsModule {display:none;}\r";} else { if (document.bStyle.bSection[2].checked) // hide header { NewCode = NewCode + "div.blogsModule h3.moduleHead {display:none;}\r"; } else { // hide header text if (document.bStyle.bSection[1].checked) {NewCode = NewCode + "div.blogsModule h3.moduleHead span span {display:none;}\rdiv.blogsModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.bStyle.bSection[3].checked) {NewCode = NewCode + "div.blogsModule h3.moduleHead {text-align:center;}\r";} } // default background color header if (document.bStyle.bSection[4].checked) {NewCode = NewCode + "div.blogsModule h3.moduleHead {background-color:#4184d5;}\rdiv.blogsModule h3.moduleHead span span {color:#ffffff;}\r";} } // center toolbar links if (document.bStyle.bSection[5].checked) { NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar ul.Links {float:none; text-align:center;}\r"; if (document.bStyle.bSection[8].checked) { NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar ul.Links li {width:98%;}\r"; } else { NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar ul.Links li {width:48%;}\r"; } } // center blog date cell var sBlogDate = ""; if (document.bStyle.bSection[13].checked) {sBlogDate = "95%";} else {sBlogDate = "20%";} if (document.bStyle.bSection[6].checked && !document.bStyle.bSection[12].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody ul.moduleList li span.date {width:" + sBlogDate + "; text-align:center;}\r";} // center blog title cell var sBlogTitle = ""; if (document.bStyle.bSection[12].checked) {sBlogTitle = "95%";} else {sBlogTitle = "70%";} if (document.bStyle.bSection[7].checked && !document.bStyle.bSection[13].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody ul.moduleList li span.title {width:" + sBlogTitle + "; text-align:center;}\r";} if (document.bStyle.bSection[8].checked && document.bStyle.bSection[9].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar {display:none;}\r";} else { // hide subscribe link if (document.bStyle.bSection[8].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar ul.links li {display:none;}\rdiv.blogsModule div.moduleBody div.toolbar ul.links li.last {display:inline;}\r";} // hide view all link if (document.bStyle.bSection[9].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar ul.links li.last {display:none;}\r";} // hide line between them if (document.bStyle.bSection[10].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar ul.links li {border-right:0px;}\r";} } // compress module if (document.bStyle.bSection[11].checked) {NewCode = NewCode + "div.blogsModule div.toolbar {line-height:11px;}\rdiv.blogsModule div.moduleBody ul.moduleList li {padding:0px;}\rdiv.blogsModule div.modulebody {margin-top:-6px; margin-bottom:-6px;}\r";} // hide blog date if (document.bStyle.bSection[12].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody ul.moduleList li span.date {display:none;}\r";} // hide blog title if (document.bStyle.bSection[13].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody ul.moduleList li span.title {display:none;}\r";} // add blue background if (document.bStyle.bSection[14].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody ul.moduleList li {background-color:#d5e7fb;}\rdiv.blogsModule div.moduleBody ul.moduleList li span.date {padding-left:10px;}\r";} // hide list borders if (document.bStyle.bSection[15].checked) {NewCode = NewCode + "div.blogsModule div.moduleBody ul.moduleList, div.blogsModule div.moduleBody ul.moduleList li {border:0px;}\r";} // links look like buttons if (document.bStyle.bSection[16].checked && (!document.sStyle.sSection[8].checked || !document.sStyle.sSection[9].checked)) {NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar ul.links li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; margin-top:4px; float:none; _display:block;}\r";} // hover links background color if (document.bStyle.bSection[17].checked && (!document.sStyle.sSection[8].checked || !document.sStyle.sSection[9].checked)) {NewCode = NewCode + "div.blogsModule div.moduleBody div.toolbar ul.links li a:hover {background-color:#4184d5; color:#ffffff;}\r";} if (document.getElementById('btbc').value.length>0) {NewCode = NewCode + "table.latestBlogEntry span.btext {background-color:" + document.getElementById('btbc').value + ";}\r";} if (document.getElementById('bbc').value.length>0) {NewCode = NewCode + "table.latestBlogEntry {background-color:" + document.getElementById('bbc').value + ";}\r";} if (document.getElementById('bttc').value.length>0) {NewCode = NewCode + "table.latestBlogEntry span.btext {color:" + document.getElementById('bttc').value + ";}\r";} if (document.getElementById('btc').value.length>0) {NewCode = NewCode + "table.latestBlogEntry span.text, table.latestBlogEntry td, table.latestBlogEntry td a {color:" + document.getElementById('btc').value + ";}\r";} if (document.getElementById('bbi').value.length>0) {NewCode = NewCode + "table.latestBlogEntry {background-image:url(" + document.getElementById('bbi').value + ");}\r"; if (document.getElementById('bbc').value.length == 0) {document.getElementById('bbc').value = 'transparent';} } if (document.getElementById('btbi').value.length>0) {NewCode = NewCode + "table.latestBlogEntry span.btext {background-image:url(" + document.getElementById('btbi').value + ");}\r";} } return NewCode; } function SetBlogsCode(sHeader) { var NewCode = GetBlogsCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetBlurbsCode() { var NewCode = ""; if (document.amStyle.amSection[0].checked) {NewCode = NewCode + "div.blurbsModule {display:none;}\r";} else { if (document.amStyle.amSection[2].checked) // hide header { NewCode = NewCode + "div.blurbsModule h3.moduleHead {display:none;}\r"; } else { // hide header text if (document.amStyle.amSection[1].checked) {NewCode = NewCode + "div.blurbsModule h3.moduleHead span span {display:none;}\rdiv.blurbsModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.amStyle.amSection[3].checked) {NewCode = NewCode + "div.blurbsModule h3.moduleHead {text-align:center;}\r";} } } // center about me title if (document.amStyle.amSection[4].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbAboutMe h4 {text-align:center;}\r";} // center meet title if (document.amStyle.amSection[5].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbLikeToMeet h4 {text-align:center;}\r";} // hide about me title if (document.amStyle.amSection[6].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbAboutMe h4 {display:none;}\r";} // hide about me section if (document.amStyle.amSection[7].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbAboutMe {display:none;}\r";} // hide meet title if (document.amStyle.amSection[8].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbLikeToMeet h4 {display:none;}\r";} // hide meet section if (document.amStyle.amSection[9].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbLikeToMeet {display:none;}\r";} // scroll about me section if (document.amStyle.amSection[10].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbAboutMe {height:100px; overflow:auto;}\r";} // scroll meet section if (document.amStyle.amSection[11].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbLikeToMeet {height:100px; overflow:auto;}\r";} // scroll entire module if (document.amStyle.amSection[12].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody {height:150px; overflow:auto;}\r";} // add default background color header if (document.amStyle.amSection[13].checked) {NewCode = NewCode + "div.blurbsModule h3.moduleHead {background-color:#4184d5;}\rdiv.blurbsModule h3.moduleHead span span {color:#ffffff;}\r";} // add blue background if (document.amStyle.amSection[14].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div {background-color:#d5e7fb;}\r";} // add padding to match if (document.amStyle.amSection[15].checked) {NewCode = NewCode + "div.blurbsModule div.moduleBody div.blurbAboutMe, div.blurbsModule div.moduleBody div.blurbLikeToMeet {margin-top:2px; padding:4px;}\rdiv.blurbsModule h3.moduleHead {width:100%;}\r";} if (document.getElementById('amstc').value.length>0) {NewCode = NewCode + "table.blurbs td td span.orangetext15 {color:" + document.getElementById('amstc').value + ";}\r";} if (document.getElementById('ambi').value.length>0) {NewCode = NewCode + "table.blurbs {background-image:url(" + document.getElementById('ambi').value + ");}\r"; if (document.getElementById('amibc').value.length == 0) {document.getElementById('amibc').value = 'transparent';} if (document.getElementById('amsbc').value.length == 0) {document.getElementById('amsbc').value = 'transparent';} } if (document.getElementById('amtbi').value.length>0) {NewCode = NewCode + "table.blurbs td.text {background-image:url(" + document.getElementById('amtbi').value + ");}\r";} if (document.getElementById('amsbc').value.length>0) {NewCode = NewCode + "table.blurbs table {background-color:" + document.getElementById('amsbc').value + ";}\r";} if (document.getElementById('amtc').value.length>0) {NewCode = NewCode + "table.blurbs td td span.text {color:" + document.getElementById('amtc').value + ";}\r";} if (document.getElementById('amibc').value.length>0) {NewCode = NewCode + "table.blurbs td td {background-color:" + document.getElementById('amibc').value + ";}\r";} if (document.getElementById('amtbc').value.length>0) {NewCode = NewCode + "table.blurbs td.text {background-color:" + document.getElementById('amtbc').value + ";}\r";} } return NewCode; } function SetBlurbsCode(sHeader) { var NewCode = GetBlurbsCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetCalendarCode() { var NewCode = ""; if (document.calStyle.calSection[0].checked) {NewCode = NewCode + "div.calendarModule {display:none;}\r";} else { if (document.calStyle.calSection[2].checked) // hide header { NewCode = NewCode + "div.calendarModule h3.moduleHead {display:none;}\r"; } else { // hide header text if (document.calStyle.calSection[1].checked) {NewCode = NewCode + "div.calendarModule h3.moduleHead span span {display:none;}\rdiv.calendarModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.calStyle.calSection[3].checked) {NewCode = NewCode + "div.calendarModule h3.moduleHead {text-align:center;}\r";} } } // rounded border if (document.calStyle.calSection[4].checked) {NewCode = NewCode + "div.calendarModule div.moduleTop, div.calendarModule div.moduleBottom {display:none;}\rdiv.calendarModule div.moduleMid, div.calendarModule div.moduleMid1 {border:0px;}\r";} // center view all link if (document.calStyle.calSection[5].checked) {NewCode = NewCode + "div.calendarModule ul.links {float:none;}\rdiv.calendarModule ul.links li {float:none; text-align:center;}\r";} // hide view all link if (document.calStyle.calSection[6].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody div.toolbar {display:none;}\r";} // compress module if (document.calStyle.calSection[7].checked) {NewCode = NewCode + "div.calendarModule div.toolbar {line-height:8px;}\rdiv.calendarModule div.moduleBody ul.moduleList li.moduleItem ul li {padding:0px;}\r";} // add blue background if (document.calStyle.calSection[8].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody ul.moduleList li {background-color:#d5e7fb;}\rdiv.calendarModule div.moduleBody ul.moduleList li {padding-left:10px;}\r";} // hide list borders if (document.calStyle.calSection[9].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody ul, div.calendarModule div.moduleBody ul li {border:0px;}\r";} // hide date and time if (document.calStyle.calSection[10].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody ul li.dtStart {display:none;}\r";} // hide event title if (document.calStyle.calSection[11].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody ul li.summary {display:none;}\r";} // hide event location if (document.calStyle.calSection[12].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody ul li.location {display:none;}\r";} // hide event right icon if (document.calStyle.calSection[13].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody ul li.addevent {display:none;}\r";} // default background color header if (document.calStyle.calSection[14].checked) {NewCode = NewCode + "div.calendarModule h3.moduleHead {background-color:#4184d5;}\rdiv.calendarModule h3.moduleHead span span {color:#ffffff;}\r";} // links look like buttons if (document.calStyle.calSection[15].checked && document.calStyle.calSection[7].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody div.toolbar ul.links li {padding-top:4px; padding-bottom:4px;}\r";} if (document.calStyle.calSection[15].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody div.toolbar ul.links li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; margin-top:4px; float:none; _display:block;}\r";} // hover links background color if (document.calStyle.calSection[16].checked) {NewCode = NewCode + "div.calendarModule div.moduleBody div.toolbar ul.links li a:hover {background-color:#4184d5; color:#ffffff;}\r";} } return NewCode; } function SetCalendarCode(sHeader) { var NewCode = GetCalendarCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetFriendsCode() { var NewCode = "div.friendSpaceModule div.moduleBody ol.moduleList {padding:0px;}\r"; if (document.fStyle.fSection[0].checked) {NewCode = NewCode + "div.friendSpaceModule {display:none;}\r";} else { if (document.fStyle.fSection[2].checked) // hide header { NewCode = NewCode + "div.friendSpaceModule h3.moduleHead {display:none;}\r"; } else { // hide header text if (document.fStyle.fSection[1].checked) {NewCode = NewCode + "div.friendSpaceModule h3.moduleHead span span {display:none;}\rdiv.friendSpaceModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.fStyle.fSection[3].checked) {NewCode = NewCode + "div.friendSpaceModule h3.moduleHead {text-align:center;}\r";} } // default background color header if (document.fStyle.fSection[17].checked) {NewCode = NewCode + "div.friendSpaceModule h3.moduleHead {background-color:#4184d5;}\rdiv.friendSpaceModule h3.moduleHead span span {color:#ffffff;}\r";} } // rounded border if (document.fStyle.fSection[4].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleTop, div.friendSpaceModule div.moduleBottom {display:none;}\rdiv.friendSpaceModule div.moduleMid, div.friendSpaceModule div.moduleMid1 {border:0px;}\r";} if (document.fStyle.fSection[7].checked && document.fStyle.fSection[8].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar ul.links {display:none;}\r";} else { // hide view: if (document.fStyle.fSection[6].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar ul.links li.viewMy {display:none;}\r";} // hide view all and online links if (document.fStyle.fSection[7].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar ul.links li a {display:none;}\r";} // hide new friends link if (document.fStyle.fSection[8].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar ul.links li.last a {display:none;}\rdiv.friendSpaceModule div.moduleBody div.toolbar ul.links li {border:0px;}\r";} if (document.fStyle.fSection[7].checked && !document.fStyle.fSection[8].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar ul.links li.last a {display:inline;}\r";} } // center stack header if (document.fStyle.fSection[9].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar ul.links {width:98.3%; text-align:center; display:inline;}\rdiv.friendSpaceModule div.moduleBody div.toolbar ul.links li {width:23.3%;}\rdiv.friendSpaceModule div.moduleBody div.toolbar span.toolbarCount {float:none; display:block; text-align:center;}\r";} // hide has xx friends if (document.fStyle.fSection[11].checked && document.fStyle.fSection[10].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar span.toolbarCount {display:none;}\r";} else { // hide number of friends if (document.fStyle.fSection[10].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar span.toolbarCount span.count {display:none;}\r";} // hide number of friends if (document.fStyle.fSection[11].checked && !document.fStyle.fSection[10].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar span.toolbarCount {visibility:hidden; font-size:0px;}\rdiv.friendSpaceModule div.moduleBody div.toolbar span.toolbarCount span.count {visibility:visible; font-size:11px;}\r";} } // hide top friends if (document.fStyle.fSection[5].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList {display:none;}\r";} else { // hide top friend names if (document.fStyle.fSection[12].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink span.pilDisplayName {display:none;}\r";} // hide top friend default picture if (document.fStyle.fSection[13].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink a img.profileimagelink {display:none;}\r";} // hide top friend real name if (document.fStyle.fSection[14].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink span.pilRealName {display:none;}\r";} // online now logic if (document.fStyle.fSection[15].checked && document.fStyle.fSection[16].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink span.msOnlineNow {display:none;}\r";} else { // hide online now icon only if (document.fStyle.fSection[15].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink span.msOnlineNow img {display:none;}\r";} // hide online now text only if (document.fStyle.fSection[16].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink span.msOnlineNow {visibility:hidden; font-size:0px;}\rdiv.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink span.msOnlineNow img {visibility:visible;}\r";} } //compress friends in module if (document.fStyle.fSection[19].checked) { var sPercentage = ""; var sMaxWidth = ""; var sHeight = ""; if (document.fStyle.fSection[21].checked) {sPercentage = "8%"; sMaxWidth = "107px";} else {sPercentage = "10%"; sMaxWidth = "90px";} //new logic for li height if (document.fStyle.fSection[12].checked) {sHeight = "height:51%; ";} if (document.fStyle.fSection[15].checked && document.fStyle.fSection[16].checked && !document.fStyle.fSection[14].checked) {sHeight = "height:50%; ";} if (document.fStyle.fSection[15].checked && document.fStyle.fSection[16].checked && document.fStyle.fSection[14].checked) {sHeight = "height:45%; ";} if (document.fStyle.fSection[12].checked && document.fStyle.fSection[14].checked) {sHeight = "height:45%; ";} if (document.fStyle.fSection[14].checked && document.fStyle.fSection[20].checked && (!document.fStyle.fSection[15].checked || !document.fStyle.fSection[16].checked)) {sHeight = "height:42%; ";} if (document.fStyle.fSection[15].checked && document.fStyle.fSection[16].checked && document.fStyle.fSection[14].checked && document.fStyle.fSection[12].checked && !document.fStyle.fSection[20].checked) {sHeight = "height:38%; ";} if (document.fStyle.fSection[15].checked && document.fStyle.fSection[16].checked && document.fStyle.fSection[14].checked && document.fStyle.fSection[20].checked) {sHeight = "height:35%; ";} if (document.fStyle.fSection[15].checked && document.fStyle.fSection[16].checked && document.fStyle.fSection[14].checked && document.fStyle.fSection[12].checked && document.fStyle.fSection[20].checked) {sHeight = "height:30%; ";} NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList {padding-left:" + sPercentage + ";}\rdiv.friendSpaceModule div.moduleBody ol.moduleList li {" + sHeight + "margin:0px; max-width:" + sMaxWidth + ";}\r"; } //make friend pictures the same size if (document.fStyle.fSection[20].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink a img.profileimagelink {height:90px; width:90px;}\r";} //polaroid pictures if (document.fStyle.fSection[21].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList span.msProfileLink {border-style:solid; border-width:8px 8px 40px 8px; border-color:#000000; -moz-border-radius:8px; height:75%;}\rdiv.friendSpaceModule div.moduleBody ol.moduleList li {height:75%; margin:0.5px; margin-bottom:-6px;}\r";} if (document.fStyle.fSection[21].checked & !document.fStyle.fSection[19].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList {padding-left:8%;}\r";} //force friend names to one line if (document.fStyle.fSection[22].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li span.msProfileLink span.pilDisplayName {white-space:nowrap;}\r";} //add light blue background color to match if (document.fStyle.fSection[24].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody ol.moduleList li {background-color:#d5e7fb;}\r";} } //compress module if (document.fStyle.fSection[18].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar {line-height:14px;}\r";} //links look like buttons if (document.fStyle.fSection[23].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar ul.links li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; margin-top:4px; float:none; _display:block;}\r";} //hover links background color if (document.fStyle.fSection[25].checked) {NewCode = NewCode + "div.friendSpaceModule div.moduleBody div.toolbar ul.links li a:hover {background-color:#4184d5; color:#ffffff;}\r";} if (document.getElementById('ftc').value.length>0 && !document.fStyle.fSection[1].checked) {NewCode = NewCode + "table.friendSpace span.orangetext15 {color:" + document.getElementById('ftc').value + ";}\r";} if (document.getElementById('ftbgc').value.length>0) {NewCode = NewCode + "table.friendSpace, table.friendSpace td.text table {background-color:transparent;}\rtable.friendSpace td.text {background-color:" + document.getElementById('ftbgc').value + ";}\r";} if (document.getElementById('fbgc').value.length == 0 && document.getElementById('fbi').value.length>0) {document.getElementById('fbgc').value = 'transparent';} if (document.getElementById('fbgc').value.length>0) {NewCode = NewCode + "table.friendSpace td.text td td {background-color:" + document.getElementById('fbgc').value + ";}\r";} if (document.getElementById('fnc').value.length>0) {NewCode = NewCode + "table.friendSpace span.btext, table.friendSpace span.redbtext {color:" + document.getElementById('fnc').value + "!important;}\r";} if (document.getElementById('fnbc').value.length>0) {NewCode = NewCode + "table.friendSpace span.btext {background-color:" + document.getElementById('fnbc').value + ";}\r";} else { if (document.getElementById('ftbgc').value.length>0) {NewCode = NewCode + "table.friendSpace span.btext {background-color:white;}\r";} } if (!document.fStyle.fSection[5].checked) { if (document.getElementById('fvc').value.length>0 && !document.fStyle.fSection[5].checked) {NewCode = NewCode + "table.friendSpace td.text div a {color:" + document.getElementById('fvc').value + "!important;}\r";} if (document.getElementById('fvbc').value.length>0 && !document.fStyle.fSection[5].checked) {NewCode = NewCode + "table.friendSpace td.text div {background-color:" + document.getElementById('fvbc').value + "; background-image:none;}\r";} else { if (document.getElementById('ftbgc').value.length>0) {NewCode = NewCode + "table.friendSpace td.text div {background-color:white;}\r";} } } if (document.getElementById('fnac').value.length>0) {NewCode = NewCode + "table.friendSpace td.text td td a {color:" + document.getElementById('fnac').value + ";}\r";} if (document.getElementById('fbi').value.length>0) {NewCode = NewCode + "table.friendSpace table table {background-image:url(" + document.getElementById('fbi').value + "); background-position:center center;}\rtable.friendSpace table table table {background-image:none;}\r";} if (document.getElementById('ftbi').value.length>0) {NewCode = NewCode + "table.friendSpace td.text table {background-color:transparent;}\rtable.friendSpace td.text {background-image:url(" + document.getElementById('ftbi').value + "); background-position:center center;}\r";} } return NewCode; } function SetFriendsCode(sHeader) { var NewCode = GetFriendsCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetCommentCode() { var NewCode = ""; if (document.cmStyle.cmSection[0].checked) {NewCode = NewCode + "div.commentsModule {display:none;}\r";} else { if (document.cmStyle.cmSection[2].checked) // hide header { NewCode = NewCode + "div.commentsModule h3.moduleHead {display:none;}\r"; } else { // hide header text if (document.cmStyle.cmSection[1].checked) {NewCode = NewCode + "div.commentsModule h3.moduleHead span span {display:none;}\rdiv.commentsModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.cmStyle.cmSection[3].checked) {NewCode = NewCode + "div.commentsModule h3.moduleHead {text-align:center;}\r";} } // default background color header if (document.cmStyle.cmSection[5].checked) {NewCode = NewCode + "div.commentsModule h3.moduleHead {background-color:#4184d5;}\rdiv.commentsModule h3.moduleHead span span {color:#ffffff;}\r";} } // rounded border if (document.cmStyle.cmSection[4].checked) {NewCode = NewCode + "div.commentsModule div.moduleTop, div.commentsModule div.moduleBottom {display:none;}\rdiv.commentsModule div.moduleMid, div.commentsModule div.moduleMid1 {border:0px;}\r";} // hide all comments ----- add more logic if (document.cmStyle.cmSection[6].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList {display:none;}\r";} else { // scroll all comments if (document.cmStyle.cmSection[7].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList {overflow:auto; height:200px;}\r";} // remove orange background if (document.cmStyle.cmSection[8].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li,\rdiv.commentsModule div.moduleBody ul.moduleList div.userComment {background-color:transparent;}\r";} // hide user logic if (document.cmStyle.cmSection[12].checked && document.cmStyle.cmSection[13].checked && document.cmStyle.cmSection[14].checked && document.cmStyle.cmSection[15].checked && document.cmStyle.cmSection[16].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.user {display:none;}\rdiv.commentsModule div.moduleBody ul.moduleList li div.userComment {margin-left:0px;}\r";} else { // hide user name if (document.cmStyle.cmSection[12].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.user span.msProfileLink span.pilDisplayName {display:none;}\r";} // hide user picture if (document.cmStyle.cmSection[13].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.user span.msProfileLink img.profileimagelink {display:none;}\r";} // hide user real name if (document.cmStyle.cmSection[14].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.user span.msProfileLink span.pilRealName {display:none;}\r";} // hide online now logic if (document.cmStyle.cmSection[15].checked && document.cmStyle.cmSection[16].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.user span.msProfileLink span.msOnlineNow {display:none;}\r";} else { // hide user online now image if (document.cmStyle.cmSection[15].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.user span.msProfileLink span.msOnlineNow img {display:none;}\r";} // hide user online now text if (document.cmStyle.cmSection[16].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.user span.msProfileLink span.msOnlineNow {visibility:hidden; font-size:0px;}\rdiv.commentsModule div.moduleBody ul.moduleList li div.user span.msProfileLink span.msOnlineNow img {visibility:visible;}\r";} } // flip comments if (document.cmStyle.cmSection[21].checked && !document.cmStyle.cmSection[22].checked) {NewCode = NewCode + "div.commentsModule ul.moduleList li div.user {float:right;}\rdiv.commentsModule ul.moduleList li div.userComment {margin-left:0px; margin-right: 25%;}\r";} // zig zag comments if (!document.cmStyle.cmSection[21].checked && document.cmStyle.cmSection[22].checked) {NewCode = NewCode + "div.commentsModule ul.moduleList li.odd div.user {float:right;}\rdiv.commentsModule ul.moduleList li.odd div.userComment {margin-left:0px; margin-right: 25%;}\r";} if (document.cmStyle.cmSection[21].checked && document.cmStyle.cmSection[22].checked) {NewCode = NewCode + "div.commentsModule ul.moduleList li.even div.user {float:right;}\rdiv.commentsModule ul.moduleList li.even div.userComment {margin-left:0px; margin-right: 25%;}\r";} } // hide comment date and time if (document.cmStyle.cmSection[17].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.userComment p.datePosted {display:none;}\r";} // center comment date and time if (document.cmStyle.cmSection[18].checked && !document.cmStyle.cmSection[17].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.userComment p.datePosted {text-align:center;}\r";} // polaroid borders if (document.cmStyle.cmSection[25].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList div.user span.msProfileLink {border-style:solid; border-width:10px 10px 50px 10px; border-color:#000000; -moz-border-radius:8px;}\r";} // contain size of large comments if (document.cmStyle.cmSection[26].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.userComment div.autoResize {overflow:auto; height:120px; border:1px black solid; background-color:#afc5f0;}\r";} // add light blue background to match if (document.cmStyle.cmSection[27].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li {background-color:#d5e7fb;}\rdiv.commentsModule div.moduleBody ul.moduleList li div.userComment {background-color:#edf1f8;}\rdiv.commentsModule div.moduleBody ul.moduleList li div.userComment p.datePosted {background-color:#4184d5; color:#ffffff;}\rdiv.commentsModule div.moduleBody ul.moduleList li div.userComment {padding:0px;}\r";} } // view all and add comments links logic if (document.cmStyle.cmSection[9].checked && document.cmStyle.cmSection[10].checked && document.cmStyle.cmSection[11].checked) {NewCode = NewCode + "div.commentsModule div.toolbar {display:none;}\r";} else { // hide comments count if (document.cmStyle.cmSection[9].checked) {NewCode = NewCode + "div.commentsModule div.toolbar span.toolbarCount {display:none;}\r";} if (document.cmStyle.cmSection[10].checked && document.cmStyle.cmSection[11].checked) {NewCode = NewCode + "div.commentsModule div.toolbar ul.links {display:none;}\rdiv.commentsModule div.moduleBottom {margin-top:-5px;}\r";} else { // hide view all comments links if (document.cmStyle.cmSection[10].checked) {NewCode = NewCode + "div.commentsModule div.toolbar ul.links li {display:none;}\rdiv.commentsModule div.toolbar ul.links li.last {display:inline;}\r";} // hide add comments links if (document.cmStyle.cmSection[11].checked) {NewCode = NewCode + "div.commentsModule div.toolbar ul.links li.last {display:none;}\rdiv.commentsModule div.toolbar ul.links li {border:0px;}\r";} } } // center comments count if (document.cmStyle.cmSection[19].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody span.toolbarCount {float:none; text-align:center; display:block;}\r";} // left align add view comments links if (document.cmStyle.cmSection[20].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody div.toolbar ul.links {text-align:center; float:left;}\rdiv.commentsModule div.moduleBody div.toolbar span.toolbarCount {float:right;}\r";} // compress height if (document.cmStyle.cmSection[23].checked) { var sMargin = ""; if (document.cmStyle.cmSection[17].checked) {sMargin = "-10px";} else {sMargin = "-20px"} NewCode = NewCode + "div.commentsModule div.moduleBody div.toolbar {line-height:14px;}\rdiv.commentsModule div.moduleBody ul.moduleList li {margin:0px;}\rdiv.commentsModule div.moduleBody ul.moduleList li div.userComment div.autoResize {position:relative; top:" + sMargin + ";}\rdiv.commentsModule div.moduleBody ul.moduleList li {margin:0px; margin-bottom:1px;}\r"; } if (document.cmStyle.cmSection[23].checked && !document.cmStyle.cmSection[17].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.userComment p.datePosted {position:relative; top:-10px;}\r";} // compress width if (document.cmStyle.cmSection[24].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody ul.moduleList li div.user {width:90px; width:90px;}\rdiv.commentsModule div.moduleBody ul.moduleList li {width:378px;}\r";} // links look like buttons if (document.cmStyle.cmSection[28].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody div.toolbar ul.links li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; _display:block;}\r";} // hover links background color if (document.cmStyle.cmSection[29].checked) {NewCode = NewCode + "div.commentsModule div.moduleBody div.toolbar ul.links li a:hover {background-color:#4184d5; color:#ffffff;}\r";} if (document.getElementById('cmtbi').value.length>0) {NewCode = NewCode + "table.friendsComments td.text * {background-color:transparent;}\rtable.friendsComments td.text td {background-image:url(" + document.getElementById('cmtbi').value + "); background-position:center center;}\r";} if (document.getElementById('cmbi').value.length>0) {NewCode = NewCode + "table.friendsComments * {background-color:transparent !important;}\r.friendsComments td.text td td {background-image:url(" + document.getElementById('cmbi').value + "); background-position:center center;}\r"; if (document.getElementById('cmibgc').value.length == 0) {document.getElementById('cmibgc').value = 'transparent';} if (document.getElementById('cmsbgc').value.length == 0) {document.getElementById('cmsbgc').value = 'transparent';} if (document.getElementById('cmacbc').value.length == 0) {document.getElementById('cmacbc').value = 'transparent';} if (document.getElementById('cmnbc').value.length == 0) {document.getElementById('cmnbc').value = 'transparent';} } if (document.getElementById('cmtbgc').value.length>0) {NewCode = NewCode + "table.friendsComments span.orangetext15 {background-color:" + document.getElementById('cmtbgc').value + "!important;}\r";} if (document.getElementById('cmtc').value.length>0) {NewCode = NewCode + "table.friendsComments span.orangetext15 {color:" + document.getElementById('cmtc').value + ";}\r";} if (document.getElementById('cmsbgc').value.length>0) {NewCode = NewCode + "table.friendsComments td.text table {background-color:" + document.getElementById('cmsbgc').value + ";}\r"; if (document.getElementById('cmacbc').value.length == 0) {NewCode = NewCode + "table.friendsComments td.text td a {background-color:white;}\rtable.friendsComments td.text td td a {background-color:transparent;}\r";} if (document.getElementById('cmnc').value.length == 0) {NewCode = NewCode + "table.friendsComments td.text td b {background-color:white;}\rtable.friendsComments td.text td td b {background-color:transparent;}\r";} if (document.getElementById('cmtbgc').value.length == 0) {NewCode = NewCode + "table.friendsComments span.orangetext15 {background-color:ffcc99;}\r";} } if (document.getElementById('cmibgc').value.length>0) {NewCode = NewCode + "table.friendsComments td.text td td {background-color:" + document.getElementById('cmibgc').value + ";}\r";} if (document.getElementById('cmctc').value.length>0) {NewCode = NewCode + "table.friendsComments td.text td td {color:" + document.getElementById('cmctc').value + ";}\r";} if (document.getElementById('cmdtbgc').value.length>0) {NewCode = NewCode + "table.friendsComments span.blacktext10 {background-color:" + document.getElementById('cmdtbgc').value + "!important;}\r";} if (document.getElementById('cmdtc').value.length>0) {NewCode = NewCode + "table.friendsComments span.blacktext10 {color:" + document.getElementById('cmdtc').value + ";}\r";} if (document.getElementById('cmnbc').value.length>0) {NewCode = NewCode + "table.friendsComments td.text b {background-color:" + document.getElementById('cmnbc').value + ";}\rtable.friendsComments td.text td b a, table.friendsComments td.text td td b {background-color:transparent;}\r";} if (document.getElementById('cmnc').value.length>0) {NewCode = NewCode + "table.friendsComments td.text b {color:" + document.getElementById('cmnc').value + ";}\rtable.friendsComments span.redtext {color:" + document.getElementById('cmnc').value + ";}";} if (document.getElementById('cmacbc').value.length>0) {NewCode = NewCode + "table.friendsComments td.text td a {background-color:" + document.getElementById('cmacbc').value + ";}\rtable.friendsComments td.text td b a, table.friendsComments td.text td td a {background-color:transparent;}\r";} } return NewCode; } function SetCommentsCode(sHeader) { var NewCode = GetCommentCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetPostCommentCode() { var NewCode = ""; if (document.pcStyle.pcSection[0].checked) {NewCode = NewCode + "div.postCommentModule {display:none;}\r";} else { if (document.pcStyle.pcSection[2].checked) // hide header { NewCode = NewCode + "div.postCommentModule h3.moduleHead {display:none;}\r"; } else { // hide header text if (document.pcStyle.pcSection[1].checked) {NewCode = NewCode + "div.postCommentModule h3.moduleHead span span {display:none;}\rdiv.postCommentModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.pcStyle.pcSection[3].checked) {NewCode = NewCode + "div.postCommentModule h3.moduleHead {text-align:center;}\r";} } // default background color header if (document.pcStyle.pcSection[1].checked) {NewCode = NewCode + "div.postCommentModule h3.moduleHead {background-color:#4184d5;}\rdiv.postCommentModule h3.moduleHead span span {color:#ffffff;}\r";} } // rounded border if (document.pcStyle.pcSection[4].checked) {NewCode = NewCode + "div.postCommentModule div.moduleTop, div.postCommentModule div.moduleBottom {display:none;}\rdiv.postCommentModule div.moduleMid, div.postCommentModule div.moduleMid1 {border:0px;}\r";} // hide view all comments link if (document.pcStyle.pcSection[5].checked) {NewCode = NewCode + "div.postCommentModule div.toolbar {display:none;}\r";} // links look like buttons if (document.pcStyle.pcSection[6].checked) {NewCode = NewCode + "div.postCommentModule div.moduleBody button, div.postCommentModule div.moduleBody div.toolbar ul.links li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; _display:block;}\rdiv.postCommentModule div.moduleBody div.toolbar ul.links {padding-right:0px;}\r";} // hover links background color if (document.pcStyle.pcSection[7].checked) {NewCode = NewCode + "div.postCommentModule div.moduleBody button:hover, div.postCommentModule div.moduleBody div.toolbar ul.links li a:hover {background-color:#4184d5; color:#ffffff;}\r";} } return NewCode; } function SetPostCommentCode(sHeader) { var NewCode = GetPostCommentCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetActivitiesCode() { var NewCode = ""; if (document.asStyle.asSection[0].checked) {NewCode = NewCode + "div.activityMiniFeedModule {display:none;}\r";} else { if (document.asStyle.asSection[2].checked) // hide header { NewCode = NewCode + "div.activityMiniFeedModule h3.moduleHead {display:none;}\r"; } else { // hide header text if (document.asStyle.asSection[1].checked) {NewCode = NewCode + "div.activityMiniFeedModule h3.moduleHead span span {display:none;}\rdiv.activityMiniFeedModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.asStyle.asSection[3].checked) {NewCode = NewCode + "div.activityMiniFeedModule h3.moduleHead {text-align:center;}\r";} } } // rounded border if (document.asStyle.asSection[4].checked) {NewCode = NewCode + "div.activityMiniFeedModule div.moduleTop, div.activityMiniFeedModule div.moduleBottom {display:none;}\rdiv.activityMiniFeedModule div.moduleMid, div.activityMiniFeedModule div.moduleMid1 {border:0px;}\r";} // hide date header if (document.asStyle.asSection[5].checked) {NewCode = NewCode + "div.activityMiniFeedModule div.moduleBody ul.activitiesContainer li h4.dateHeader {display:none;}\r";} // hide action descriptions if (document.asStyle.asSection[6].checked) {NewCode = NewCode + "div.activityMiniFeedModule div.moduleBody ul.activitiesContainer li ul.activities li.activityItem h5.activityHeader {visibility:hidden; font-size:0px;}\rdiv.activityMiniFeedModule div.moduleBody ul.activitiesContainer li ul.activities li.activityItem h5.activityHeader a {visibility:visible; font-size:11px; margin-right:10px;}\r";} // compress module if (document.asStyle.asSection[7].checked) {NewCode = NewCode + "div.activityMiniFeedModule div.moduleBody ul.activitiesContainer li {line-height:7px; margin-top:4px;}\r";} // vertical link list if (document.asStyle.asSection[8].checked) {NewCode = NewCode + "div.activityMiniFeedModule div.moduleBody ul.activitiesContainer li ul.activities li h5.activityHeader a {display:block;}\r";} // add light blue background color to match if (document.asStyle.asSection[9].checked) {NewCode = NewCode + "div.activityMiniFeedModule div.moduleBody ul.activitiesContainer li ul.activities {background-color:#d5e7fb;}\r";} // links look like buttons if (document.asStyle.asSection[10].checked) {NewCode = NewCode + "div.activityMiniFeedModule div.moduleBody ul.activitiesContainer li ul.activities li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; white-space:nowrap; line-height:25px;}\r";} // hover links background color if (document.asStyle.asSection[11].checked) {NewCode = NewCode + "div.activityMiniFeedModule div.moduleBody ul.activitiesContainer li ul.activities li a:hover {background-color:#4184d5; color:#ffffff;}\r";} } return NewCode; } function SetActivitiesCode(sHeader) { var NewCode = GetActivitiesCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function GetGroupsCode() { var NewCode = ""; if (document.gStyle.gSection[0].checked) {NewCode = NewCode + "div.groupsModule {display:none;}\r";} else { if (document.gStyle.gSection[2].checked) // hide header { NewCode = NewCode + "div.groupsModule h3.moduleHead {display:none;}\r"; } else { // hide header text if (document.gStyle.gSection[1].checked) {NewCode = NewCode + "div.groupsModule h3.moduleHead span span {display:none;}\rdiv.groupsModule h3.moduleHead span {display:block; height:13.5px;}\r";} else { // center header if (document.gStyle.gSection[3].checked) {NewCode = NewCode + "div.groupsModule h3.moduleHead {text-align:center;}\r";} } } // rounded border if (document.gStyle.gSection[4].checked) {NewCode = NewCode + "div.groupsModule div.moduleTop, div.groupsModule div.moduleBottom {display:none;}\rdiv.groupsModule div.moduleMid, div.groupsModule div.moduleMid1 {border:0px;}\r";} if (document.gStyle.gSection[7].checked && document.gStyle.gSection[8].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody div.toolbar ul.links {display:none;}\r";} else { // hide view: fix this css if (document.gStyle.gSection[5].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody div.toolbar ul.links li.viewMy {display:none;}\r";} } // hide top friend names if (document.gStyle.gSection[6].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody ul.moduleList li span.msProfileLink span.pilDisplayName {display:none;}\r";} // hide top friend default picture if (document.gStyle.gSection[7].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody ul.moduleList li span.msProfileLink a img.profileimagelink {display:none;}\rdiv.groupsModule div.moduleBody ul.moduleList li {height:auto;}\r";} //compress friends in module if (document.gStyle.gSection[9].checked) { var sPercentage = ""; var sMaxWidth = ""; if (document.gStyle.gSection[11].checked) {sPercentage = "8%"; sMaxWidth = "107px";} else {sPercentage = "10%"; sMaxWidth = "90px";} NewCode = NewCode + "div.groupsModule div.moduleBody ul.moduleList {padding-left:" + sPercentage + ";}\rdiv.groupsModule div.moduleBody ol.moduleList li {max-width:" + sMaxWidth + ";}\r"; } //make friend pictures the same size if (document.gStyle.gSection[10].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody ul.moduleList li span.msProfileLink a img.profileimagelink {height:90px; width:90px;}\r";} //polaroid pictures if (document.gStyle.gSection[11].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody ul.moduleList span.msProfileLink {border-style:solid; border-width:8px 8px 40px 8px; border-color:#000000; -moz-border-radius:8px; height:75%;}\rdiv.groupsModule div.moduleBody ul.moduleList li {height:25%; margin:0.5px;}\r";} if (document.gStyle.gSection[11].checked & !document.gStyle.gSection[9].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody ul.moduleList {padding-left:8%;}\r";} //force friend names to one line if (document.gStyle.gSection[12].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody ul.moduleList li span.msProfileLink span.pilDisplayName {white-space:nowrap;}\r";} //add light blue background color to match if (document.gStyle.gSection[14].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody ul.moduleList li {background-color:#d5e7fb;}\r";} //compress module if (document.gStyle.gSection[8].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody div.toolbar {line-height:14px;}\r";} //links look like buttons if (document.gStyle.gSection[13].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody div.toolbar ul.links li a {background-color:#e0eafd; padding:3px 10px; color:#909; font-size:10px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-right:1px solid #666; border-bottom:1px solid #666; margin-top:4px; float:none; _display:block;}\r";} //hover links background color if (document.gStyle.gSection[15].checked) {NewCode = NewCode + "div.groupsModule div.moduleBody div.toolbar ul li a:hover {background-color:#4184d5; color:#ffffff;}\r";} } return NewCode; } function SetGroupsCode(sHeader) { var NewCode = GetGroupsCode(); SetCodeToStyleSheet(NewCode); NewCode = sHeader + NewCode; ShowCode(NewCode); } function ShowCode (code) { document.genform.gencode.value = code; } function showColorPrompt(source) { colorPrompt(source); } function showImagePrompt(source) { imagePrompt(source); } function isUrl(s) { var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/ return regexp.test(s); } function CopyStyleBackgroundColor1 (sbc) { if (sbc) { document.getElementById('pibc').value = sbc; document.getElementById('ctbc').value = sbc; document.getElementById('urlbc').value = sbc; document.getElementById('iibc').value = sbc; document.getElementById('isbc').value = sbc; document.getElementById('dibc').value = sbc; document.getElementById('dsbc').value = sbc; document.getElementById('sibc').value = sbc; document.getElementById('ssbc').value = sbc; document.getElementById('coibc').value = sbc; document.getElementById('cosbc').value = sbc; document.getElementById('nibc').value = sbc; document.getElementById('nsbc').value = sbc; document.getElementById('xnbc').value = sbc; document.getElementById('bbc').value = sbc; document.getElementById('amibc').value = sbc; document.getElementById('amsbc').value = sbc; document.getElementById('fbgc').value = sbc; document.getElementById('fnbc').value = sbc; document.getElementById('fvbc').value = sbc; document.getElementById('cmibgc').value = sbc; document.getElementById('cmsbgc').value = sbc; } } function CopyStyleBackgroundColor2 (sbc, ibc) { if (sbc && ibc) { document.getElementById('pibc').value = sbc; document.getElementById('ctbc').value = sbc; document.getElementById('urlbc').value = sbc; document.getElementById('iibc').value = ibc; document.getElementById('isbc').value = sbc; document.getElementById('dibc').value = ibc; document.getElementById('dsbc').value = sbc; document.getElementById('sibc').value = ibc; document.getElementById('ssbc').value = sbc; document.getElementById('coibc').value = ibc; document.getElementById('cosbc').value = sbc; document.getElementById('nibc').value = ibc; document.getElementById('nsbc').value = sbc; document.getElementById('xnbc').value = sbc; document.getElementById('bbc').value = sbc; document.getElementById('amibc').value = ibc; document.getElementById('amsbc').value = sbc; document.getElementById('fbgc').value = ibc; document.getElementById('fnbc').value = sbc; document.getElementById('fvbc').value = sbc; document.getElementById('cmibgc').value = ibc; document.getElementById('cmsbgc').value = sbc; } } function CopyStyleTitleBackgroundColor (tbc) { if (tbc) { document.getElementById('pitbc').value = tbc; document.getElementById('ctnbc').value = tbc; document.getElementById('urltbc').value = tbc; document.getElementById('itbc').value = tbc; document.getElementById('dtbc').value = tbc; document.getElementById('stbc').value = tbc; document.getElementById('cotbc').value = tbc; document.getElementById('ntbc').value = tbc; document.getElementById('btbc').value = tbc; document.getElementById('amtbc').value = tbc; document.getElementById('ftbgc').value = tbc; document.getElementById('cmtbgc').value = tbc; } } function CopyStyleHideTitle (ht) { if (ht) { document.biStyle.piSection[1].checked = ht; document.ctStyle.ctSection[1].checked = ht; document.urlStyle.urlSection[1].checked = ht; document.iStyle.iSection[1].checked = ht; document.dStyle.dSection[1].checked = ht; document.sStyle.sSection[1].checked = ht; document.cStyle.cSection[1].checked = ht; document.nStyle.nSection[1].checked = ht; document.bStyle.bSection[3].checked = ht; document.amStyle.amSection[1].checked = ht; document.fStyle.fSection[1].checked = ht; document.cmStyle.cmSection[1].checked = ht; } } function CopyStyleCenterTitle (ct) { if (ct) { document.biStyle.piSection[2].checked = ct; document.ctStyle.ctSection[2].checked = ct; document.urlStyle.urlSection[2].checked = ct; document.iStyle.iSection[2].checked = ct; document.dStyle.dSection[2].checked = ct; document.sStyle.sSection[2].checked = ct; document.cStyle.cSection[2].checked = ct; document.nStyle.nSection[2].checked = ct; document.bStyle.bSection[4].checked = ct; document.amStyle.amSection[3].checked = ct; document.fStyle.fSection[2].checked = ct; document.cmStyle.cmSection[10].checked = ct; } } function CopyStyleTitleColor(tc) { if (tc) { document.getElementById('pint').value = tc; document.getElementById('ctntc').value = tc; document.getElementById('urltc').value = tc; document.getElementById('itc').value = tc; document.getElementById('dtc').value = tc; document.getElementById('sstc').value = tc; document.getElementById('cotc').value = tc; document.getElementById('ntc').value = tc; document.getElementById('bttc').value = tc; document.getElementById('amttc').value = tc; document.getElementById('ftc').value = tc; document.getElementById('cmtc').value = tc; } } function CopyStyleGrayscale(gs) { if (gs) { document.biStyle.piSection[14].checked = gs; document.ctStyle.ctSection[7].checked = gs; document.fStyle.fSection[18].checked = gs; document.cmStyle.cmSection[19].checked = gs; document.cmStyle.cmSection[20].checked = gs; } } function CopyStyleTextColor(tc) { if (tc) { document.getElementById('pit').value = tc; document.getElementById('urluc').value = tc; document.getElementById('stc').value = tc; document.getElementById('dsc').value = tc; document.getElementById('ssc').value = tc; document.getElementById('cosc').value = tc; document.getElementById('nsc').value = tc; document.getElementById('btc').value = tc; document.getElementById('amtc').value = tc; document.getElementById('fnc').value = tc; document.getElementById('cmctc').value = tc; } } function CopyStyleBackgroundImage(bi) { if (bi) { document.getElementById('pibi').value = bi; document.getElementById('ctnbi').value = bi; document.getElementById('urlbi').value = bi; document.getElementById('ibi').value = bi; document.getElementById('dbi').value = bi; document.getElementById('sbi').value = bi; document.getElementById('cobi').value = bi; document.getElementById('nbi').value = bi; document.getElementById('xnbi').value = bi; document.getElementById('bbi').value = bi; document.getElementById('ambi').value = bi; document.getElementById('fbi').value = bi; document.getElementById('cmbi').value = bi; } } function CopyStyleTitleBackgroundImage(tbi) { if (tbi) { document.getElementById('pitbi').value = tbi; document.getElementById('ctntbi').value = tbi; document.getElementById('urltbi').value = tbi; document.getElementById('itbi').value = tbi; document.getElementById('dtbi').value = tbi; document.getElementById('stbi').value = tbi; document.getElementById('cotbi').value = tbi; document.getElementById('ntbi').value = tbi; document.getElementById('btbi').value = tbi; document.getElementById('amtbi').value = tbi; document.getElementById('ftbi').value = tbi; document.getElementById('cmtbi').value = tbi; } } function CopyStyleHideOnlineNow (on) { if (on) { document.biStyle.piSection[6].checked = on; document.fStyle.fSection[15].checked = on; document.cmStyle.cmSection[9].checked = on; } } function CopyStyleHideBorder (brd) { if (brd) { document.ctStyle.ctSection[4].checked = brd; document.urlStyle.urlSection[5].checked = brd; document.iStyle.iSection[4].checked = brd; document.dStyle.dSection[4].checked = brd; document.sStyle.sSection[3].checked = brd; document.cStyle.cSection[3].checked = brd; document.nStyle.nSection[3].checked = brd; document.smStyle.xSection[3].checked = brd; document.fStyle.fSection[10].checked = brd; document.cmStyle.cmSection[3].checked = brd; } } function CopyStyleAddOpacity (opa) { if (opa) { document.ctStyle.ctSection[6].checked = opa; document.urlStyle.urlSection[7].checked = opa; document.iStyle.iSection[8].checked = opa; document.dStyle.dSection[9].checked = opa; document.sStyle.sSection[6].checked = opa; document.cStyle.cSection[6].checked = opa; document.nStyle.nSection[5].checked = opa; document.smStyle.xSection[4].checked = opa; document.bStyle.bSection[6].checked = opa; document.amStyle.amSection[5].checked = opa; document.fStyle.fSection[17].checked = opa; document.cmStyle.cmSection[18].checked = opa; } } function CopyStyleRoundTables (radius) { if (radius) { document.biStyle.piSection[13].checked = radius; document.ctStyle.ctSection[5].checked = radius; document.urlStyle.urlSection[6].checked = radius; document.iStyle.iSection[7].checked = radius; document.dStyle.dSection[8].checked = radius; document.sStyle.sSection[5].checked = radius; document.cStyle.cSection[5].checked = radius; document.nStyle.nSection[4].checked = radius; document.smStyle.xSection[3].checked = radius; document.bStyle.bSection[5].checked = radius; document.amStyle.amSection[4].checked = radius; document.fStyle.fSection[16].checked = radius; document.cmStyle.cmSection[17].checked = radius; } } function CopyStyleCompressSection (cmp) { if (cmp) { document.biStyle.piSection[16].checked = cmp; // document.ctStyle.ctSection[5].checked = cmp; document.iStyle.iSection[5].checked = cmp; document.dStyle.dSection[5].checked = cmp; document.bStyle.bSection[1].checked = cmp; document.fStyle.fSection[11].checked = cmp; document.cmStyle.cmSection[15].checked = cmp; document.getElementById('bdCompress').checked = cmp; } } function CopyStyleFlip (flp) { if (flp) { document.biStyle.piSection[12].checked = flp; document.iStyle.iSection[6].checked = flp; document.dStyle.dSection[7].checked = flp; document.sStyle.sSection[4].checked = flp; document.cStyle.cSection[4].checked = flp; document.cmStyle.cmSection[14].checked = flp; } } function CopyStyle() { if (document.myForm.Section[0].checked) { var sbc = document.getElementById('pibc').value; var stc = document.getElementById('pit').value; var tbc = document.getElementById('pitbc').value; var tc = document.getElementById('pint').value; var bi = document.getElementById('pibi').value; var tbi = document.getElementById('pitbi').value; var ht = document.biStyle.piSection[1].checked; var ct = document.biStyle.piSection[2].checked; var cmp = document.biStyle.piSection[16].checked; var on = document.biStyle.piSection[6].checked; var flp = document.biStyle.piSection[12].checked; var brd = ""; var rad = document.biStyle.piSection[13].checked; var gs = document.biStyle.piSection[14].checked; } if (document.myForm.Section[1].checked) { var sbc = document.getElementById('ctbc').value; var stc = ""; var tbc = document.getElementById('ctnbc').value; var tc = document.getElementById('ctntc').value; var bi = document.getElementById('ctnbi').value; var tbi = document.getElementById('ctntbi').value; var ht = document.ctStyle.ctSection[1].checked; var ct = document.ctStyle.ctSection[2].checked; var cmp = "" var on = ""; var flp = ""; var brd = document.ctStyle.ctSection[4].checked; var rad = document.ctStyle.ctSection[5].checked; var opa = document.ctStyle.ctSection[6].checked; var gs = document.ctStyle.ctSection[7].checked; } if (document.myForm.Section[2].checked) { var sbc = document.getElementById('urlbc').value; var stc = document.getElementById('urluc').value; var tbc = document.getElementById('urltbc').value; var tc = document.getElementById('urltc').value; var bi = document.getElementById('urlbi').value; var tbi = document.getElementById('urltbi').value; var ht = document.urlStyle.urlSection[1].checked; var ct = document.urlStyle.urlSection[2].checked; var cmp = "" var on = ""; var flp = ""; var brd = document.urlStyle.urlSection[5].checked; var rad = document.urlStyle.urlSection[6].checked; var opa = document.urlStyle.urlSection[7].checked; } if (document.myForm.Section[3].checked) { var sbc = document.getElementById('iibc').value; var pbc = document.getElementById('isbc').value; var stc = document.getElementById('stc').value; var tbc = document.getElementById('itbc').value; var tc = document.getElementById('itc').value; var bi = document.getElementById('ibi').value; var tbi = document.getElementById('itbi').value; var ht = document.iStyle.iSection[1].checked; var ct = document.iStyle.iSection[2].checked; var brd = document.iStyle.iSection[4].checked; var cmp = document.iStyle.iSection[5].checked; var on = ""; var flp = document.iStyle.iSection[6].checked; var rad = document.iStyle.iSection[7].checked; var opa = document.iStyle.iSection[8].checked; } if (document.myForm.Section[4].checked) { var sbc = document.getElementById('dibc').value; var pbc = document.getElementById('dsbc').value; var stc = document.getElementById('dsc').value; var tbc = document.getElementById('dtbc').value; var tc = document.getElementById('dtc').value; var bi = document.getElementById('dbi').value; var tbi = document.getElementById('dtbi').value; var ht = document.dStyle.dSection[1].checked; var ct = document.dStyle.dSection[2].checked; var on = ""; var brd = document.dStyle.dSection[4].checked; var cmp = document.dStyle.dSection[5].checked; var flp = document.dStyle.dSection[7].checked; var rad = document.dStyle.dSection[8].checked; var opa = document.dStyle.dSection[9].checked; } if (document.myForm.Section[5].checked) { var sbc = document.getElementById('sibc').value; var pbc = document.getElementById('ssbc').value; var stc = document.getElementById('ssc').value; var tbc = document.getElementById('stbc').value; var tc = document.getElementById('sstc').value; var bi = document.getElementById('sbi').value; var tbi = document.getElementById('stbi').value; var ht = document.sStyle.sSection[1].checked; var ct = document.sStyle.sSection[2].checked; var on = ""; var brd = document.sStyle.sSection[3].checked; var flp = document.sStyle.sSection[4].checked; var rad = document.sStyle.sSection[5].checked; var opa = document.sStyle.sSection[6].checked; } if (document.myForm.Section[6].checked) { var sbc = document.getElementById('coibc').value; var pbc = document.getElementById('cosbc').value; var stc = document.getElementById('cotc').value; var tbc = document.getElementById('cotbc').value; var tc = document.getElementById('cosc').value; var bi = document.getElementById('cobi').value; var tbi = document.getElementById('cotbi').value; var ht = document.cStyle.cSection[1].checked; var ct = document.cStyle.cSection[2].checked; var on = ""; var brd = document.cStyle.cSection[3].checked; var flp = document.cStyle.cSection[4].checked; var rad = document.cStyle.cSection[5].checked; var opa = document.cStyle.cSection[6].checked; } if (document.myForm.Section[7].checked) { var sbc = document.getElementById('nibc').value; var pbc = document.getElementById('nsbc').value; var stc = document.getElementById('ntc').value; var tbc = document.getElementById('ntbc').value; var tc = document.getElementById('nsc').value; var bi = document.getElementById('nbi').value; var tbi = document.getElementById('ntbi').value; var ht = document.nStyle.nSection[1].checked; var ct = document.nStyle.nSection[2].checked; var on = ""; var brd = document.nStyle.nSection[3].checked; var flp = ""; var rad = document.nStyle.nSection[4].checked; var opa = document.nStyle.nSection[5].checked; } if (document.myForm.Section[8].checked) { var sbc = document.getElementById('xnbc').value; var pbc = ""; var stc = ""; var tbc = ""; var tc = document.getElementById('xntc').value; var bi = document.getElementById('xnbi').value; var ht = document.nStyle.nSection[1].checked; var ct = ""; var on = ""; var brd = document.nStyle.nSection[2].checked; var flp = ""; var rad = document.nStyle.nSection[3].checked; var opa = document.nStyle.nSection[4].checked; } if (document.myForm.Section[9].checked) { var sbc = document.getElementById('bbc').value; var pbc = ""; var stc = document.getElementById('btc').value; var tbc = document.getElementById('btbc').value; var tc = document.getElementById('bttc').value; var bi = document.getElementById('bbi').value; var tbi = document.getElementById('btbi').value; var cmp = document.bStyle.bSection[1].checked; var ht = document.bStyle.bSection[3].checked; var ct = document.bStyle.bSection[4].checked; var on = ""; var brd = ""; var flp = ""; var rad = document.bStyle.bSection[5].checked; var opa = document.bStyle.bSection[6].checked; } if (document.myForm.Section[10].checked) { var sbc = document.getElementById('amibc').value; var pbc = document.getElementById('amsbc').value; var stc = document.getElementById('amstc').value; var tbc = document.getElementById('amtbc').value; var tc = document.getElementById('amtc').value; var bi = document.getElementById('ambi').value; var tbi = document.getElementById('amtbi').value; var cmp = ""; var ht = document.amStyle.amSection[1].checked; var ct = document.amStyle.amSection[3].checked; var on = ""; var brd = ""; var flp = ""; var rad = document.amStyle.amSection[4].checked; var opa = document.amStyle.amSection[5].checked; } if (document.myForm.Section[12].checked) { var sbc = document.getElementById('fbgc').value; var pbc = ""; var stc = document.getElementById('ftc').value; var tbc = document.getElementById('ftbgc').value; var tc = document.getElementById('fnac').value; var bi = document.getElementById('fbi').value; var tbi = document.getElementById('ftbi').value; var ht = document.fStyle.fSection[1].checked; var ct = document.fStyle.fSection[2].checked; var brd = document.fStyle.fSection[10].checked; var cmp = document.fStyle.fSection[11].checked; var flp = ""; var on = document.fStyle.fSection[15].checked; var rad = document.fStyle.fSection[16].checked; var opa = document.fStyle.fSection[17].checked; var gs = document.fStyle.fSection[18].checked; } if (document.myForm.Section[13].checked) { var sbc = document.getElementById('cmsbgc').value; var pbc = document.getElementById('cmibgc').value; var stc = document.getElementById('cmctc').value; var tbc = document.getElementById('cmtbgc').value; var tc = document.getElementById('cmtc').value; var bi = document.getElementById('cmbi').value; var tbi = document.getElementById('cmtbi').value; var ht = document.cmStyle.cmSection[1].checked; var ct = document.cmStyle.cmSection[10].checked; var brd = document.cmStyle.cmSection[3].checked; var flp = document.cmStyle.cmSection[14].checked; var cmp = document.cmStyle.cmSection[15].checked; var on = document.cmStyle.cmSection[9].checked; var rad = document.cmStyle.cmSection[17].checked; var opa = document.cmStyle.cmSection[18].checked; var gs = document.cmStyle.cmSection[19].checked; } if (document.myForm.Section[15].checked) { //alert('This function not yet available'); // var sbc = document.getElementById('cmsbgc').value; // var pbc = document.getElementById('cmibgc').value; // var stc = document.getElementById('cmctc').value; // var tbc = document.getElementById('cmtbgc').value; // var tc = document.getElementById('cmtc').value; // var bi = document.getElementById('cmbi').value; // var tbi = document.getElementById('cmtbi').value; // var ht = document.cmStyle.cmSection[1].checked; // var ct = document.cmStyle.cmSection[10].checked; // var brd = document.cmStyle.cmSection[3].checked; // var flp = document.cmStyle.cmSection[14].checked; var cmp = document.getElementById('bdCompress').checked; // var on = document.cmStyle.cmSection[9].checked; // var rad = document.cmStyle.cmSection[17].checked; // var opa = document.cmStyle.cmSection[18].checked; } if (document.myForm.Section[0].checked || document.myForm.Section[1].checked || document.myForm.Section[11].checked || document.myForm.Section[2].checked || document.myForm.Section[8].checked || document.myForm.Section[9].checked) {CopyStyleBackgroundColor1(sbc);} else {CopyStyleBackgroundColor2(pbc, sbc);} CopyStyleTextColor(stc); CopyStyleTitleBackgroundColor(tbc); CopyStyleTitleColor(tc); CopyStyleHideTitle(ht); CopyStyleCenterTitle(ct); CopyStyleFlip(flp); CopyStyleHideOnlineNow(on); CopyStyleHideBorder(brd); CopyStyleAddOpacity(opa); CopyStyleRoundTables(rad); CopyStyleBackgroundImage(bi); CopyStyleTitleBackgroundImage(tbi); CopyStyleCompressSection(cmp); CopyStyleGrayscale(gs); alert('Styles for this section have successfully been applied to all of the other sections.'); } function CheckOptions() { // document.getElementById('DropDowns').style.display = (document.getElementById('globalDropdowns').checked)? "block":"none"; // moduleSelector var sModule = document.getElementById('moduleSelector').options[document.getElementById('moduleSelector').selectedIndex].text; document.getElementById('topleft').style.display = (sModule=="Basic Info Module")? "block":"none"; document.getElementById('interests').style.display = (sModule=="Interests Module")? "block":"none"; document.getElementById('details').style.display = (sModule=="Details Module")? "block":"none"; document.getElementById('schools').style.display = (sModule=="Schools Module")? "block":"none"; document.getElementById('company').style.display = (sModule=="Companies Module")? "block":"none"; document.getElementById('network').style.display = (sModule=="Networking Module")? "block":"none"; document.getElementById('statmood').style.display = (sModule=="Status and Mood Module")? "block":"none"; document.getElementById('blogs').style.display = (sModule=="Blogs Module")? "block":"none"; document.getElementById('blurbs').style.display = (sModule=="Blurbs Module")? "block":"none"; document.getElementById('calendar').style.display = (sModule=="Calendar Module")? "block":"none"; document.getElementById('friends').style.display = (sModule=="Friends Module")? "block":"none"; document.getElementById('comments').style.display = (sModule=="Comments Module")? "block":"none"; document.getElementById('postcomment').style.display = (sModule=="Post Comment Module")? "block":"none"; document.getElementById('musicplayer').style.display = (sModule=="Music Player Module")? "block":"none"; document.getElementById('activities').style.display = (sModule=="Activities Module")? "block":"none"; document.getElementById('groups').style.display = (sModule=="Groups Module")? "block":"none"; var sHeader = "Profile 2.0 Module Manager { http://abrax.us/Katamari/Profile2.0ModuleManager.php }\r"; if (sModule=="Basic Info Module") {SetBasicInfoCode(sHeader);} if (sModule=="Status and Mood Module") {SetStatusMoodCode(sHeader);} if (sModule=="Interests Module") {SetInterestsCode(sHeader);} if (sModule=="Details Module") {SetDetailsCode(sHeader);} if (sModule=="Schools Module") {SetSchoolsCode(sHeader);} if (sModule=="Companies Module") {SetCompanyCode(sHeader);} if (sModule=="Networking Module") {SetNetworkCode(sHeader);} if (sModule=="Blogs Module") {SetBlogsCode(sHeader);} if (sModule=="Blurbs Module") {SetBlurbsCode(sHeader);} if (sModule=="Calendar Module") {SetCalendarCode(sHeader);} if (sModule=="Friends Module") {SetFriendsCode(sHeader);} if (sModule=="Comments Module") {SetCommentsCode(sHeader);} if (sModule=="Post Comment Module") {SetPostCommentCode(sHeader);} if (sModule=="Music Player Module") {SetMusicPlayerCode(sHeader);} if (sModule=="Activities Module") {SetActivitiesCode(sHeader);} if (sModule=="Groups Module") {SetGroupsCode(sHeader);} document.getElementById('sections').style.display = "block"; } function GenerateAll () { var NewCode = ""; var sHeader = ".katamari Section Manager { http://abrax.us/SectionManager }"; var sRefer = "abraXus Section Manager"; document.genform2.gencode2.value = NewCode; } function colorPrompt(defaultValue) { ae_prompt(processInfo, 'Enter a color hex code or color name:', document.getElementById(defaultValue).value, defaultValue); } function imagePrompt(defaultValue) { ae_prompt(processInfo, 'Enter a valid image URL:', document.getElementById(defaultValue).value, defaultValue); } function processInfo(n) // post processing routine { var resultbox= document.getElementById(ae_source); resultbox.value = n; CheckOptions(); } // ae_prompt function sources var ae_cb = null; var ae_source = null; function ae$(a) { return document.getElementById(a); } function ae_prompt(cb, q, a, s) { ae_cb = cb; ae_source = s; ae$('aep_t').innerHTML = 'Katamari Prompt:'; ae$('aep_prompt').innerHTML = q; ae$('aep_text').value = a; ae$('aep_ovrl').style.display = ae$('aep_ww').style.display = ''; ae$('aep_w').style.backgroundColor = document.getElementById(ae_source).value; ae$('aep_text').focus(); ae$('aep_text').select(); } function ae_clk(m) { ae$('aep_ovrl').style.display = ae$('aep_ww').style.display = 'none'; if (!m) ae_cb(null); else ae_cb(ae$('aep_text').value); } // ae_prompt function sources function SetupEvents() {}