/*
 * Mark external Links and set Title
 */
var ie5 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.0") != -1);
var ie55 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1);
var ie6 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1);

if (!ie5) {
	jQuery(document).ready(function(){
		jQuery("a[rel='external']").each(function(i){
			if (typeof jQuery(this).attr('title') == "undefined" )
				jQuery(this).attr('title',jQuery(this).attr('href')+'    (external link)');
			else
				jQuery(this).attr('title',jQuery(this).attr('title')+'    (external link)');
			jQuery(this).append('<span class="external" title="'+jQuery(this).attr('title')+'">&nbsp;</span>').click(function(){
				window.open(jQuery(this).attr('href')); return false;
			});
		});
	});
}

$(document).ready(function(){

	$("#button_pc a").click(function() {
		goToByScroll("connector");
		return false;
	});
	$(".links5 a").click(function() {
		goToByScroll("top");
		return false;
	});
	
	$('.table tr:odd').addClass('odd');
	
	$('.imagebox a.lightbox').lightBox({					
							imageLoading: 'http://www.nextcom.sk/Data/722/UserFiles/images/loading.gif',
							imageBtnClose: 'http://www.nextcom.sk/Data/722/UserFiles/images/closelabel.gif',
							imageBtnPrev: 'http://www.nextcom.sk/Data/722/UserFiles/images/prevlabel.gif',
							imageBtnNext: 'http://www.nextcom.sk/Data/722/UserFiles/images/nextlabel.gif',
							txtImage: 'Image',
							txtOf: 'of'						
						});

});


function goToByScroll(id){
	$('html,body').animate({scrollTop: $("#"+id).offset().top},1000);
}
