function openwindow()
{
artclasses = window.open ( "http://203.206.130.70/moodle/login/index.php", "artclasses", " location = 0, resizable = yes, status = 0, scrollbars = 1, width = 750, height=500 ");
artclasses.moveTo (300,100);
}

$(document).ready(function() {

	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

});

       $(document).ready(function(){

   //	$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav

  	$("ul.topnav li span").click(function() { //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
       // $(this).parent().find("ul.subnav_main").slideDown('fast').show();
		$(this).parent().hover(function() {
		}, function(){
			$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
           // $(this).parent().find("ul.subnav_main").slideUp('slow');
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		})
       .hover(function() {
			$(this).addClass("subhover"); //On hover over, add class "subhover"
            $(this).parent().find("ul.subnav_main").slideDown('fast').show();
            $(this).parent().hover(function(){
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
            $(this).parent().find("ul.subnav_main").slideUp('slow');

 });
    });


});




