$.noConflict();jQuery(document).ready(function($){jQuery("#content div.portfolio-one-column-circle:last").addClass("portfolio-one-column-circle-last");jQuery("#content div.portfolio-one-column-slideshow:last").addClass("portfolio-one-column-slideshow-last");jQuery("#content div.portfolio-one-column-full:last").addClass("portfolio-one-column-full-last");jQuery("#toptoolbar .menu-toptoolbar ul li a:last").addClass("last-child");jQuery("#tour ul li:last").addClass("last-child");jQuery(".menu-header ul li:first").addClass("first-child");jQuery(".menu-header ul li:last-child").addClass("last-child");jQuery("#sub-footer .menu-footer ul li:last").addClass("last-child");jQuery("#footer-tabs .tab:last").addClass("tab-last-child");jQuery("#front-page-botton-widgets div.column li.widget-container:last").addClass("last-child");jQuery("#front-page-presentation-row-4 ul li.widget-container:last-child").addClass("last-child");jQuery("#front-page-business #front-page-botton-widgets div.column:last-child").addClass("last-child");jQuery('.menu-header ul').superfish({delay:500,animation:{opacity:'show',height:'show'},speed:'fast',autoArrows:true,dropShadows:false});$("#content form").jqTransform();if($('#bottom-content-scroll ul li').size()>0){jQuery("#bottom-content-scroll ul").bxSlider({mode:'fade',infiniteLoop:true,pager:true,controls:false,auto:true,autoHover:true,speed:'800',pause:'3000'});}
if($('#footer-partners ul li').size()>0){jQuery("#footer-partners ul").bxSlider({infiniteLoop:true,pager:false,controls:true,auto:true,autoHover:true,speed:'800',pause:'3000',displaySlideQty:5,moveSlideQty:1});}
if($('#front-page-presentation-row-5 ul li').size()>0){jQuery("#front-page-presentation-row-5 ul").bxSlider({infiniteLoop:true,pager:false,controls:true,auto:true,autoHover:true,speed:'800',pause:'4000',displaySlideQty:4,moveSlideQty:1});}
jQuery("#blog-accordion").accordion({autoHeight:false});jQuery('#tour').tabs();jQuery('#tour li a').click(function(){jQuery('#tour li').removeClass('ui-tabs-before-active');jQuery('#tour .ui-state-active').prevAll('li').addClass('ui-tabs-before-active');});jQuery('#bottom-posts a[title]').tooltip({'effect':'slide','offset':[-6,70],'layout':'<div><div class="content"></div><span class="arrow"></span></div>'});jQuery('#sharing a[title]').tooltip({'effect':'slide','offset':[-20,100],'layout':'<div><div class="content"></div><span class="arrow"></span></div>'});jQuery('#related a[title]').tooltip({'effect':'slide','offset':[-2,70],'layout':'<div><div class="content"></div><span class="arrow"></span></div>'});jQuery('#content a.gototooltip[title]').tooltip({'effect':'slide','offset':[-6,70],'layout':'<div><div class="content"></div><span class="arrow"></div>'});jQuery('#content a.tooltip-title[title]').tooltip({'effect':'slide','offset':[90,70],'layout':'<div><div class="content"></div><span class="arrow"></span></div>'});jQuery('#tour a.tour-page-title[title]').tooltip({'effect':'slide','offset':[-6,110],'layout':'<div><div class="content"></div><span class="arrow"></span></div>'});jQuery('#front-page-presentation-row-5 a.move-to-tooltip[title]').tooltip({'effect':'slide','offset':[-6,110],'layout':'<div><div class="content"></div><span class="arrow"></span></div>'});jQuery("#content table tr:even").addClass("alternative");jQuery("#content table tr td:last-child").addClass("last");jQuery("#content table tr th:last-child").addClass("last");jQuery("#content table.pricing tr td").removeClass("last");jQuery("#content table.pricing tr").removeClass("alternative");jQuery("#content table.pricing tr.buttons td:first-child").addClass("first")
jQuery("#content table.pricing tr.buttons td:last-child").addClass("last");jQuery("#content table.pricing tr.content td:first-child").addClass("first");$(".pageflip").each(function(){$(this).hover(function(){$(this).find('img.flip').stop().animate({width:'60px',height:'60px'},400);$(this).find('.icon').stop().animate({width:'60px',height:'60px'},400);},function(){$(this).find('img.flip').stop().animate({width:'20px',height:'20px'},220);$(this).find('.icon').stop().animate({width:'20px',height:'20px'},200);});});if(!jQuery.browser.msie&&jQuery.browser.version.substring(0,2)!="8.")
{$("#toolbar-sharing a.social-link").each(function(){if($.browser.msie&&parseInt($.browser.version,10)=='8'){$(this).css('filter','alpha(opacity=50)');}else{$(this).css('opacity','0.5');}
$(this).hover(function(){if($.browser.msie&&parseInt($.browser.version,10)=='8'){$(this).stop().animate({'filter':'alpha(opacity=100)'},300);}else{$(this).stop().animate({'opacity':'1'},300);}},function(){if($.browser.msie&&parseInt($.browser.version,10)=='8'){$(this).stop().animate({'filter':'alpha(opacity=50)'},300);}else{$(this).stop().animate({'opacity':'0.5'},300);}})});}
$("#content span.portfolio-icon").each(function(){$(this).css('opacity','0.0');$(this).hover(function(){$(this).stop().animate({'opacity':'1.0'},300);$(this).next('.blackandwhite').stop().animate({'opacity':'0.0'},300);},function(){$(this).stop().animate({'opacity':'0.0'},300);$(this).next('.blackandwhite').stop().animate({'opacity':'1.0'},300);})});$(".gallery-icon a").attr('rel','gallery[modal]');$("a[rel^='gallery[modal]'],a[rel^='minigallery[modal]'],a[rel^='single-modal'],a[rel^='portfolio[modal]']").prettyPhoto({theme:'duotive-modal',opacity:0.5,show_title:false,overlay_gallery:false});jQuery('.tabs,.sidebar-tabs').tabs()
jQuery('.accordion').accordion({autoHeight:false,active:-1,collapsible:true});jQuery("#content .accordion .ui-accordion-content p:last-child").addClass("no-padding-bottom");jQuery("#content .tabs .ui-tabs-panel p:last-child").addClass("no-padding-bottom");jQuery("#table-of-content ul li:even").addClass("alternative");$("#commentform").validate();$("#contactform").submit(function(){if($("#contactform input[name=name]").val()=='Name:')$("#contactform input[name=name]").val('');if($("#contactform input[name=email]").val()=='E-mail:')$("#contactform input[name=email]").val('');if($("#contactform input[name=subject]").val()=='Subject:')$("#contactform input[name=subject]").val('');if($("#contactform textarea[name=message]").val()=='Message:')$("#contactform textarea[name=message]").val('');})
$("#contactform").validate();function showLoader(){$('#contact-form-loader').fadeIn();}
function showResponse(responseText,statusText,xhr,$form){$('#contact-form-loader').fadeOut();$('#contact-confirmation-message').html(responseText);$('#contact-confirmation-message').fadeIn();}
var contactformoptions={beforeSubmit:showLoader,success:showResponse};$('#contactform').ajaxForm(contactformoptions);var download=$('#logodownload');$('#headerlogo img').bind('contextmenu',function(e){e.preventDefault();download.fadeIn();$(document).one("click",function(e){if(!$(e.target).parents().hasClass("logo"))
e.preventDefault();download.fadeOut();});});download.find('a.close').click(function(e){e.preventDefault();download.fadeOut();});var photos=$('.social-dropdown.flickr .photo a');photos.each(function(){var link=$(this);link.attr('href',link.find('img').attr('src'));link.attr('rel','flickr[modal]');});photos.prettyPhoto({theme:'duotive-modal',opacity:0.5,show_title:false,overlay_gallery:false});});jQuery(window).load(function(){function equalHeight(){var maxHeight=0;jQuery("#front-page-presentation-row-1 div ul").each(function(index){if(jQuery(this).height()>maxHeight)maxHeight=jQuery(this).height();});jQuery("#front-page-presentation-row-1 div.sep").height(maxHeight);jQuery("#front-page-presentation-row-5 div li").each(function(index){if(jQuery(this).height()>maxHeight)maxHeight=jQuery(this).height();});jQuery("#front-page-presentation-row-5 div li").height(maxHeight);jQuery("#front-page-posts .front-page-post").each(function(index){if(jQuery(this).height()>maxHeight)maxHeight=jQuery(this).height();});jQuery("#front-page-posts .front-page-post").height(maxHeight);}
equalHeight();});
