function changeCss(B,A){document.getElementById(B).className=A}function changeCssOut(B,A){document.getElementById(B).className=A}function showEditProfile(){document.getElementById("globalForm").editProfile.value="editProfile";document.getElementById("globalForm").action=HOST_ROOT_PATH_HTTPS_VAR+"/UserRegistration/";document.getElementById("globalForm").submit()}function browseFaq(D,C,E){var B=E.split(" ");var A="";if(B.length>1){for(i=0;i<B.length;i++){if(i==0){A=B[i]}else{A=A+"-"+B[i]}}}else{A=E}$("#faqCatID").attr("value",D);$("#faqID").attr("value",C);$("#globalForm").attr("action",HOST_ROOT_PATH_VAR+"FAQ/"+A+"/");$("#globalForm").submit()}function ourCrowd(){document.globalForm.ourCrowdHidden.value="ourCrowd";document.globalForm.action=HOST_ROOT_PATH_VAR+"our-crowd/";document.globalForm.submit()}function buyNow(){document.BuyNowFrm.action=HOST_ROOT_PATH_VAR+"Buy-Now/";document.BuyNowFrm.submit()}$(document).ready(function(){colorFade=function(B,A,C){return((B>>16)+((A>>16)-(B>>16))*C)<<16|(B>>8&255)+((A>>8&255)-(B>>8&255))*C<<8|(B&255)+((A&255)-(B&255))*C};var segments=document.getElementById("globalForm").segments.value;var hex1=$("#hex1").val();var hex2=$("#hex2").val();var colorCode="";for(var i=0;i<segments;i++){if(colorCode==""){colorCode=colorFade(hex1,hex2,i/segments).toString(16)}else{colorCode=colorCode+","+colorFade(hex1,hex2,i/segments).toString(16)}}document.getElementById("globalForm").colorCode.value=colorCode});
