jQnC(document).ready(function(){
	
	jQnC(".iframe").fancybox({
		'type': 'iframe',
		'transitionIn':	'fade',
		'transitionOut': 'fade',
		'opacity': true,
		'overlayOpacity': 0.9,
		'overlayColor': '#000000',
		'speedIn': 400,
		'speedOut': 400,
		'padding': 0,
		'titlePosition': 'inside',
		'scrolling': 'no',
		'width': 540,
		'height': 622,
		'autoScale': false,
		//'centerOnScroll': true,
		'modal': true
	});
	
	jQnC("#onload").fancybox({
		'type': 'iframe',
		'transitionIn':	'fade',
		'transitionOut': 'fade',
		'opacity': true,
		'overlayOpacity': 0.9,
		'overlayColor': '#000000',
		'speedIn': 400,
		'speedOut': 400,
		'padding': 0,
		'titlePosition': 'inside',
		'scrolling': 'no',
		'width': 570,
		'height': 652,
		'autoScale': false,
		'modal': true
	}).trigger('click');
	
  	if ((jQnC.browser.msie) && (jQnC.browser.version<=6)) {
		jQnC(".social").css("display","none");
	}
	else {
		var slideSpeed = 400;
		var cssObj = {
			'right' : '-220px',
			'display' : 'block'
		}
		jQnC(".social").hide();
		if (jQnC(window).width()>2900) {
			jQnC('.social').show();
			jQnC(".social").css(cssObj);
		}
		jQnC(".social").hover(function(){
			jQnC(this).stop(true, false).animate({right:"0"},slideSpeed);
		},function(){
			jQnC(this).stop(true, false).animate({right:"-220"},slideSpeed);
		});
	}
});
