10 sisustusideed kontorisse
Clopidogrel Generico Preco
5-5 stars based on
470 reviews
Lopid is used for treating high blood cholesterol and triglycerides.
Bactrim dose ped iatrics, a multidisciplinary advisory group, developed specific recommendations for clinicians. These are published in JAMA. The report of this multidisciplinary group (the Cochrane Collaboration) was commissioned by the European Medicines Agency for a review of the efficacy and safety daclizumab (a humanized monoclonal antibody that selectively degrades a toxin in breast cancer). They reviewed all relevant randomized controlled trials in children
what does clopidogrel cost this age group and evaluated data from these trials. trial results included: a retrospective analysis of the data four children from three different trials and a review of the clinical trial information that was not included in the original trials. Although trial investigators did not use a placebo group (a strategy that was recommended in these trials at the time, but not for children), data from these children indicated a significant difference in overall survival rates between daclizumab and placebo. The researchers determined that treatment with daclizumab was better than placebo. Based on randomized controlled trials involving more than 1,000 children, the researchers determined that daclizumab was as effective the approved therapy (cyclophosphamide/finasteride), and that no additional adverse events occurred or were expected with use of daclizumab for treatment advanced or metastatic breast cancer.[1] Although these trials were large, a large subgroup analysis with smaller number of participants resulted in the same result. authors conclude that daclizumab had clinically important differences in treatment children. The investigators point out that additional clinical trials with more diverse populations are necessary to confirm these results and evaluate the potential benefits of daclizumab when used in pediatric patients.
Summary
The authors note important role of clinical trials in guiding evidence-based treatment of what is the generic drug for clopidogrel cancer. As these large randomized controlled trials indicate, daclizumab in combination with other treatment options, or when used alone, is very effective for the treatment of metastatic breast cancer, including pediatric cancer. The use of daclizumab in combination with other chemotherapeutic agents in this age group is recommended, and the use of single agents as monotherapy for metastatic breast cancer and local treatment for children has been discouraged.
Concerns about the use and effects of chemotherapeutic agents have resulted in the U.S. Food and Drug Administration's (FDA) recent review and guidance on use of chemotherapeutic agents in pediatric patients. The FDA also recently issued a statement on the use of radiotherapy in children. The FDA also has released recommendations for the pharmacokinetics of a wide array drugs for use in pediatric patients. Some of these drugs that were previously reserved for specific indications appear to be more helpful in this age group. It is important to know that treatment with the recommended doses can cause significant side effects in some patients.
As these guidelines are based on evidence that was published several years ago (or that has been reviewed by the Cochrane Collaboration), it's interesting to compare them the recommendations for use of radiotherapy in childhood released by the FDA about a year ago. The FDA guidance is focused on the use of low-dose radiotherapy to treat cancer or prevent rather than specifically on the use of radiation or other high-dose treatment to treat cancer.
The Cochrane Collaboration has developed guidelines for the treatment of children with cancer based on systematic reviews of more than 100 randomized controlled trials, using a random-effects model approach in variety of subgroups (see: Cochrane Collaboration, 2006). The clinical evidence review of authors determined that there are substantial differences in the therapeutic outcomes based on use of different doses to treat advanced, metastatic or local breast cancer among patients ages 2–13 as assessed in these trials. Dosing decisions were made in the context of a combination clinical characteristics related to age, tumor size and number, type location of primary tumor, and the effect of treatment on primary tumor and disease. A number of outcomes
cheap generic clopidogrel have been suggested by these systematic reviews to help guide clinical practice. These included progression-free survival, response to treatment, overall tumor and toxicity.[2,3]
Recommendations for Dosing Children with Cancer in
Is indomethacin a generic the United States
Children with localized or metastatic breast cancer who have received chemotherapy or radiotherapy and who are undergoing adjuvant radiotherapy treatments such as IP-PET, PDA and/or CDX have been prescribed daclizumab (daclatasvir) [1]. In children under 12 years of age [4–6], this dose daclizumab is currently recommended for pediatric oncology therapy. The dosage has been updated and increased for children from ages 12 through 16 years. Patients in this age group with atypical cancers
Buy cheap propecia uk such as HER2-positive non-Small Cell Lung Cancer (NSCLC) (7.5 mg/kg once weekly at 4 weeks) or stage I II advanced breast.
Redcliffe
Cowichan Valley
Skeena-Queen Charlotte
Gosford
Meekatharra
cheap generic clopidogrel
clopidogrel genericon 75 mg filmtabletten
Lopid 300mg $111.55 - $1.86 Per pill Lopid 300mg $186.82 - $1.56 Per pill Lopid 300mg $262.08 - $1.46 Per pill Lopid 300mg $374.98 - $1.39 Per pill Lopid 300mg $73.92 - $2.46 Per pill
Cialis generika aus deutschland bestellen Wo bekommt man sildenafil ohne rezept Can i buy viagra over the counter in perth
Cardace tabletes.
A.1 Design and Installation
The components that constitute a PCMCIA® card in the "stand alone" configurations are card itself, the expansion slot connector, and computer's CPU. When the card is in a "stand alone" configuration, computer with integrated hardware, such as the IBM PC, requires a PCI expansion card, and standard peripheral card.
A PCI expansion card is small piece of integrated motherboard hardware designed to fit into the existing PCI slots of computer's motherboard. Some expansion cards are standard and used on all computers; others are specialized and used solely on particular computer models or operating systems.
Most PCMCIA cards require the presence of a computer that supports the PCMCIA card standard and has a PCI slots. Some PCs also are capable of connecting PCs that don't support the card. A basic specification for the PCMCIA card standard states that "PCI cards must work on any computer with a normal PCI slot"; these "stand
Sildenafil 100mg rezeptfrei kaufen alone" PCs, such as personal digital assistants (PDAs), are not part of the PCI standard and need to be converted into PCI-compatible computers through software (for many PDA designs, it is sufficient to purchase a special software kit and apply that program to the specific PDA hardware).
A PCI card has two sets of connectors: the computer card, which is typically a standard piece of hardware, and the PCMCIA slot; slot is typically a special-purpose interface used as "switchboard."
PCI cards come in two basic versions
what is the cost of clopidogrel -- standard and specialized. PCMCS cards include a card holder, which allows placement and removal via slot-mount holes; the holder is available in two versions, with or without an adhesive card back-strap. A specialized PCMCIA can only be installed with a specialized adapter, usually of metal construction -- such as a PCI connector that is soldered onto the PCMCS connector -- or can only be installed by adding, removing,
clopidogrel brand or generic and substituting the connector as per a clopidogrel hydrochlorid hexal 75 mg filmtabletten specific manufacturer's specification. Standard PCMCIA slots are identified by a rectangular box with four slots at a diagonal angle; specialty PCMCIA-style expansion slot is located at an angle some extreme edge of the rectangular expansion box; a "hard card slot" consists of a slot that is bent as though the slot were intended to be a metal "sturdier" element than the other slots in a PCMCIA configuration.
Standard PCMCIA cards are available as "standalone," or "bare," cards; the specification for a specific card says whether is "bare" or has an appropriate "back-pack"; a card without an attached adapter and "sturdier" metal back-strap may still meet the specification, however.
An example of a standard PCMCIA card from the ATB brand is shown in Figure A.1a. A PCI expansion card with both a standard and specialized version is shown in Figure A.1b.
Figure A.1
PCI card specification for standard version
Figure A.2
Standard PCMCS card specifications and front-pack for supplemental version
Figure A.3
PCMCS bare PCMCIA slot specifications and front-pack for supplemental version
Figures A.1a–[a] and A.1b–[a] show PCMCIA "bare cards" in both the standard and supplemental versions of the same card, ATB AT01-B "Bare Card." In both cases:
The bare card specification has been modified to permit the bare card be configured with a proprietary PCMCIA "back-pack"; this may either simply be the standard PCMCIA back-pack, with additional "sturdier" metal hardware and an attached adapter; or it might also include the "switchboard hardware," which is same as the standard PCMCIA interface hardware used on the standard PCMCIA-compatible card (for example, the "switchboard" hardware in ATB "Bare Card") and has a special pin (sometimes identified by an "+" sign) that allows the bare Card to connect a specialized computer. "switchboard" is, in essence, a specialized computer that acts in place of the standard PCMCIA slot on a card; see the section on PCI expansion cards. In this case, the PCMCIA card has a special connector to provide additional electrical support.
A "sturdy" standard PCMCIA slot adapter is shown in Figure A.3a (and is shown in Figure A.9 of the corresponding standard PCMCIA specification).
Figure A.3a
Standard PCMCIA card slot specification for standard version
Figure A.3b
PCMCIA "back-pack" specification for supplemental version
It is not the PCI specification.
Lopid in Kans. Lopid in Abilene Lopid in Louisiana
Bad Laasphe Feuchtwangen Lopid Bergheim Norden
Tom Price Fort St. John Armidale La Trobe
Kimball Lopid Miami Lakes Alice Sweetwater
'+
''+
(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++