
$("#vk-logo").mouseover(function() {
	$(this).attr('src','img/vk-logo-on.png');
}).mouseout(function(){
	$(this).attr('src','img/vk-logo.png');
});

$("#facebook-logo").mouseover(function() {
	$(this).attr('src','img/facebook-logo-on.png');
}).mouseout(function(){
	$(this).attr('src','img/facebook-logo.png');
});

hs.graphicsDir = 'highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.wrapperClassName = 'dark borderless floating-caption';
hs.fadeInOut = true;
hs.dimmingOpacity = .75;
hs.dragByHeading = false;

if (hs.addSlideshow) hs.addSlideshow({
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: 1,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});

/*hs.Expander.prototype.onAfterExpand = function () {
//   alert (this.heading.innerHTML);
}*/

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/arrowr.png')
		$(this).attr('src','img/arrowr-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/arrowr-on.png')
		$(this).attr('src','img/arrowr.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/arrowl.png')
		$(this).attr('src','img/arrowl-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/arrowl-on.png')
		$(this).attr('src','img/arrowl.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/cross.png')
		$(this).attr('src','img/cross-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/cross-on.png')
		$(this).attr('src','img/cross.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/order.png')
		$(this).attr('src','img/order-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/order-on.png')
		$(this).attr('src','img/order.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/cart.png')
		$(this).attr('src','img/cart-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/cart-on.png')
		$(this).attr('src','img/cart.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/send.png')
		$(this).attr('src','img/send-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/send-on.png')
		$(this).attr('src','img/send.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/add.png')
		$(this).attr('src','img/add-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/add-on.png')
		$(this).attr('src','img/add.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/help.png')
		$(this).attr('src','img/help-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/help-on.png')
		$(this).attr('src','img/help.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/payment.png')
		$(this).attr('src','img/payment-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/payment-on.png')
		$(this).attr('src','img/payment.png');
});

$("img").mouseover(function() {
	if ($(this).attr('src')==='img/delivery.png')
		$(this).attr('src','img/delivery-on.png');
}).mouseout(function(){
	if ($(this).attr('src')==='img/delivery-on.png')
		$(this).attr('src','img/delivery.png');
});

if ($("#year-col")) { // collections
	$("#year-col").change(function() {
		self.location.href = "collections.html?year="+$(this).val();
	});
}
if ($("#year-bs")) { // backstage
	$("#year-bs").change(function() {
		self.location.href = "backstage.html?year="+$(this).val();
	});
}
if ($("#year-cam")) { // campaign
	$("#year-cam").change(function() {
		self.location.href = "campaign.html?year="+$(this).val();
	});
}
if ($("#year-pb")) { // press-book
	$("#year-pb").change(function() {
		self.location.href = "press-book.html?year="+$(this).val();
	});
}

function prn_im_bt(url,title,image) {
/*	url   = encodeURIComponent(url);
	title = encodeURIComponent(title);
	image = encodeURIComponent(img);*/
	     
	str  = "<div class='social-bmarks-btn'>";
	str += "<span>+</span> <a title='Запостить в Facebook' target=_blank rel=nofollow href='http://www.facebook.com/sharer.php?u="+url+"&t="+title+"'>facebook</a>";
	str += "&nbsp;&nbsp;&nbsp;<span>+</span> <a title='Запостить в ВКонтакте' target=_blank rel=nofollow href='http://vkontakte.ru/share.php?url="+url+"&title="+title+"&image="+image+"'>vkontakte</a>";
	str += "&nbsp;&nbsp;&nbsp;<span>+</span> <a rel='nofollow' title='Запостить в Twitter' href='http://twitter.com/home?status="+image+"' target='_blank' rel='nofollow'>twitter</a>";
	str += "&nbsp;&nbsp;</div>";

	return str;
}

