﻿function getContent(ID) {
	var showImage = '#mainContent';
	switch(ID)
		{
		case 1:
  			$.post("server.asp", {ID:ID} , function(data) { $(showImage).html(data); getRotatorReady4Services();});
  			break;
		case 2:
  			$.post("server.asp", {ID:ID} , function(data) { $(showImage).html(data); getRotatorReady();});
  			break;
		default:
  			//code to be executed if n is different from case 1 and 2
			$.post("server.asp", {ID:ID} , function(data) { $(showImage).html(data); });
  			break;
		}
       }

function getRotatorReady(){
	$(".container").wtRotator({
		width:800,
		height:390,
		button_width:24,
		button_height:24,
		button_margin:5,
		auto_start:true,
		delay:12000,
		play_once:false,
		transition:"fade",
		transition_speed:800,
		auto_center:true,
		easing:"",
		cpanel_position:"outside",
		cpanel_align:"BR",
		timer_align:"top",
		display_thumbs:true,
		display_dbuttons:true,
		display_playbutton:true,
		display_numbers:true,
		display_thumbimg:false,
		display_timer:false,
		mouseover_pause:false,
		cpanel_mouseover:false,
		text_mouseover:false,
		text_effect:"fade",
		text_sync:true,
		tooltip_type:"image",
		lock_tooltip:true,
		shuffle:true,
		block_size:75,
		vert_size:55,
		horz_size:50,
		block_delay:25,
		vstripe_delay:75,
		hstripe_delay:180			
	});
}

function getRotatorReady4Services() {
	$(".container").wtRotator({
		width:800,
		height:390,
		button_width:24,
		button_height:24,
		button_margin:5,
		auto_start:true,
		delay:12000,
		play_once:false,
		transition:"fade",
		transition_speed:1000,
		auto_center:true,
		easing:"",
		cpanel_position:"outside",
		cpanel_align:"BR",
		timer_align:"top",
		display_thumbs:true,
		display_dbuttons:true,
		display_playbutton:true,
		display_numbers:true,
		display_thumbimg:false,
		display_timer:false,
		mouseover_pause:false,
		cpanel_mouseover:false,
		text_mouseover:false,
		text_effect:"fade",
		text_sync:true,
		tooltip_type:"image",
		lock_tooltip:true,
		shuffle:false,
		block_size:75,
		vert_size:55,
		horz_size:50,
		block_delay:25,
		vstripe_delay:75,
		hstripe_delay:180			
	});
}

function getGalleryReady(){
	$(".container").wtGallery({
		num_display:5,
		screen_width:720,
		screen_height:400,
		padding:10,
		thumb_width:125,
		thumb_height:70,
		thumb_margin:5,
		text_align:"top",
		caption_align:"bottom",
		auto_rotate:true,
		delay:5000,					
		rotate_once:false,
		auto_center:true,
		cont_imgnav:true,
		cont_thumbnav:true,
		display_imgnav:true,
		display_imgnum:true,
		display_timer:false,
		display_thumbnav:true,
		display_indexes:true,					
		display_thumbnum:false,
		display_tooltip:false,
		display_arrow:true,					
		mouseover_text:false,
		mouseover_info:false,
		mouseover_caption:true,
		mouseover_buttons:true,
		transition:"fade.left",
		transition_speed:800,
		scroll_speed:600,
		vert_size:45,
		horz_size:45,					
		vstripe_delay:100,
		hstripe_delay:100,
		move_one:false,
		shuffle:false
	});
}
