// JavaScript Document
/*jQuery.noConflict();
var $cof = jQuery;
$cof(document).ready(function(){
    $cof(".tabs").tabs();
	$cof("#tabs-rotate").tabs({ fx: { opacity: 'show',width: 'show',duration: 'slow' }}).tabs('rotate', 10000);
	$cof('#tabs-rotate').hover(function(){
			$cof(this).tabs('rotate', 0, false);
		},function(){
			$cof(this).tabs({ fx: { opacity: 'show',width: 'show',duration: 'slow' }}).tabs('rotate', 10000);
		}
	);
});*/



jQuery.noConflict();
var $cof = jQuery;
$cof(document).ready(function(){
   $cof(".tabs").tabs();	
	//var tabs1 = $cof('.tabs').tabs();
	//var selected1 = tabs1.tabs('option', 'selected');alert(selected1);
	var tabs1 = $cof('#tabs-rotate').tabs();
	$cof("#tabs-rotate").tabs({ fx: { opacity: 'show',duration: 'slow','easing': "easein"  } })
	$cof('#tabs-rotate').bind('tabsshow', function(event, ui) {
        //tabs1.attr('id', 'activeTab:'+ui.index); //alert(ui.panel.id);
		//tabs1.attr('class', 'ClassactiveTab');
		if (ui.panel.id == "fragment-1") {
        //resizeMap();
		document.getElementById('top_main_divid').className = "mainnavin";
    	}
		else if (ui.panel.id == "fragment-2") {
        //resizeMap();
		document.getElementById('top_main_divid').className = "mainnavin2";
    	}
		else if (ui.panel.id == "fragment-3") {
        //resizeMap();
		document.getElementById('top_main_divid').className = "mainnavin3";
    	}
		else if (ui.panel.id == "fragment-4") {
        //resizeMap();
		document.getElementById('top_main_divid').className = "mainnavin4";
    	} else {
			document.getElementById('fragmentli-1').className = "ui-state-default";
			document.getElementById('fragmentli-2').className = "ui-state-default";
			document.getElementById('fragmentli-3').className = "ui-state-default";
			document.getElementById('fragmentli-4').className = "ui-state-default";
		}
  }) 
	.tabs('rotate', 10000);
	//var tabs1 = $cof('#tabs-rotate').tabs();
	//var selected1 = tabs1.data('selected.tabs');alert(selected1);

    // var selected1 = tabs1.tabs('option', 'selected');
	//var tabs1 = $cof('#tabs-rotate').tabs();

	$cof('#tabs-rotate').hover(function(){
			$cof(this).tabs('rotate', 0, false);			
		},function(){
			$cof(this).tabs({ fx: { opacity: 'show',duration: 'slow','easing': "easein" }}).tabs('rotate', 10000);
		}
	);
	
});


/*$cof("#tabs-rotate").bind('selected.tabs', function(event, ui) {
 	//document.location='#'+(ui.index+1);
	alert(ui.index);
});*/
/*var tabs1 = $cof('#tabs-rotate').tabs();
	var selected1 = tabs1.tabs('option', 'selected');alert(selected1);*/
/*var selected1 = $cof(".tabs" ).tabs( "option", "selected" );
alert(selected1);*/
/*$cof(function() {

$cof('#tabs-rotate').tabs({ fxFade: true, fxSpeed: 'slow' });

});*/
