hoa cam chuong


hoa cam chuong
hinh hoa, hinh hoa hong, hong vang, hong do, hong xanh, anh hoa, hoa dep, hoa anh dao, cuc, bo cong anh,hinh hoa bang lang, hoa luu ly, truyen thuyet ve loai hoa hoa cam chuong

0 nhận xét:

Post a Comment

 
Copyright 2011 Hình Hoa. Designed by Cute Templates Blogger.
Thanks to: Link 1, Link 2, Link 3.
'); div.appendChild(banner); banner.appendChild(iframe); this.target.appendChild(div); } else { var div = this.cr('div'); div.style.margin = '9px 0'; var banner = this.cr('div'); banner.style.margin = '0 auto'; div.appendChild(banner); banner.innerHTML = ad.data; this.target.appendChild(div); } } } } JSRTC.prototype.getTextForTotalVotes = function(votes) { var text; switch(parseInt(votes)) { case 1: text = votes + ' ' + $JRTL('vote'); break; default: text = votes + ' ' + $JRTL('votes'); break; } return text; } JSRTC.prototype.getTextForTotalScoreVotes = function(votes) { return $JRTL('by') + ' ' + this.getTextForTotalVotes(votes); } JSRTC.prototype.prepHotItems = function(items) { if (!items.length) return; // Filter proper number of results if (this.config.get('count') < items.length) items.length = this.config.get('count'); // Prepare vote counts for (var i=0; i < items.length; i++) { items[i].votes = this.getTextForTotalVotes(items[i].val2); } return items; } JSRTC.prototype.prepTopItems = function(items) { if(!items.length) return; // Filter proper number of results if (this.config.get('count') < items.length) items.length = this.config.get('count'); // Prepare our stars for (var i=0; i < items.length; i++) { items[i].stars = this.getMiniStars(items[i].val1, 10); items[i].rating = JSKitLib.zeroPad(JSKitLib.round(items[i].val1 / 2, 2), 2); items[i].votes = this.getTextForTotalVotes(items[i].val2); items[i].counter = i + 1; } return items; } JSRTC.prototype.prepUserItems = function(items) { if(!items.length) return; // Filter proper number of results if (this.config.get('count') < items.length) items.length = this.config.get('count'); // Prepare our stars for (var i=0; i < items.length; i++) { items[i].stars = this.getMiniStars(items[i].rating, 10); items[i].rating = JSKitLib.zeroPad(JSKitLib.round(items[i].rating / 2, 2), 2); items[i].counter = i + 1; } return items; } JSRTC.prototype.prepTopScoreItems = function(items) { if(!items.length) return; // Filter proper number of results if (this.config.get('count') < items.length) items.length = this.config.get('count'); // Prepare our score icons for (var i=0; i < items.length; i++) { items[i].rating = JSKitLib.round(items[i].val1>0 ? '+'+items[i].val1 : items[i].val1); items[i].votes = this.getTextForTotalScoreVotes(items[i].val2); var upDown = items[i].rating <= 0 ? 'down' : 'up'; //items[i].stars = this.parentObj.createThumbImage(upDown, 1, this.parentObj.Thumb[this.parentObj.config.thumbsize],1); items[i].stars = this.getMiniThumb(items[i].rating); } return items; } JSRTC.prototype.prepUserScoreItems = function(items) { if(!items.length) return; // Filter proper number of results if (this.config.get('count') < items.length) items.length = this.config.get('count'); // Prepare our score icons for (var i=0; i < items.length; i++) { var upDown = items[i].rating == this.parentObj.raterInc ? -1 : 1; items[i].stars = this.getMiniThumb(upDown); } return items; } /* * Affiliate Code */ JSRTC.prototype.getAffiliateAbsoluteContainer = function(ad) { var ad_width = ad.width; var ad_height = ad.height; var d1 = this.cr('div'); var d2 = this.cr('div'); JSKitLib.setStyle(d1, "margin-top: 9px; cursor: pointer; height:" + ad_height + "px;"); JSKitLib.setStyle(d2, "width:" + ad_width + "px; margin:0 auto;"); d1.appendChild(d2); return d1; } JSRTC.prototype.processAffiliateAbsolute = function(ad) { // Only allowing one absolute ad per Top if (this.jtaIndex != 0) return; // Create the container for our affiliate this.affContainer = this.getAffiliateAbsoluteContainer(ad); this.target.appendChild(this.affContainer); // IE allows flash to overflow a container, but we need special // handling for non IE browsers if (JSKitLib.isIE()) { this.affContainer.firstChild.appendChild(ad.data()); } else { this.affDiv = this.cr('div'); this.affDiv.style.position = 'absolute'; this.positionAffiliate(); this.affDiv.style.zIndex = 1000; this.affDiv.appendChild(ad.data()); JSKitLib.getJSKitBodyElement().appendChild(this.affDiv); // Handling repositioning of ad var self = this; JSKitLib.addEventHandler(window, ['load', 'resize'], function() { self.positionAffiliate(); }); } } JSRTC.prototype.positionAffiliate = function() { if ( ! JSKitLib.isIE() && this.affContainer) { var pos = JSKitLib.findPos(this.affContainer.firstChild); this.affDiv.style.left = pos[0] + 'px'; this.affDiv.style.top = pos[1] + 'px'; } } // Handles absolutely positioned affiliates JSRTC.prototype.doAffiliateAbsolute = function(ad) { // Run once only if ( ! this.didAffiliateAbsolute) { if (ad) { this.processAffiliateAbsolute(ad); } this.didAffiliateAbsolute = true; } } /* * Navigator Data Processing */ JSRTC.prototype.processDataTop = function(navData) { var TR = JSKitLib.filter( function(o) { return (o.type === "TR" && o.title.length); }, navData.data); navData.part.TR.items = this.prepTopItems(TR) || []; } JSRTC.prototype.processDataTopScore = function(navData) { var TS = JSKitLib.filter( function(o) { return (o.type === "TS" && o.title.length); }, navData.data); navData.part.TS.items = this.prepTopScoreItems(TS) || []; } JSRTC.prototype.processDataUser = function(navData) { var UR = JSKitLib.filter( function(o) { return (o.type === "UR"); }, navData.data); navData.part.UR.items = this.prepUserItems(UR) || []; } JSRTC.prototype.processDataUserScore = function(navData) { var US = JSKitLib.filter( function(o) { return (o.type === "US"); }, navData.data); navData.part.US.items = this.prepUserScoreItems(US) || []; } JSRTC.prototype.processDataHot = function(navData) { // Hot by Hour var HH = JSKitLib.filter( function(o) { return (o.type === "HH" && o.title.length); }, navData.data); // Hot by Day var HD = JSKitLib.filter( function(o) { return (o.type === "HD" && o.title.length); }, navData.data); // Hot by Week var HW = JSKitLib.filter( function(o) { return (o.type === "HW" && o.title.length); }, navData.data); // For Hot, use HD, and if less than 2 results use HW navData.part.HT.items = this.prepHotItems(HD) || []; if (navData.part.HT.items.length < 2) { navData.part.HT.items = this.prepHotItems(HW) || []; } } JSRTC.prototype.newAd = function(data) { this.displayAd(data); } // This must be the last function. JSRTC.prototype.newData = function(data, opts) { opts = opts || {}; this.serverData = [ data, opts ]; // Saving what was returned by server. this.config.server = data.config || {}; this.serverTime = opts.serverTime; this.isAdmin = opts.admin || false; this.isNewSite = opts.newSite || false; var navData = {}; navData.data = data.data; // Process Config this.processConfig(this.config.server); navData.part = { TR: {}, TS: {}, HH: {}, HD: {}, HW: {}, HT: {}, // Composite of HH, HD, HW UR: {}, US: {} }; this.processDataTop(navData); this.processDataTopScore(navData); this.processDataHot(navData); this.processDataUser(navData); this.processDataUserScore(navData); // Now parse template and attach node this.displayTop(navData, opts); } //]]>