/* Kyle: Write your own code, this belongs to True Site. Thanks! */
/***********************************************************************
  *                    THIS IS NOT OPEN SOURCE CODE
  * ALL CODE AND IMAGES ON THIS WEBSITE ARE THE PROPERTY OF TRUE SITE
  * CORPORATION, 2100 ROSWELL RD #200C, MARIETTA GA. 30062 AND ITS
  * LICENSORS, AND ARE PROTECTED BY COPYRIGHT, TRADEMARK AND OTHER
  * INTELLECTUAL PROPERTY LAWS.  
  * YOU MAY NOT OTHERWISE USE, REPRODUCE, COPY, DOWNLOAD, STORE,
  * POST, SELL, DISTRIBUTE OR PUBLISH THE CODE AND IMAGES CONTAINED
  * WITHIN, EXCEPT WITH THE EXPRESS WRITTEN CONSENT OF TRUE SITE
  * CORPORATION, MARIETTA, GEORGIA.
  * ANY SUCH ACTIONS ARE STRICTLY PROHIBITED.
  * COPYRIGHT 2009, TRUE SITE CORPORATION, MARIETTA, GEORGIA.
***********************************************************************/
function changeOpac(b,c){var a=document.getElementById(c).style;a.opacity=(b/100);a.MozOpacity=(b/100);a.KhtmlOpacity=(b/100);a.filter="alpha(opacity="+b+")"}function opacity(h,e,a,c,g){var d=Math.round(c/100);var f=0;if(e>a){for(var b=e;b>=a;b--){setTimeout("changeOpac("+b+",'"+h+"')",(f*d));if(g&&b==a){setTimeout(function(){g()},(f*d))}f++}}else{if(e<a){for(var b=e;b<=a;b++){setTimeout("changeOpac("+b+",'"+h+"')",(f*d));if(g&&b==a){setTimeout(function(){g()},(f*d))}f++}}}}function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}}addLoadEvent(function(){var j=document.getElementById("time-remaining");if(j){var a=j.parentNode;a.style.position="relative";a.style.display="block";var k=document.createElement("div"),p=document.createElement("div"),r=document.createElement("div"),b=document.createElement("div"),s=new Image(255,110),l=new Image(14,14),t=new Array(),f=undefined,m=/(.+MSIE )(\d+)\.(\d+)(;.+)/,n=m.test(navigator.userAgent),q=parseInt(navigator.userAgent.replace(m,"$2"));k.setAttribute("id","price-tag");p.setAttribute("id","price-tag-inner");r.setAttribute("id","price-tag-amount");b.setAttribute("id","price-tag-time");l.setAttribute("id","sale-close-btn");l.setAttribute("title","Click to close");l.src="/images/close_button.jpg";p.appendChild(r);p.appendChild(b);p.appendChild(l);k.appendChild(p);a.appendChild(k);var h=j.innerText||j.textContent;var o=/^.+?(\d+%).+?(\$[.\d]+).+?(?:(\d+)\s+days?.*?)?(?:(\d+)\s+hours?.*?)?(?:(\d+)\s+minutes?.*?)?(\d+)\s+seconds?.*?$/mg;var d=h.replace(o,"$1");var g=h.replace(o,"$2");j.parentNode.removeChild(j);r.innerHTML=d+" / <strong>"+g+"</strong>";t.push(parseInt(h.replace(o,"$3")));t.push(parseInt(h.replace(o,"$4")));t.push(parseInt(h.replace(o,"$5")));t.push(parseInt(h.replace(o,"$6")));if(isNaN(t[0])){t[0]=0}if(isNaN(t[1])){t[1]=0}if(isNaN(t[2])){t[2]=0}if(isNaN(t[3])){t[3]=0}var i=function(){l.onclick=null;p.onmouseover=null;p.onmouseout=null;l.style.cursor="default";l.style.display="none";if(f){clearTimeout(f)}if(n){k.style.display="none"}else{opacity("price-tag",100,0,350,function(){k.parentNode.removeChild(k)})}};var c=function(){l.onclick=i;p.onmouseover=function(){document.getElementById("sale-close-btn").style.display="inline"};p.onmouseout=function(){document.getElementById("sale-close-btn").style.display="none"}};var e=function(){if(t[3]==0){t[3]=59;if(t[2]==0){t[2]=59;if(t[1]==0){t[1]=23;if(t[0]==0){i();return}else{t[0]-=1}}else{t[1]-=1}}else{t[2]-=1}}else{t[3]-=1}b.innerHTML="<strong>"+t[0]+"</strong>D <strong>"+t[1]+"</strong>H <strong>"+t[2]+"</strong>M <strong>"+t[3]+"</strong>S";f=setTimeout(e,1000)};s.onload=function(){e();if(n){k.style.display="block";try{if(q<=6){DD_belatedPNG.fixPng(k)}}catch(u){}c()}else{changeOpac(0,"price-tag");k.style.display="block";opacity("price-tag",0,100,350,c)}};s.src="/images/price_tag.png"}});
