var myAgent = navigator.userAgent;
var whetherWIN = myAgent.indexOf('Windows');
var whetherSA = myAgent.indexOf('Safari');
var whetherOP = myAgent.indexOf('Opera');
var whetherIE = myAgent.indexOf('MSIE');
var whetherIE6 = myAgent.indexOf('MSIE 6.0');
var whetherIE8 = myAgent.indexOf('MSIE 8.0');

(function(){
$(document).ready(function(){
	(whetherWIN > -1) ? $('head').append('<link rel="stylesheet" href="css/fallback.css" />') : null;
	//Back button Start =======================================
	var backBtn = $('button.backBtn');
	backBtn.click(function(){
		if(whetherSA == -1){
			$('html').stop().animate({scrollTop:0}, 600, 'swing');
		}else{
			$('body').stop().animate({scrollTop:0}, 600, 'swing');
		}; 
	});
	
	//Back button End =========================================
	
	//iframe switch Start =====================================
	/*
	$('section#registration iframe').hide();
	
	var myBtn = $('article section#registration ul#btnSet li>a');
	var eachFrame = $('section#registration iframe');
	myBtn.click(function(){
		var myID = $(this).attr('rel');
		eachFrame.hide(400);
		eachFrame.filter(function(){
					return $(this).attr('id') == myID;
				}).slideDown(600);
		return false;
 	});
	*/
	//iframe switch End =======================================
});
})(); 
