Valtrex 1 Gram Cost
5-5 stars based on
429 reviews
Valtrex is used for treating shingles (herpes zoster), cold sores (fever blisters or herpes labialis), and treating, suppressing, or reducing transmission of genital herpes in patients with normal immune systems.
Valtrex generic cost without insurance. The doctor will then tell you how to pay for your prescription. You will then pay $100 for the generic.
This way you can save a lot of money if you do not have insurance. If you coverage on your insurance and prescription is covered by your policy, you may be able to save a bit more. You can purchase an insurance plan with a discount to your prescription drugs. If insurance company covers the cost of your prescriptions, you get more value at the pharmacy.
To find out more information on what discounts and cost-sharing are available for prescription drugs from a participating pharmacy, please visit the Patient Assistance Website. The first time it happened with my dad, was the worst day of my entire life.
I was in a cab with my dad and I was feeling awful. I'd been struggling and feeling depressed. then my friend asked me to get her some drinks and we went through all the stages of an alcohol hangover.
In the morning, I felt
Discount viagra online uk bad, and woke up to the worst hangover – shaking and nauseous all over. I was going to a fancy lunch but couldn't get myself to go. So I fell asleep to the sound of everyone making loud, vulgar jokes about me in the kitchen. next day I was back in bed. had a full-blown panic attacks. And on Tuesday, I got sick to my stomach and vomited.
My dad thought I was going insane.
But there was one day where all the other days made no sense. One day in particular when all of my anxiety and depression feelings of worthlessness were finally coming to a head. I had been given a call out of nowhere from a well-heeled New York City executive who had heard that I was writing a book – about being feminist entrepreneur in the age of Trump.
Story continues below advertisement
He wanted to talk about the election.
At first, I didn't want to talk about the election. It was a momentary thing to latch onto. My dad knew I wasn't thinking about politics, so I didn't want to talk about it. That was the first step into vortex. conversation went like this:
Me: Wow.
Executive: You know why they keep winning? price of valtrex 500mg Because Hillary won.
Me: What?
Executive: Hillary.
Me: No.
Executive: Why?
Me: Because she talked about women like they were things. I could barely say "vagina" without my friends thinking I was some kind of sex-positive extremist.
Executive: … And that was the best part.
Me: They said it.
Executive: That's why they won. She made it about them. And was so disgusting. she wouldn't say "he." "We all should use the word 'he.'" It was disgusting. But …
Me: … What?
Executive: She would only call him "him." She didn't say "he" or "him." She only said "he." This was the most vile part of it.
Me: Really? So what? I didn't even see him come in, but you said it was the best part.
Executive: I was right. You needed to know. This was Hillary Clinton, and she made it about women like they were things. That's not OK.
Dieburg
Giengen an der Brenz
Valtrex Nabburg
Osthofen
Vallendar
generic valtrex price
valtrex tablets price
valtrex 500mg price
Valtrex 1000mg $305.18 - $5.09 Per pill Valtrex 1000mg $430.85 - $4.79 Per pill Valtrex 500mg $188.86 - $3.15 Per pill Valtrex 500mg $268.77 - $2.99 Per pill Valtrex 500mg $348.67 - $2.91 Per pill
Valtrex for cold sores price : $100.00 Our Price: $66.75
Rituximab for herpes zoster treatment price: $66.75 Our
The 2nd Line in Vitro Cellular Therapy - This is price of valtrex without insurance your second line for cellular therapy. It is a very broad term. We sell only that which has FDA approval for one way use alone. All other products are tested in some way (a topical, oral), this line, though approved, is not tested for use alone and should not be used if you have an alternative in the work place. When combined with a corticosteroid (or another med, but the 2nd line alone has very little risk of side-effects if used correctly), this line will reduce the swelling around your bite sites, the pain in injection site, and the general symptoms of herpes zoster and other viral infections. It will help with the itching, swelling, and dryness that you may experience in the injection area. 2nd line alone and valtrex 500 mg cost the vaccine combination can be started at any time and will not affect your therapy. See our 2nd line in Vitro Cellular Therapy page for more details. This cell line is the standard of care in Europe, Japan and other places that use it to treat severe herpes infections.
This line has very little side-effects, though they have been known, and is quite safe, as long the doctors giving you 2nd line do their homework and follow the dosage that FDA says it must be taken each time. For herpes infection where the initial skin lesions are in the mouth, sore from that is extremely painful.
This line works well as a first line treatment, with small amount of additional therapy for secondary flare ups. In some cases, this line may be used to help treat the recurrence of herpes outbreaks. More common is use of the 2nd line only for treatment of herpes outbreaks in the skin and mouth.
Rituximab is not to be taken for longer than 6 months or to pregnant woman.
HIV Infection
HIV infection is a great concern for many people who come back from trips to another country. We have a strong desire to help everyone get rid of viral infection so we carry more products than anyone else longs drug store kihei hawaii at no extra cost for travel to foreign countries where HIV infections occur. Many people on here have traveled to Africa, India, Europe and Asia without problems. But when you arrive back in the U. S. (and we've been to over 100 countries) you must take extra precautions to fight back against all possible viral infections.
HIV antibody therapy can treat the spread of HIV infection, though it cannot cure HIV or prolong the life of untreated HIV.
HIV is a bacteria, not virus. healthy immune system should fight it to viruses and bacteria.
HIV antibodies used at home in many ways are different than those used on site at clinics. Our HIV antibodies can be taken orally, injected (via syringe and injection needle, with a shot in most locations), used a topical emollient, applied for internal purposes, to cuts by hand, valtrex tablets 500mg price sprayed (via spray bottle), or even injected into your veins (using the local anesthetic, only one we have), or administered as an IV. Here's a very brief list of which therapy is the best to use: IV
Spray
IV
Syringe
IP
Syringe With an IV (IM) (injection)
Syringe With an IV/IV/IP (an injectable emollient is not available at your local pharmacy yet, but we are seeing an increase in local retailers stocking it. See our section on local emollients in the FAQ)
Syringe A combination of 2 different doses should be used - the combination can last anywhere from 2 to 72 hours, depending on the patient. Usually injection can be taken on off-day with a shot after the dose is over for no further side effects or for any long-lasting side-effects. There can be temporary side-effects with all of these treatments and we strongly recommend each therapy be used only by its recommended patient for duration of time. the most part, in United States, it is recommended to start any new topical emollient at the same time or shortly after every visit to the clinic or health clinic. most common side-effects are dry mouth, occasional itchiness, pain or tenderness, fever, headache, abdominal discomfort, and joint muscle soreness. Usually all conditions will improve or go away in a few days unless they are serious and require proper treatment. They are extremely rare, if not entirely uncommon. you have a problem with topical emollient, talk to your doctor.
Valtrex in Tallahassee Valtrex in West jordan Valtrex in Newcastle Valtrex in Mont. Valtrex in Orange Valtrex in Waterbury
Mahlberg Neukirchen-Vluyn
Woodbur Martinsburg
Merrick East Dennis
125.00€
Lisa korvi
Tammepuidust kapp Angel, pruun (Bloomingville)
1799.00€
Lisa korvi
Bambusest kohvilaud Carolina, must (Bloomingville)
149.00€
Lisa korvi
Tammepuidust söögilaud Raw 200x99cm (Bloomingville)
1999.00€
Lisa korvi
Metallist seinariiul Carly Shelf 66x61cm, messing (Bloomingville)
195.00€
Lisa korvi
Metallist disainriiul Ves Shelf 60x103cm, must (Bloomingville)
249.00€
Lisa korvi
Metallist disainriiul Lot Rack 100x200cm, must (Bloomingville)
669.00€
Lisa korvi
Meigilaud Manon, naturaalne, mänd (Bloomingville)
819.00€
Lisa korvi
Metallist konsoollaud Harper, must (Bloomingville)
299.00€
Lisa korvi
Metallist abilaud Cher, hall (Bloomingville)
229.00€
Lisa korvi
(Õue)diivan Mundo, must (Bloomingville)
1049.00€
Lisa korvi
Betoonist kohvilaud Mundo, hall (Bloomingville)
369.00€
Lisa korvi
Punutud korv kaanega Heise, naturaalne (Bloomingville)
125.00€
Lisa korvi
Puidust söögitool Vitus, naturaalne (Bloomingville)
619.00€
Lisa korvi
Rotang tool Lake Lounge, naturaalne (Bloomingville)
315.00€
Lisa korvi
Puidust kapp Mariana 85x180cm, naturaalne (Bloomingville)
999.00€
Lisa korvi
Puidust kapp Sanna 90x120cm, naturaalne (Bloomingville)
799.00€
Lisa korvi
Rotang kapp Otto, naturaalne (Bloomingville)
259.00€
Lisa korvi
Rotang söögitool Kitty, naturaalne (Bloomingville)
399.00€
Lisa korvi
Rotang kohvilaud Hattie, must (Bloomingville)
289.00€
Lisa korvi
Rotang tool Amira Lounge, naturaalne (Bloomingville)
459.00€
Lisa korvi
Tugitool Ellen Lounge, hall (Bloomingville)
799.00€
Lisa korvi
Rotang tool Baz Lounge, must (Bloomingville)
329.00€
Lisa korvi
Rotang tool Baz Lounge, naturaalne (Bloomingville)
329.00€
Lisa korvi
Abilaud Abebe Ø30cm, elevandiluu (Bloomingville)
219.00€
Lisa korvi
Abilaud Deva, naturaalne (Bloomingville)
219.00€
Lisa korvi
Allahindlus!
Hea sõnumiga padi “Ema-naine-boss”
35.00€ 29.90€ Säästad: 5.10€ (14.6%)
Lisa korvi
Allahindlus!
Hea sõnumiga padi “Isa-mees-boss”
35.00€ 29.90€ Säästad: 5.10€ (14.6%)
Lisa korvi
Puuvillane põll sõnumiga “Unista, avasta” MUST
24.90€
Lisa korvi
Puuvillane põll sõnumiga “Kõhulihased algavad köögist” MUST
24.90€
Lisa korvi
Istepink panipaigaga Abelone, must (Bloomingville)
469.00€
Lisa korvi
Kinkekomplekt “EMA-ISA” (sõnumiga põll emale ja isale)
44.90€
Lisa korvi
Puuvillane põll sõnumiga “Isa-mees-boss”
24.90€
Lisa korvi
Puuvillane põll sõnumiga “Ema-naine-boss”
24.90€
Lisa korvi
Allahindlus!
Sõnumiga köögirätik “Unista-avasta” must
22.90€ 14.90€ Säästad: 8.00€ (34.9%)
Lisa korvi
Poekott hea sõnumiga “Ilusad tüdrukud” (must)
16.90€
Lisa korvi
'+
''+
(opts.paragraph1 === '' ? '' : '
'+opts.paragraph1+'
')+
(opts.paragraph2 === '' ? '' : '
'+opts.paragraph2+'
');
if (opts.browserShow) {
html += '
';
var displayNum = 0;
// Generate the browsers to display
for (var x in opts.display) {
var browser = opts.display[x]; // Current Browser
var info = opts.browserInfo[browser] || false; // Browser Information
// If no info exists for this browser
// or if this browser is not suppose to display to this user
if (!info || (info['allow'] != undefined && !browserCheck(info['allow']))) {
continue;
}
var url = info.url || '#'; // URL to link text/icon to
// Generate HTML for this browser option
html += '
'+
' ';
++displayNum;
}
html += ' ';
}
// Close list and #jr_list
html += '
'+
// Display close links/message if set
(opts.close ? '
'+opts.closeLink+' '+
'
'+opts.closeMessage+'
' : '')+'
'+
// Close #jr_inner and #jr_wrap
'
';
var element = $('
'+html+'
'); // Create element
var size = _pageSize(); // Get page size
var scroll = _scrollSize(); // Get page scroll
// This function handles closing this reject window
// When clicked, fadeOut and remove all elements
element.bind('closejr', function() {
// Make sure the permission to close is granted
if (!opts.close) {
return false;
}
// Customized Function
if ($.isFunction(opts.beforeClose)) {
opts.beforeClose();
}
// Remove binding function so it
// doesn't get called more than once
$(this).unbind('closejr');
// Fade out background and modal wrapper
$('#jr_overlay,#jr_wrap').fadeOut(opts.fadeOutTime,function() {
$(this).remove(); // Remove element from DOM
// afterClose: Customized Function
if ($.isFunction(opts.afterClose)) {
opts.afterClose();
}
});
// Show elements that were hidden for layering issues
var elmhide = 'embed.jr_hidden, object.jr_hidden, select.jr_hidden, applet.jr_hidden';
$(elmhide).show().removeClass('jr_hidden');
// Set close cookie for next run
if (opts.closeCookie) {
_cookie(COOKIE_NAME, 'true');
}
return true;
});
// Tracks clicks in Google Analytics (category 'External Links')
// only if opts.analytics is enabled
var analytics = function (url) {
if (!opts.analytics) return false;
// Get just the hostname
var host = url.split(/\/+/g)[1];
// Send external link event to Google Analaytics
// Attempts both versions of analytics code. (Newest first)
try {
// Newest analytics code
_gaq.push(['_trackEvent', 'External Links', host, url]);
} catch (e) {
try {
// Older analytics code
pageTracker._trackEvent('External Links', host, url);
} catch (e) { }
}
};
// Called onClick for browser links (and icons)
// Opens link in new window
var openBrowserLinks = function(url) {
// Send link to analytics if enabled
analytics(url);
// Open window, generate random id value
window.open(url, 'jr_'+ Math.round(Math.random()*11));
return false;
};
/*
* Trverse through element DOM and apply JS variables
* All CSS elements that do not require JS will be in
* css/jquery.jreject.css
*/
// Creates 'background' (div)
element.find('#jr_overlay').css({
width: size[0],
height: size[1],
background: opts.overlayBgColor,
opacity: opts.overlayOpacity
});
// Wrapper for our pop-up (div)
element.find('#jr_wrap').css({
top: scroll[1]+(size[3]/4),
left: scroll[0]
});
// Wrapper for inner centered content (div)
element.find('#jr_inner').css({
minWidth: displayNum*100,
maxWidth: displayNum*140,
// min/maxWidth not supported by IE
width: $.layout.name == 'trident' ? displayNum*155 : 'auto'
});
element.find('#jr_inner li').css({ // Browser list items (li)
background: 'transparent url("'+opts.imagePath+'background_browser.gif")'+
'no-repeat scroll left top'
});
element.find('#jr_inner li .jr_icon').each(function() {
// Dynamically sets the icon background image
var self = $(this);
self.css('background','transparent url('+opts.imagePath+'browser_'+
(self.parent('li').attr('id').replace(/jr_/,''))+'.gif)'+
' no-repeat scroll left top');
// Send link clicks to openBrowserLinks
self.click(function () {
var url = $(this).next('div').children('a').attr('href');
openBrowserLinks(url);
});
});
element.find('#jr_inner li a').click(function() {
openBrowserLinks($(this).attr('href'));
return false;
});
// Bind closing event to trigger closejr
// to be consistant with ESC key close function
element.find('#jr_close a').click(function() {
$(this).trigger('closejr');
// If plain anchor is set, return false so there is no page jump
if (opts.closeURL === '#') {
return false;
}
});
// Set focus (fixes ESC key issues with forms and other focus bugs)
$('#jr_overlay').focus();
// Hide elements that won't display properly
$('embed, object, select, applet').each(function() {
if ($(this).is(':visible')) {
$(this).hide().addClass('jr_hidden');
}
});
// Append element to body of document to display
$('body').append(element.hide().fadeIn(opts.fadeInTime));
// Handle window resize/scroll events and update overlay dimensions
$(window).bind('resize scroll',function() {
var size = _pageSize(); // Get size
// Update overlay dimensions based on page size
$('#jr_overlay').css({
width: size[0],
height: size[1]
});
var scroll = _scrollSize(); // Get page scroll
// Update modal position based on scroll
$('#jr_wrap').css({
top: scroll[1] + (size[3]/4),
left: scroll[0]
});
});
// Add optional ESC Key functionality
if (opts.closeESC) {
$(document).bind('keydown',function(event) {
// ESC = Keycode 27
if (event.keyCode == 27) {
element.trigger('closejr');
}
});
}
// afterReject: Customized Function
if ($.isFunction(opts.afterReject)) {
opts.afterReject();
}
return true;
};
// Based on compatibility data from quirksmode.com
var _pageSize = function() {
var xScroll = window.innerWidth && window.scrollMaxX ?
window.innerWidth + window.scrollMaxX :
(document.body.scrollWidth > document.body.offsetWidth ?
document.body.scrollWidth : document.body.offsetWidth);
var yScroll = window.innerHeight && window.scrollMaxY ?
window.innerHeight + window.scrollMaxY :
(document.body.scrollHeight > document.body.offsetHeight ?
document.body.scrollHeight : document.body.offsetHeight);
var windowWidth = window.innerWidth ? window.innerWidth :
(document.documentElement && document.documentElement.clientWidth ?
document.documentElement.clientWidth : document.body.clientWidth);
var windowHeight = window.innerHeight ? window.innerHeight :
(document.documentElement && document.documentElement.clientHeight ?
document.documentElement.clientHeight : document.body.clientHeight);
return [
xScroll 9.27) ? 'futhark' : 'linear_b';
}
r.versionNumber = parseFloat(r.version, 10) || 0;
var minorStart = 1;
if (r.versionNumber 9) {
minorStart = 2;
}
r.versionX = (r.version !== x) ? r.version.substr(0, minorStart) : x;
r.className = r.name + r.versionX;
return r;
};
a = (/Opera|Navigator|Minefield|KHTML|Chrome|CriOS/.test(a) ? m(a, [
[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/, ''],
['Chrome Safari', 'Chrome'],
['CriOS', 'Chrome'],
['KHTML', 'Konqueror'],
['Minefield', 'Firefox'],
['Navigator', 'Netscape']
]) : a).toLowerCase();
$.browser = $.extend((!z) ? $.browser : {}, c(a,
/(camino|chrome|crios|firefox|netscape|konqueror|lynx|msie|opera|safari)/,
[],
/(camino|chrome|crios|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));
$.layout = c(a, /(gecko|konqueror|msie|opera|webkit)/, [
['konqueror', 'khtml'],
['msie', 'trident'],
['opera', 'presto']
], /(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);
$.os = {
name: (/(win|mac|linux|sunos|solaris|iphone|ipad)/.
exec(navigator.platform.toLowerCase()) || [u])[0].replace('sunos', 'solaris')
};
if (!z) {
$('html').addClass([$.os.name, $.browser.name, $.browser.className,
$.layout.name, $.layout.className].join(' '));
}
};
$.browserTest(navigator.userAgent);
}(jQuery));
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend( jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
},
easeInQuad: function (x, t, b, c, d) {
return c*(t/=d)*t + b;
},
easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=d)*(t-2) + b;
},
easeInOutQuad: function (x, t, b, c, d) {
if ((t/=d/2) ',
// line-height is conditionally included because IE7/IE8/old Opera do not return the correct value.
typographyStyles = [
'fontFamily',
'fontSize',
'fontWeight',
'fontStyle',
'letterSpacing',
'textTransform',
'wordSpacing',
'textIndent'
],
// to keep track which textarea is being mirrored when adjust() is called.
mirrored,
// the mirror element, which is used to calculate what size the mirrored element should be.
mirror = $(copy).data('autosize', true)[0];
// test that line-height can be accurately copied.
mirror.style.lineHeight = '99px';
if ($(mirror).css('lineHeight') === '99px') {
typographyStyles.push('lineHeight');
}
mirror.style.lineHeight = '';
$.fn.autosize = function (options) {
if (!this.length) {
return this;
}
options = $.extend({}, defaults, options || {});
if (mirror.parentNode !== document.body) {
$(document.body).append(mirror);
}
return this.each(function () {
var
ta = this,
$ta = $(ta),
maxHeight,
minHeight,
boxOffset = 0,
callback = $.isFunction(options.callback),
originalStyles = {
height: ta.style.height,
overflow: ta.style.overflow,
overflowY: ta.style.overflowY,
wordWrap: ta.style.wordWrap,
resize: ta.style.resize
},
timeout,
width = $ta.width();
if ($ta.data('autosize')) {
// exit if autosize has already been applied, or if the textarea is the mirror element.
return;
}
$ta.data('autosize', true);
if ($ta.css('box-sizing') === 'border-box' || $ta.css('-moz-box-sizing') === 'border-box' || $ta.css('-webkit-box-sizing') === 'border-box'){
boxOffset = $ta.outerHeight() - $ta.height();
}
// IE8 and lower return 'auto', which parses to NaN, if no min-height is set.
minHeight = Math.max(parseInt($ta.css('minHeight'), 10) - boxOffset || 0, $ta.height());
$ta.css({
overflow: 'hidden',
overflowY: 'hidden',
wordWrap: 'break-word', // horizontal overflow is hidden, so break-word is necessary for handling words longer than the textarea width
resize: ($ta.css('resize') === 'none' || $ta.css('resize') === 'vertical') ? 'none' : 'horizontal'
});
// The mirror width must exactly match the textarea width, so using getBoundingClientRect because it doesn't round the sub-pixel value.
function setWidth() {
var style, width;
if ('getComputedStyle' in window) {
style = window.getComputedStyle(ta, null);
width = ta.getBoundingClientRect().width;
$.each(['paddingLeft', 'paddingRight', 'borderLeftWidth', 'borderRightWidth'], function(i,val){
width -= parseInt(style[val],10);
});
mirror.style.width = width + 'px';
}
else {
// window.getComputedStyle, getBoundingClientRect returning a width are unsupported and unneeded in IE8 and lower.
mirror.style.width = Math.max($ta.width(), 0) + 'px';
}
}
function initMirror() {
var styles = {};
mirrored = ta;
mirror.className = options.className;
maxHeight = parseInt($ta.css('maxHeight'), 10);
// mirror is a duplicate textarea located off-screen that
// is automatically updated to contain the same text as the
// original textarea. mirror always has a height of 0.
// This gives a cross-browser supported way getting the actual
// height of the text, through the scrollTop property.
$.each(typographyStyles, function(i,val){
styles[val] = $ta.css(val);
});
$(mirror).css(styles);
setWidth();
// Chrome-specific fix:
// When the textarea y-overflow is hidden, Chrome doesn't reflow the text to account for the space
// made available by removing the scrollbar. This workaround triggers the reflow for Chrome.
if (window.chrome) {
var width = ta.style.width;
ta.style.width = '0px';
var ignore = ta.offsetWidth;
ta.style.width = width;
}
}
// Using mainly bare JS in this function because it is going
// to fire very often while typing, and needs to very efficient.
function adjust() {
var height, original;
if (mirrored !== ta) {
initMirror();
} else {
setWidth();
}
mirror.value = ta.value + options.append;
mirror.style.overflowY = ta.style.overflowY;
original = parseInt(ta.style.height,10);
// Setting scrollTop to zero is needed in IE8 and lower for the next step to be accurately applied
mirror.scrollTop = 0;
mirror.scrollTop = 9e4;
// Using scrollTop rather than scrollHeight because scrollHeight is non-standard and includes padding.
height = mirror.scrollTop;
if (maxHeight && height > maxHeight) {
ta.style.overflowY = 'scroll';
height = maxHeight;
} else {
ta.style.overflowY = 'hidden';
if (height »'),
over = function() {
var $this = $(this),
o = getOptions($this);
clearTimeout(o.sfTimer);
$this.showSuperfishUl().siblings().hideSuperfishUl();
},
out = function(e) {
var $this = $(this),
o = getOptions($this);
if (e.type === 'click' || sf.ios) {
$.proxy(close, $this, o)();
}
else {
clearTimeout(o.sfTimer);
o.sfTimer = setTimeout($.proxy(close, $this, o), o.delay);
}
},
close = function(o) {
o.retainPath = ( $.inArray(this[0], o.$path) > -1);
this.hideSuperfishUl();
if (!this.parents('.' + o.hoverClass).length) {
o.onIdle.call(getMenu(this));
if (o.$path.length) {
$.proxy(over, o.$path)();
}
}
},
getMenu = function($el) {
return $el.closest('.' + c.menuClass);
},
getOptions = function($el) {
return getMenu($el).data('sf-options');
},
applyTouchAction = function($menu) {
// needed by MS pointer events
$menu.css('ms-touch-action', 'none');
},
applyHandlers = function($menu,o) {
var targets = 'li:has(ul)';
if (!o.useClick) {
if ($.fn.hoverIntent && !o.disableHI) {
$menu.hoverIntent(over, out, targets);
}
else {
$menu
.on('mouseenter', targets, over)
.on('mouseleave', targets, out);
}
}
var touchstart = 'MSPointerDown';
if (!sf.ios) {
touchstart += ' touchstart';
}
if (sf.wp7) {
touchstart += ' mousedown';
}
$menu
.on('focusin', 'li', over)
.on('focusout', 'li', out)
.on('click', 'a', o, clickHandler)
.on(touchstart, 'a', touchHandler);
},
touchHandler = function(e) {
var $this = $(this),
$ul = $this.siblings('ul');
if ($ul.length > 0 && $ul.is(':hidden')) {
$this.data('follow', false);
if (e.type === 'MSPointerDown') {
$this.trigger('focus');
return false;
}
}
},
clickHandler = function(e) {
var $a = $(this),
o = e.data,
$submenu = $a.siblings('ul'),
follow = ($a.data('follow') === false) ? false : true;
if ($submenu.length && (o.useClick || !follow)) {
e.preventDefault();
if ($submenu.is(':hidden')) {
$.proxy(over, $a.parent('li'))();
}
else if (o.useClick && follow) {
$.proxy(out, $a.parent('li'), e)();
}
}
},
setPathToCurrent = function($menu, o) {
return $menu.find('li.' + o.pathClass).slice(0, o.pathLevels)
.addClass(o.hoverClass + ' ' + c.bcClass)
.filter(function() {
return ($(this).children('ul').hide().show().length);
}).removeClass(o.pathClass);
},
addArrows = function($li, o) {
if (o.autoArrows) {
$li.children('a').each(function() {
addArrow( $(this) );
});
}
},
addArrow = function($a) {
$a.addClass(c.anchorClass).append($arrow.clone());
};
sf.getOptions = getOptions;
return this.addClass(c.menuClass).each(function() {
var $this = $(this),
o = $.extend({}, sf.defaults, op),
$liHasUl = $this.find('li:has(ul)');
o.$path = setPathToCurrent($this, o);
$this.data('sf-options', o);
addArrows($liHasUl, o);
applyTouchAction($this);
applyHandlers($this, o);
$liHasUl.not('.' + c.bcClass).hideSuperfishUl(true);
o.onInit.call(this);
});
};
var sf = $.fn.superfish;
sf.o = [];
sf.op = {};
sf.c = {
bcClass: 'sf-breadcrumb',
menuClass: 'sf-js-enabled',
anchorClass: 'sf-with-ul',
arrowClass: 'sf-sub-indicator'
};
sf.defaults = {
hoverClass: 'sfHover',
pathClass: 'overrideThisToUse',
pathLevels: 1,
delay: 800,
animation: {opacity:'show'},
animationOut: {opacity:'hide'},
speed: 'normal',
speedOut: 'fast',
autoArrows: true,
disableHI: false, // true disables hoverIntent detection
useClick: false,
onInit: $.noop, // callback functions
onBeforeShow: $.noop,
onShow: $.noop,
onBeforeHide: $.noop,
onHide: $.noop,
onIdle: $.noop
};
sf.ios = /iPhone|iPad|iPod/i.test(navigator.userAgent);
sf.wp7 = (function() {
var style = document.documentElement.style;
return ('behavior' in style && 'fill' in style && /iemobile/i.test(navigator.userAgent));
})();
$.fn.extend({
hideSuperfishUl: function(instant) {
if (this.length) {
var $this = this,
o = sf.getOptions($this),
not = (o.retainPath === true) ? o.$path : '',
$ul = $this.find('li.' + o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children('ul'),
speed = o.speedOut;
if (instant) {
$ul.show();
speed = 0;
}
o.retainPath = false;
o.onBeforeHide.call($ul);
$ul.stop(true, true).animate(o.animationOut, speed, function() {
var $this = $(this);
o.onHide.call($this);
if (o.useClick) {
$this.siblings('a').data('follow', false);
}
});
}
return this;
},
showSuperfishUl: function() {
var o = sf.getOptions(this),
$this = this.addClass(o.hoverClass),
$ul = $this.children('ul');
o.onBeforeShow.call($ul);
$ul.stop(true, true).animate(o.animation, o.speed, function() {
o.onShow.call($ul);
$this.children('a').data('follow', true);
});
return this;
}
});
if (sf.ios) {
// iOS click won't bubble to body, attach to closest possible
$(window).load(function() {
$('body').children().on('click', $.noop);
});
}
})(jQuery);
//=============================================================
//== Stylesheets manipulations
//=============================================================
function setStateStyleSheet(title, state) {
"use strict";
var i, a;
for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
if (a.getAttribute("title") == title) a.disabled = !state;
}
}
}
function getStateStyleSheet(title, state) {
"use strict";
var i, a, rez=-1;
for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
if (a.getAttribute("title") == title) {
rez = a.disabled ? 0 : 1;
break;
}
}
}
return rez;
}
function setActiveStyleSheet(title, disableOther) {
"use strict";
var i, a, main;
for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
if (disableOther) a.disabled = true;
if (a.getAttribute("title") == title) a.disabled = false;
}
}
}
function getActiveStyleSheet() {
"use strict";
var i, a;
for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
}
return null;
}
function getPreferredStyleSheet() {
"use strict";
var i, a;
for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title") )
return a.getAttribute("title");
}
return null;
}
//=============================================================
//== ListBox & ComboBox manipulations
//=============================================================
function addListBoxItem(box, val, text) {
"use strict";
var item = new Option();
item.value = val;
item.text = text;
box.options.add(item);
}
function clearListBox(box) {
"use strict";
for (var i=box.options.length-1; i>=0; i--)
box.options[i] = null;
}
function delListBoxItemByValue(box, val) {
"use strict";
for (var i=0; i
temp_opts[y].text) {
temp = temp_opts[x];
temp_opts[x] = temp_opts[y];
temp_opts[y] = temp;
}
}
}
for(var i=0; i thearray[y]) {
tmp = thearray[x];
thearray[x] = thearray[y];
thearray[y] = tmp;
}
} else {
if (thearray[x].toLowerCase() > thearray[y].toLowerCase()) {
tmp = thearray[x];
thearray[x] = thearray[y];
thearray[y] = tmp;
}
}
}
}
}
//=============================================================
//== String functions
//=============================================================
function inList(list, str) {
"use strict";
var delim = arguments[2] ? arguments[2] : '|';
var icase = arguments[3] ? arguments[3] : true;
var retval = false;
if (icase) {
str = str.toLowerCase();
list = list.toLowerCase();
}
var parts = list.split(delim);
for (var i=0; i=0; i--) {
if (str.substr(i,1)!=' ') {
end = i;
break;
}
}
}
return str.substring(start, end+1);
}
function ltrim(str) {
"use strict";
return alltrim(str, 'l');
}
function rtrim(str) {
"use strict";
return alltrim(str, 'r');
}
function padl(str, len) {
"use strict";
var char = arguments[2] ? arguments[2] : ' ';
var rez = str.substr(0,len);
if (rez.length 0) float--;
var ch = num.substr(i,1);
if (ch=='.') {
if (precision>0) {
res += ch;
}
float = precision;
} else if ((ch>=0 && ch0 && float!=0) {
if (float==-1) {
res += '.';
float = precision;
}
for (i=float; i>0; i--)
res +='0';
}
//if (isNaN(res)) res = clearNumber(defa, precision, defa);
return res;
}
function dec2hex(n) {
"use strict";
return Number(n).toString(16);
}
function hex2dec(hex) {
"use strict";
return parseInt(hex,16);
}
function roundNumber(num) {
"use strict";
var precision = arguments[1] ? arguments[1] : 0;
var p = Math.pow(10,precision);
return Math.round(num*p)/p;
}
//=============================================================
//== Color manipulations
//=============================================================
function rgb2hex(color) {
"use strict";
var aRGB;
color = color.replace(/\s/g,"").toLowerCase();
if (color=='rgba(0,0,0,0)' || color=='rgba(0%,0%,0%,0%)')
color = 'transparent';
if (color.indexOf('rgba(')==0)
aRGB = color.match(/^rgba\((\d{1,3}[%]?),(\d{1,3}[%]?),(\d{1,3}[%]?),(\d{1,3}[%]?)\)$/i);
else
aRGB = color.match(/^rgb\((\d{1,3}[%]?),(\d{1,3}[%]?),(\d{1,3}[%]?)\)$/i);
if(aRGB) {
color = '';
for (var i=1; i';
for (var i=0; i0 ? '' : '') + '';
tbl += ' ';
}
tbl += ' '
+ ''
+ ''
+ ' '
+ ' '
+ ' '
+ ''
+ ' '
+ ' '
+ ' ';
//tbl += '';
jQuery(document.createElement("div"))
.attr("id", id)
.css('display','none')
.html(tbl)
.appendTo("body")
.addClass("iColorPickerTable")
.on('mouseover', 'thead td', function(){
"use strict";
var aaa=rgb2hex(jQuery(this).css('background-color'));
jQuery('#'+id+'_colorPreview').css('background',aaa);
jQuery('#'+id+'_colorPreview input').val(aaa);
})
.on('keypress', '#'+id+'_colorPreview input', function(key){
"use strict";
var aaa=jQuery(this).val()
if (aaa.length=48 && key.which=97 && key.which0) {
aaa = aaa.substring(0, aaa.length-1);
} else if (key.which===13 && (aaa.length===4 || aaa.length===7)) {
var fld = jQuery('#'+id).data('field');
var func = jQuery('#'+id).data('func');
if (func!=null && func!='undefined') {
func(fld, aaa);
} else {
fld.val(aaa).css('backgroundColor', aaa).trigger('change');
}
jQuery('#'+id+'_Bg').fadeOut(500);
jQuery('#'+id).fadeOut(500);
} else {
key.preventDefault();
return false;
}
if (aaa.substr(0,1)==='#' && (aaa.length===4 || aaa.length===7)) {
jQuery('#'+id+'_colorPreview').css('background',aaa);
}
})
.on('click', 'thead td', function(e){
"use strict";
var fld = jQuery('#'+id).data('field');
var func = jQuery('#'+id).data('func');
var aaa = rgb2hex(jQuery(this).css('background-color'));
if (func!=null && func!='undefined') {
func(fld, aaa);
} else {
fld.val(aaa).css('backgroundColor', aaa).trigger('change');
}
jQuery('#'+id+'_Bg').fadeOut(500);
jQuery('#'+id).fadeOut(500);
e.preventDefault();
return false;
})
.on('click', 'tbody .iColorPicker_moreColors', function(e){
"use strict";
var thead = jQuery(this).parents('table').find('thead');
var out = '';
if (thead.hasClass('more_colors')) {
for (var i=0; i0 ? '' : '') + '';
out += ' ';
}
thead.removeClass('more_colors').empty().html(out+' ');
jQuery('#'+id+'_colorPreview').attr('colspan', 8);
jQuery('#'+id+'_colorOriginal').attr('colspan', 8);
} else {
var rgb=[0,0,0], i=0, j=-1; // Set j=-1 or j=0 - show 2 different colors layouts
while (rgb[0]0 ? '' : '') + '';
i++;
out += ' ';
rgb[2]+=3;
if (rgb[2]>0xF) {
rgb[1]+=3;
if (rgb[1]>(j===0 ? 6 : 0xF)) {
rgb[0]+=3;
if (rgb[0]>0xF) {
if (j===0) {
j=1;
rgb[0]=0;
rgb[1]=9;
rgb[2]=0;
} else {
break;
}
} else {
rgb[1]=(j ');
jQuery('#'+id+'_colorPreview').attr('colspan', 9);
jQuery('#'+id+'_colorOriginal').attr('colspan', 9);
}
e.preventDefault();
return false;
});
jQuery(document.createElement("div"))
.attr("id", id+"_Bg")
.click(function(e) {
"use strict";
jQuery("#"+id+"_Bg").fadeOut(500);
jQuery("#"+id).fadeOut(500);
e.preventDefault();
return false;
})
.appendTo("body");
jQuery('#'+id+' table.colorPickerTable')
.css({'border-collapse':'collapse'});
jQuery('#'+id+'_colorPreview')
.css({'height':'50px'});
return id;
}
function iColorShow(id, fld, func) {
"use strict";
if (id===null || id==='') {
id = jQuery('.iColorPickerTable').attr('id');
}
var eICP = fld.offset();
var w = jQuery('#'+id).width();
var h = jQuery('#'+id).height();
var l = eICP.left + w 0)
rez += (rez!='' ? ' ' : '') + days + ' day' + (days > 1 ? 's' : '');
if ((!short || rez=='') && hours > 0)
rez += (rez!='' ? ' ' : '') + hours + ' hour' + (hours > 1 ? 's' : '');
if ((!short || rez=='') && minutes > 0)
rez += (rez!='' ? ' ' : '') + minutes + ' minute' + (minutes > 1 ? 's' : '');
if (sec || rez=='')
rez += rez!='' || sec ? (' ' + diff + ' second' + (diff > 1 ? 's' : '')) : 'less then minute';
return rez;
}
//=============================================================
//== Form validation
//=============================================================
function formValidate(form, opt) {
"use strict";
var error_msg = '';
form.find(":input").each(function() {
"use strict";
if (error_msg!='' && opt.exit_after_first_error) return;
for (var i = 0; i 0 && val.length ' + (typeof(opt.rules[i].min_length.message)!='undefined' ? opt.rules[i].min_length.message : opt.error_message_text ) + ''
error = true;
}
}
if ((!error || !opt.exit_after_first_error) && typeof(opt.rules[i].max_length) == 'object') {
if (opt.rules[i].max_length.value > 0 && val.length > opt.rules[i].max_length.value) {
if (error_msg=='') jQuery(this).get(0).focus();
error_msg += '' + (typeof(opt.rules[i].max_length.message)!='undefined' ? opt.rules[i].max_length.message : opt.error_message_text ) + '
'
error = true;
}
}
if ((!error || !opt.exit_after_first_error) && typeof(opt.rules[i].mask) == 'object') {
if (opt.rules[i].mask.value != '') {
var regexp = new RegExp(opt.rules[i].mask.value);
if (!regexp.test(val)) {
if (error_msg=='') jQuery(this).get(0).focus();
error_msg += '' + (typeof(opt.rules[i].mask.message)!='undefined' ? opt.rules[i].mask.message : opt.error_message_text ) + '
'
error = true;
}
}
}
if ((!error || !opt.exit_after_first_error) && typeof(opt.rules[i].equal_to) == 'object') {
if (opt.rules[i].equal_to.value != '' && val!=jQuery(jQuery(this).get(0).form[opt.rules[i].equal_to.value]).val()) {
if (error_msg=='') jQuery(this).get(0).focus();
error_msg += '' + (typeof(opt.rules[i].equal_to.message)!='undefined' ? opt.rules[i].equal_to.message : opt.error_message_text ) + '
'
error = true;
}
}
if (opt.error_fields_class != '') jQuery(this).toggleClass(opt.error_fields_class, error);
}
}
});
if (error_msg!='' && opt.error_message_show) {
THEMEREX_error_msg_box = form.find(".sc_result");
if (THEMEREX_error_msg_box.length == 0) {
form.append('
');
THEMEREX_error_msg_box = form.find(".sc_result");
}
if (opt.error_message_class) THEMEREX_error_msg_box.toggleClass(opt.error_message_class, true);
THEMEREX_error_msg_box.html(error_msg).fadeIn();
setTimeout(function() { THEMEREX_error_msg_box.fadeOut(); }, opt.error_message_time);
}
return error_msg!='';
}
//=============================================================
//== File functions
//=============================================================
function getFileName(path) {
path = path.replace(/\\/g, '/');
var pos = path.lastIndexOf('/');
if (pos >= 0)
path = path.substr(pos+1);
return path;
}
function getFileExt(path) {
var pos = path.lastIndexOf('.');
path = pos >= 0 ? path.substr(pos+1) : '';
return path;
}
//=============================================================
//== PHP-style functions
//=============================================================
function isset(obj) {
return obj != undefined;
}
function empty(obj) {
return obj == undefined || (typeof(obj)=='object' && obj == null) || (typeof(obj)=='array' && obj.length == 0) || (typeof(obj)=='string' && alltrim(obj)=='');
}
function is_array(obj) {
"use strict";
return typeof(obj)=='array';
}
function is_object(obj) {
"use strict";
return typeof(obj)=='object';
}
function in_array(val, thearray) {
"use strict";
var rez = false;
for (var x=0; x0) {
dispStr += (obj===null ? "null" : typeof(obj)) + (html ? "\n " : "\n");
addStr = replicate(html ? ' ' : ' ', level*2);
}
if (obj!==null) {
for (var prop in obj) {
if (!showMethods && typeof(obj[prop])=='function') // || prop=='innerHTML' || prop=='outerHTML' || prop=='innerText' || prop=='outerText')
continue;
if (recursive && (typeof(obj[prop])=='object' || typeof(obj[prop])=='array') && obj[prop]!=obj)
dispStr += addStr + (html ? "" : "")+prop+(html ? " " : "")+'='+objDisplay(obj[prop], html, recursive, showMethods, level+1);
else
dispStr += addStr + (html ? "" : "")+prop+(html ? " " : "")+'='+(typeof(obj[prop])=='string' ? '"' : '')+obj[prop]+(typeof(obj[prop])=='string' ? '"' : '')+(html ? "\n " : "\n");
}
}
return dispStr;
}
//=============================================================
//== smartresize
//=============================================================
(function($,sr){
var debounce = function (func, threshold, execAsap) {
var timeout;
return function debounced () {
var obj = this, args = arguments;
function delayed () {
if (!execAsap)
func.apply(obj, args);
timeout = null;
};
if (timeout)
clearTimeout(timeout);
else if (execAsap)
func.apply(obj, args);
timeout = setTimeout(delayed, threshold || 200);
};
}
// smartresize
jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
})(jQuery,'smartresize');
// global jQuery:false
var THEMEREX_ADMIN_MODE = false;
var THEMEREX_error_msg_box = null;
var THEMEREX_VIEWMORE_BUSY = false;
var THEMEREX_REMEMBERSCROLL = 0;
var THEMEREX_isotopeInitCounter = 0;
var THEMEREX_isotopeMemoryID = '';
var THEMEREX_isotopeFilter = '*';
jQuery(document).ready(function() {
"use strict";
timelineResponsive()
ready();
itemPageFull();
scrollAction();
fullSlider();
});
jQuery(window).resize(function() {
"use strict";
itemPageFull();
timelineResponsive();
fullSlider();
scrollAction();
});
jQuery(window).smartresize(function() {
mobileMenuShow();
});
jQuery(window).scroll(function() {
"use strict";
scrollAction();
});
jQuery(window).load(function() {
jQuery('.sc_blogger.style_image .sc_scroll.sc_scroll_horizontal .sc_scroll_wrapper').css('display', 'flex');
jQuery('.sc_blogger.style_image .thumb').each(function() {
var x = jQuery(this).width();
jQuery(this).height(x);
var image_X = jQuery(this).find('img').width();
var image_Y = jQuery(this).find('img').height();
if (image_Y a').attr('href');
jQuery(this).find('.button.add_to_cart_button').html('read details');
jQuery(this).find('.button.add_to_cart_button').attr('href', href);
jQuery(this).find('.button.add_to_cart_button .added_to_cart').hide();
jQuery(this).find('.button.add_to_cart_button').click(function(){
window.location = href;
});
jQuery(this).find('.button.add_to_cart_button').removeClass('add_to_cart_button');
});
});
function ready() {
"use strict";
//textarea Autosize
if (jQuery('textarea.textAreaSize').length > 0) {
jQuery('textarea.textAreaSize').autosize({
append: "\n"
});
}
// Share button
if (jQuery('ul.shareDrop').length > 0) {
jQuery(document).click(function(e) {
"use strict";
jQuery('ul.shareDrop').slideUp().siblings('a.shareDrop').removeClass('selected');
});
jQuery('li.share a').click(function(e) {
"use strict";
if (jQuery(this).hasClass('selected')) {
jQuery(this).removeClass('selected').siblings('ul.shareDrop').slideUp();
} else {
jQuery(this).addClass('selected').siblings('ul.shareDrop').slideDown();
}
e.preventDefault();
return false;
});
jQuery('li.share li a').click(function(e) {
jQuery(this).parents('ul.shareDrop').slideUp().siblings('a.shareDrop').removeClass('selected');
e.preventDefault();
return false;
});
}
// Like button
jQuery('.postSharing,.masonryMore').on('click', '.likeButton a', function(e) {
var button = jQuery(this).parent();
var inc = button.hasClass('like') ? 1 : -1;
var post_id = button.data('postid');
var likes = Number(button.data('likes')) + inc;
var grecko_likes = jQuery.cookie('grecko_likes');
if (grecko_likes === undefined) grecko_likes = '';
jQuery.post(THEMEREX_ajax_url, {
action: 'post_counter',
nonce: THEMEREX_ajax_nonce,
post_id: post_id,
likes: likes
}).done(function(response) {
var rez = JSON.parse(response);
if (rez.error === '') {
if (inc == 1) {
var title = button.data('title-dislike');
button.removeClass('like').addClass('likeActive');
grecko_likes += (grecko_likes.substr(-1) != ',' ? ',' : '') + post_id + ',';
} else {
var title = button.data('title-like');
button.removeClass('likeActive').addClass('like');
grecko_likes = grecko_likes.replace(',' + post_id + ',', ',');
}
button.data('likes', likes).find('a').attr('title', title).find('.likePost').html(likes);
jQuery.cookie('grecko_likes', grecko_likes, {
expires: 365,
path: '/'
});
} else {
themerex_message_warning(THEMEREX_MESSAGE_ERROR_LIKE);
}
});
e.preventDefault();
return false;
});
//hoverZoom img effect
jQuery('.hoverIncrease').each(function() {
"use strict";
var img = jQuery(this).data('image');
var title = jQuery(this).data('title');
if (img) {
jQuery(this).append(' ');
}
});
// ====== isotope =====================================================================
if (jQuery('.isotopeWrap').length > 0) {
jQuery('.isotopeWrap').each(function() {
isotopeFilterClass('*');
var isotopeWrap = jQuery(this);
var isotopeItem = isotopeWrap.find('.isotopeItem');
var isotopeWrapWidth = isotopeWrap.width();
var isotopeWrapFoliosize = isotopeWrap.data('foliosize');
if (jQuery(isotopeWrap).hasClass('portfolio_big')) isotopeWrapFoliosize = 3;
if (jQuery(isotopeWrap).hasClass('portfolio_medium')) isotopeWrapFoliosize = 4;
if (jQuery(isotopeWrap).hasClass('portfolio_mini')) isotopeWrapFoliosize = 6;
if (jQuery(isotopeWrap).data('columns') != '0' && jQuery(isotopeWrap).data('columns')) isotopeWrapFoliosize = parseInt(jQuery(isotopeWrap).data('columns'));
var isotopeItemIncw = '1';
var isotopeItemInch = '1';
//indent
var indent = false;
if (jQuery(isotopeWrap).hasClass('isotopeIndent')) {
indent = true;
isotopeWrapWidth = jQuery(isotopeWrap).parents('.masonryWrap').width();
jQuery(isotopeWrap).width(isotopeWrapWidth);
}
isotopeItem.each(function() {
var isotopeItemIncw = jQuery(this).data('incw');
var isotopeItemInch = jQuery(this).data('inch');
// if (jQuery(window).width() 600) {
titleSize = 30;
excerptSize = 14;
}
if (isotopeSize[0] 0) {
if (jQuery.rsCSS3Easing != undefined && jQuery.rsCSS3Easing != null) {
jQuery.rsCSS3Easing.easeOutBack = 'cubic-bezier(0.175, 0.885, 0.320, 1.275)';
}
jQuery('.sliderHeader').addClass('hsInit');
initShortcodes(jQuery(this));
}
// ====================================================================================
// Page Navigation
jQuery(document).click(function() {
"use strict";
jQuery('.pageFocusBlock').slideUp();
});
jQuery('.pageFocusBlock').click(function(e) {
"use strict";
e.preventDefault();
return false;
});
jQuery('.navInput').click(function(e) {
"use strict";
jQuery('.pageFocusBlock').slideDown();
e.preventDefault();
return false;
});
//related links
jQuery('.postBoxItem').click(function() {
"use strict";
var link = jQuery(this).find('h5 a').attr('href');
if (link != '') {
window.location.href = link;
}
})
// topMenu DROP superfish
jQuery('.topMenu ul, .usermenuArea ul').superfish({
delay: 500,
animation: {
opacity: 'show',
height: 'show'
},
animationOut: {
opacity: 'hide',
height: 'hide'
},
speed: 'fast',
autoArrows: false,
dropShadows: false
});
// top menu animation
jQuery(document).click(function() {
"use strict";
jQuery('.hideMenuDisplay #header').removeClass('topMenuShow');
});
jQuery('.hideMenuDisplay .wrapTopMenu').click(function(e) {
"use strict";
e.stopPropagation();
});
jQuery('.hideMenuDisplay .openTopMenu').click(function(e) {
"use strict";
e.stopPropagation();
jQuery(this).parent().toggleClass('topMenuShow');
return false;
});
// Sidemenu DROP
jQuery('.sidemenu_area > ul > li.dropMenu ').click(function(e) {
"use strict";
e.preventDefault();
return false;
});
jQuery('.sidemenu_area > ul > li.dropMenu, .sidemenu_area > ul > li.dropMenu li').click(function(e) {
"use strict";
initScroll('sidemenu_scroll');
jQuery(this).toggleClass('dropOpen');
jQuery(this).find('ul').first().slideToggle();
e.preventDefault();
return false;
});
jQuery('#sidemenu_scroll a').click(function(e) {
"use strict";
initScroll('sidemenu_scroll');
jQuery('#sidemenu_scroll').mCustomScrollbar("update");
e.preventDefault();
return false;
});
jQuery(document).click(function(e) {
"use strict";
jQuery('body').removeClass('openMenuFixRight openMenuFix');
jQuery('.sidemenu_overflow').fadeOut(400);
jQuery('body').attr('style', '');;
});
jQuery('.sidemenu_wrap.swpLeftPos, .swpRightPos, .openRightMenu').click(function(e) {
"use strict";
e.preventDefault();
return false;
});
jQuery('.sidemenu_wrap .sidemenu_button').click(function(e) {
"use strict";
jQuery('body').addClass('openMenuFix');
if (jQuery('.sidemenu_overflow').length == 0) {
jQuery('body').append('')
}
jQuery('.sidemenu_overflow').fadeIn(400);
jQuery('body').css('overflow', 'hidden');
e.preventDefault();
return false;
});
jQuery('.openRightMenu').click(function(e) {
"use strict";
jQuery('body').addClass('openMenuFixRight');
if (jQuery('.sidemenu_overflow').length == 0) {
jQuery('body').append('')
}
jQuery('.sidemenu_overflow').fadeIn(400);
jQuery('body').css('overflow', 'hidden');
e.preventDefault();
return false;
});
//Hover DIR
jQuery(' .portfolio > .isotopeItem > .hoverDirShow').each(function() {
"use strict";
jQuery(this).hoverdir();
});
//Portfolio item Description
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
jQuery('.toggleButton').show();
jQuery('.itemDescriptionWrap,.toggleButton').click(function(e) {
"use strict";
jQuery(this).toggleClass('descriptionShow');
jQuery(this).find('.toggleDescription').slideToggle();
e.preventDefault();
return false;
});
} else {
jQuery('.itemDescriptionWrap').hover(function() {
"use strict";
jQuery(this).toggleClass('descriptionShow');
jQuery(this).find('.toggleDescription').slideToggle();
})
}
jQuery('input[type="text"], input[type="password"], input[type="search"], textarea').focus(function() {
"use strict";
jQuery(this).attr('data-placeholder', jQuery(this).attr('placeholder')).attr('placeholder', '')
jQuery(this).parent('li').addClass('iconFocus');
})
.blur(function() {
"use strict";
jQuery(this).attr('placeholder', jQuery(this).attr('data-placeholder'))
jQuery(this).parent('li').removeClass('iconFocus');
});
//responsive Show menu
jQuery('.openMobileMenu').click(function(e) {
"use strict";
var ul = jQuery('.wrapTopMenu .topMenu > ul');
ul.slideToggle();
jQuery(this).parents('.menuFixedWrap').toggleClass('menuMobileShow');
e.preventDefault();
return false;
});
// IFRAME width and height constrain proportions
if (jQuery('iframe').length > 0) {
jQuery(window).resize(function() {
"use strict";
videoDimensions();
});
videoDimensions();
}
// Hide empty pagination
if (jQuery('#nav_pages > ul > li').length 0) posts_container = posts_container.find('section.isotopeWrap').eq(0);
if (posts_container.hasClass('isotopeWrap')) {
posts_container.append(rez.data);
THEMEREX_isotopeInitCounter = 0;
initAppendedIsotope(posts_container, rez.filters);
} else {
jQuery('.ajaxContainer').append(rez.data);
}
initPostFormats();
THEMEREX_VIEWMORE_PAGE++;
if (rez.no_more_data == 1) {
jQuery('#viewmore_link').hide();
}
if (jQuery('#nav_pages ul li').length >= THEMEREX_VIEWMORE_PAGE) {
jQuery('#nav_pages ul li').eq(THEMEREX_VIEWMORE_PAGE).toggleClass('pager_current', true);
}
}
});
}
e.preventDefault();
return false;
});
// Infinite pagination
if (jQuery('#viewmore_link.pagination_infinite').length > 0) {
jQuery(window).scroll(infiniteScroll);
}
//custom panel scroll
if (jQuery('#custom_options').length > 0) {
jQuery('#custom_options .sc_scroll').css('height', jQuery('#custom_options').height() - 46);
}
// Scroll to top
jQuery('.buttonScrollUp').click(function(e) {
"use strict";
jQuery('html,body').animate({
scrollTop: 0
}, 'slow');
e.preventDefault();
return false;
});
jQuery('.sc_blogger.style_regular').each(function() {
var isotopeWrapFoliosize = jQuery(this).data('columns');
var isotopeWrap = jQuery(this);
var isotopeItem = jQuery(this).find('.sc_columns_item');
beforeIsotopeItemResize('regular', isotopeWrap, isotopeItem, isotopeWrapFoliosize);
jQuery(window).resize(function() {
beforeIsotopeItemResize('regular', isotopeWrap, isotopeItem, isotopeWrapFoliosize);
});
});
initPostFormats();
}; //end ready
// Fit video frame to document width
function videoDimensions() {
jQuery('iframe').each(function() {
"use strict";
var iframe = jQuery(this).eq(0);
var w_attr = iframe.attr('width');
var h_attr = iframe.attr('height');
if (!w_attr || !h_attr) {
return;
}
var w_real = iframe.width();
if (w_real != w_attr) {
var h_real = Math.round(w_real / w_attr * h_attr);
iframe.height(h_real);
}
});
}
function initPostFormats() {
"use strict";
// MediaElement init
if (THEMEREX_useMediaElement) {
if (jQuery('audio').length > 0) {
jQuery('audio').each(function() {
if (jQuery(this).hasClass('inited')) return;
jQuery(this).addClass('inited').mediaelementplayer({
audioWidth: '100%', // width of audio player
audioHeight: 30, // height of audio player
success: function(mediaElement, domObject) {
jQuery(domObject).parents('.sc_audio').addClass('sc_audio_show');
},
});
});
}
jQuery('video').each(function() {
if (jQuery(this).hasClass('inited')) return;
jQuery(this).addClass('inited').mediaelementplayer({
videoWidth: -1, // if set, overrides
videoHeight: -1, // if set, overrides
audioWidth: '100%', // width of audio player
audioHeight: 30 // height of audio player
});
});
} else {
jQuery('.sc_audio').addClass('sc_audio_show');
}
// Popup init image
jQuery("a[href$='jpg']:not(.prettyphoto),a[href$='jpeg']:not(.prettyphoto),a[href$='png']:not(.prettyphoto),a[href$='gif']:not(.prettyphoto)").attr('rel', 'magnific');
jQuery("a[rel*='magnific']:not(.inited)").addClass('inited').attr('data-effect', THEMEREX_MAGNIFIC_EFFECT_OPEN).magnificPopup({
type: 'image',
closeOnContentClick: true,
closeBtnInside: true,
fixedContentPos: true,
removalDelay: 500,
midClick: true,
preloader: true,
gallery: {
enabled: true
},
tLoading: ' ',
image: {
tError: THEMEREX_MAGNIFIC_ERROR,
verticalFit: true,
},
callbacks: {
beforeOpen: function() {
this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass = this.st.el.attr('data-effect');
}
}
});
// Popup init video
jQuery("a[href*='youtube'],a[href*='vimeo']").attr('rel', 'magnific-video');
jQuery("a[rel*='magnific-video']:not(.inited)").addClass('inited').attr('data-effect', THEMEREX_MAGNIFIC_EFFECT_OPEN).magnificPopup({
type: 'iframe',
closeOnContentClick: true,
closeBtnInside: true,
fixedContentPos: true,
removalDelay: 500,
midClick: true,
preloader: true,
callbacks: {
open: function() {
//open function
},
close: function() {
//close function
}
}
});
// Popup windows with any html content
jQuery('.user-popup-link:not(.inited)').addClass('inited').magnificPopup({
type: 'inline',
removalDelay: 500,
callbacks: {
beforeOpen: function() {
this.st.mainClass = 'mfp-zoom-in';
initShortcodes(jQuery('.sc_popup'));
},
open: function() {
jQuery('html').css({
overflow: 'visible',
margin: 0
});
},
close: function() {}
},
midClick: true
});
// Add video on thumb click
jQuery('.sc_video_frame').each(function() {
"use strict";
if (jQuery(this).hasClass('sc_inited')) return;
if (jQuery(this).hasClass('sc_video_frame_auto_play')) {
scVideoAutoplay(jQuery(this));
}
jQuery(this).addClass('sc_inited').click(function(e) {
"use strict";
scVideoAutoplay(jQuery(this));
e.preventDefault();
});
});
jQuery('.sc_video_frame').hover(function() {
jQuery(this).find('.sc_video_frame_player_title').slideDown(400);
}, function() {
"use strict";
jQuery(this).find('.sc_video_frame_player_title').slideUp(400);
});
function scVideoAutoplay($videoObject) {
"use strict";
var video = $videoObject.data('videoframe');
if (video !== '' && !$videoObject.hasClass('sc_video_active')) {
$videoObject.addClass('sc_video_active');
$videoObject.empty().html(video);
videoDimensions();
}
return false;
}
//hover Underline effect
jQuery('.hoverUnderline').each(function() {
jQuery(this).find('a').each(function() {
// jQuery(this).append(' ');
});
});
}
//mobile menu init, resize
function mobileMenuShow() {
"use strict";
if (THEMEREX_RESPONSIVE_MENU ul').removeAttr('style');
}
}
// Infinite Scroll
function infiniteScroll() {
"use strict";
var v = jQuery('#viewmore_link.pagination_infinite').offset();
if (jQuery(this).scrollTop() + jQuery(this).height() + 100 >= v.top && !THEMEREX_VIEWMORE_BUSY) {
jQuery('#viewmore_link').eq(0).trigger('click');
}
}
//itemPageFull
function itemPageFull() {
"use strict";
var bodyHeight = jQuery(window).height();
jQuery('.itemPageFull').css('height', bodyHeight - jQuery('.topWrap').height());
jQuery('#sidemenu_scroll').css('height', bodyHeight);
jQuery('.rev_slider .tp-caption').each(function() {
if (jQuery(this).find('.rev_border').length > 0)
jQuery(this).addClass('sc_rev_border');
if (jQuery(this).find('.rev_border.rev_black').length > 0)
jQuery(this).addClass('rev_black');
});
}
//init scroll
function initScroll(idScroll) {
"use strict";
if (!jQuery('#' + idScroll).hasClass("scrollInit")) {
jQuery('#' + idScroll).addClass('scrollInit').mCustomScrollbar({
scrollButtons: {
enable: false
},
});
jQuery('.scrollPositionAction > .roundButton').click(function(e) {
"use strict";
var scrollAction = jQuery(this).data('scroll');
jQuery('#' + idScroll).mCustomScrollbar("scrollTo", scrollAction);
e.preventDefault();
return false;
});
}
}
//scroll Action
function scrollAction() {
"use strict";
var head = jQuery('header');
var buttonScrollTop = jQuery('.upToScroll');
var scrollPos = jQuery(window).scrollTop();
var headHeight = jQuery(window).height();
var topMemuHeight = head.height();
var menuMinWidth = jQuery(window).width() > jQuery('body').data('responsive');
var menuMinWidth = head.find('.menuFixedWrap').height();
//fixed menu
if (scrollPos = topMemuHeight / 1.5 && menuMinWidth) {
head.addClass('fixedTopMenuShow');
//smartScroll
if (THEMEREX_REMEMBERSCROLL scrollPos) {
//scroll down
head.addClass('smartScrollDown');
jQuery('.menuFixedWrap').height('auto');
}
}
THEMEREX_REMEMBERSCROLL = scrollPos;
//button UP
if (scrollPos > topMemuHeight) {
buttonScrollTop.addClass('buttonShow');
} else {
buttonScrollTop.removeClass('buttonShow');
}
}
function fullSlider() {
"use strict";
if (jQuery('.fullScreenSlider').length > 0) {
jQuery('.sliderHeader, .sliderHeader .rsContent').css('height', jQuery(window).height())
}
if(jQuery(window).width()
');
isotopeRemove(itemWrap, itemWrap.find('.fullItemWrap'));
var next_before = item.nextAll('.itemFirst').eq(0);
if (!item.hasClass('itemLast') && next_before.length > 0) {
item.nextAll('.itemFirst:visible').eq(0).before(itemContent);
} else {
itemWrap.find('article.itemLast').after(itemContent);
}
//jQuery('.isotopeItem.itemLast[data-row-num="'+itemRow+'"]').after( itemContent );
itemWrap.isotope('destroy').isotope({
//getSortData: {
// ids: '[data-postid]',
//},
//sortBy: ['ids'],
layoutMode: 'masonry',
itemSelector: '.isotopeItem',
filter: THEMEREX_isotopeFilter,
animationOptions: {
duration: 750,
easing: 'linear',
queue: false
}
}).isotope('on', 'layoutComplete', function() {
//function complete
});
//add effect
setTimeout(function() {
"use strict";
isotoreEffect();
}, 500);
isotopeScrolling(item)
//load content
jQuery.post(THEMEREX_ajax_url, {
action: 'isotope_content',
nonce: THEMEREX_ajax_nonce,
postID: istPostID,
}).done(function(response) {
"use strict";
var rez = JSON.parse(response);
jQuery('.fullItemWrap .fullContent').html((rez != '' ? rez.data : THEMEREX_SEND_ERROR)).parent('.fullItemWrap').addClass('ajaxShow');
initShortcodes(jQuery('.fullItemWrap'));
initPostFormats();
//nav prev
jQuery('.isotopeNav.isoPrev').data('nav-id', (navPrevID != undefined ? navPrevID : navLastID));
jQuery('.isotopeNav.isoNext').data('nav-id', (navNextID != undefined ? navNextID : navFirstID));
THEMEREX_isotopeInitCounter = 0;
initRelayoutIsotope(jQuery('.fullItemWrap .fullContent'));
});
THEMEREX_isotopeMemoryID = istPostID;
return false;
}
function isotopeFilterClass(selector) {
"use strict";
jQuery('.isotopeWrap .isotopeItem').removeClass('isotopeVisible').each(function() {
if (selector == '*') {
jQuery(this).addClass('isotopeVisible');
} else {
jQuery(selector).addClass('isotopeVisible');
}
});
}
//isotope remove
function isotopeRemove(itemWrap, item) {
"use strict";
var isotopeWrap = itemWrap;
isotopeWrap.find('.isotopeItem[data-postid="' + THEMEREX_isotopeMemoryID + '"]').removeClass('isotopeActive')
isotopeWrap.isotope('remove', item).isotope('layout');
}
//isotope Images Complete
function initRelayoutIsotope(content) {
"use strict";
if (!imagesCompleteLoad(content) && THEMEREX_isotopeInitCounter++