﻿
 function getSid()
 {
 	$sid = $('li.on .slide').attr('id');
	$sid = $sid.substring(1,3);
	$sid = parseInt($sid);
	return $sid;
 }
 
 function getTid()
 {
 	$tid = $('.thumb.on').attr('id');
	$tid = $tid.substring(1,3);
	$tid = parseInt($tid);
	return $tid;
 }
 
 function getLocation()
 {
 	$current_location = $('.thumbs ul').css('margin-left');
	var string = $current_location;
	var a=string.split('p');
	var $clean_location = (a[0]);
	$clean_location = parseInt($clean_location);
	
	return $clean_location;
 }

function getContainerWidth()
{
	var containerWidth = $('.screen').css('width');
 	containerWidth = containerWidth.substring(0,containerWidth.length-2); // remove the 'px' at the end
 	return containerWidth;
}
