// JavaScript Document
Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('h4');
Cufon.replace('h5');
Cufon.replace('ul#navbar:has(ul) > li   a', { hover: true});
//selects only 2nd level links
Cufon.replace('ul#navbar:not(:has(ul)) a', { hover: true});

Cufon('.tab-area li a', {
color: '#555555',
hover: {
color: '#ff9f00'
}
});
Cufon('.tab-area li.active a', {
color: '#f19902',
hover: {
color: '#f19902'
}
});
Cufon('#navbar li ul li a', {
color: '#ffffff',
hover: {
color: '#000000'
}
});
Cufon('.tab-blog li a', {
color: '#555555',
hover: {
color: '#ff9f00'
}
});
Cufon.replace('ul.tab-blog:has(ul) > li   a', { hover: true});
Cufon('.tab-blog li.active a', {
color: '#ff9f00',
hover: {
color: '#ff9f00'
}
});
Cufon('.nav-gallery li a', {
color: '#04DFFF',
hover: {
color: '#ff9f00'
}
});
Cufon('.nav-gallery li.active a', {
color: '#ff9f00',
hover: {
color: '#ff9f00'
}
});

$(document).ready(function() {
$(".gallery-images").hide(); //Hide all content
$(".nav-gallery ul li:first").addClass("active").show(); //Activate first tab
$(".gallery-images:first").show(); //Show first tab content
//On Click Event
$(".nav-gallery ul li").click(function() {
$(".nav-gallery ul li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".gallery-images").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(200); //Fade in the active content
return false;
});

$("a.galleryImg").fancybox({'titlePosition'	: 'over'});
$("a.videogallery").click(function() {
$.fancybox({
'padding'             : 0,
'autoScale'   : false,
'transitionIn'        : 'none',
'transitionOut'       : 'none',
'title'               : this.title,
'width'               : 680,
'height'              : 495,
'href'                : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'type'                : 'swf',    // <--add a comma here
'swf'       : {'wmode':'transparent','allowfullscreen':'true'}// <-- flashvars here
});
return false;

});

$('#navbar li.active').append('<em>&nbsp;</em>');

$('#slider').cycle({
fx:     'fade',
delay:	2000,
timeout:  2000,
pager: '#pagerslider',
prev:    '#prev',
next:    '#next'

});

//THIS IS FOR TAB

$(".container-price").hide(); //Hide all content
$(".tab-area ul li:first").addClass("active").show(); //Activate first tab
$(".content-box-tab:first").show(); //Show first tab content
//On Click Event
$(".tab-area ul li").click(function() {
$(".tab-area ul li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".content-box-tab").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active content
return false;
});




});
