// Simple banner rotator
// (c) spyka Web Group 2008
// version info: 1.1.2
// Download & support: http://www.spyka.net
// Forums: http://www.spyka.net/forums
// Please keep this notice in place

function banner(name, url, image, image2, date)
{
	this.name	= name;
	this.url	= url;
	this.image	= image;
	this.image2	= image2;
	this.date	= date;
}

var header_banners = new Array();
var right_footer_banners = new Array();
var left_footer_banners = new Array();
var home_side_banners = new Array();
var side1_banners= new Array();
var side2_banners= new Array();
var side3_banners= new Array();
///////////////////////////////////////////////////////////////////////////////////
//
//         						START EDITS HERE
//
///////////////////////////////////////////////////////////////////////////////////

// Full documentation & support: http://www.spyka.net/forums 

// if 1, all images will be resized to img_width and img_height, else images will display their correct size
var force_size	= 1;
// desired height and width of images, only takes affect if above is = 1
var img_width	= 468;
var img_height	= 60;
var home_img_width = 120;
var home_img_height = 600;
var side1_img_width	= 300;
var side1_img_height = 250;
var side2_img_width	= 300;
var side2_img_height = 300;
// banner list syntax: banners[x] = new banner(website_name, website_url, website_image_url, show_until_date);  DATE FORMAT: dd/mm/yyyy
header_banners[0] = new banner('Simple Tuition', 'http://www.anrdoezrs.net/click-3403858-10455010&quot', 'http://www.tqlkg.com/image-3403858-10455010&quot', 'http://www.tqlkg.com/image-3403858-10455010&quot', '12/21/2021');

left_footer_banners[0] = new banner('Handango', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=148888.10000120&type=4&subid=0', 'http://assets.handango.com/marketing/affiliate/468x60G1.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=148888.10000120&type=4&subid=0','12/21/2021');

left_footer_banners[1] = new banner('Ecko1', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=146141.10000042&type=4&subid=0', 'http://www.shopecko.com/graphics/promo/Ecko/eckored_468x60.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=146141.10000042&type=4&subid=0','12/21/2021');

left_footer_banners[2] = new banner('Ecko2', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=146141.10000035&type=4&subid=0', 'http://www.shopecko.com/graphics/promo/Ecko/starwars_468x60.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=146141.10000035&type=4&subid=0','12/21/2021');

left_footer_banners[3] = new banner('Ecko3', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=146141.10000034&type=4&subid=0', 'http://www.shopecko.com/graphics/promo/Ecko/VHEcko468x60.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=146141.10000034&type=4&subid=0','12/21/2021');

left_footer_banners[4] = new banner('Karmaloop', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=143197.10000252&type=4&subid=0', 'http://www.karmaloop.com/linkshare/banners/1208/468X60-TASHA20.gif', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=143197.10000252&type=4&subid=0','12/21/2021');

left_footer_banners[5] = new banner('Karmaloop2', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=143197.10000264&type=4&subid=0', 'http://www.karmaloop.com/linkshare/banners/1208/468X60-SPEEDNOW.gif', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=143197.10000264&type=4&subid=0','12/21/2021');

right_footer_banners[0] = new banner('Cheapoair', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=148890.10000103&type=4&subid=0', 'http://www.cheapoair.com/travel/affiliate/banners/Spring-brk-flight-banners/images/468x60.gif', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=148890.10000103&type=4&subid=0','12/21/2021');

right_footer_banners[1] = new banner('HBO1', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=149631.10000009&type=4&subid=0', 'http://store.hbo.com/graphics/promo/hbo/hbo_deadwood_468x60.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=149631.10000009&type=4&subid=0','12/21/2021');

right_footer_banners[2] = new banner('HBO2', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=149631.10000123&type=4&subid=0', 'http://store.hbo.com/graphics/promo/hbo/hbo_adamsdvd_468x60.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=149631.10000123&type=4&subid=0','12/21/2021');

right_footer_banners[3] = new banner('HBO3', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=149631.10000018&type=4&subid=0', 'http://store.hbo.com/graphics/promo/hbo/hbo_sixfeet_468x60.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=149631.10000018&type=4&subid=0','12/21/2021');

right_footer_banners[4] = new banner('Cheap_tickets_foot', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=130340.10000329&subid=0&type=4', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=130340.10000329&subid=0&type=4&gridnum=1', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=130340.10000329&subid=0&type=4&gridnum=1','12/21/2021');

right_footer_banners[5] = new banner('Ecampus_foot', 'http://www.dpbolvw.net/click-3301544-10362495', 'http://www.awltovhc.com/image-3301544-10362495', 'http://www.awltovhc.com/image-3301544-10362495','12/21/2021');

right_footer_banners[6] = new banner('Cheapoair', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=148890.10000103&type=4&subid=0', 'http://www.cheapoair.com/travel/affiliate/banners/Spring-brk-flight-banners/images/468x60.gif', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=148890.10000103&type=4&subid=0','12/21/2021');

right_footer_banners[7] = new banner('Cheapoair', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=148890.10000103&type=4&subid=0', 'http://www.cheapoair.com/travel/affiliate/banners/Spring-brk-flight-banners/images/468x60.gif', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=148890.10000103&type=4&subid=0','12/21/2021');

home_side_banners[0] = new banner('StudentStuff', 'http://www.studentstuff.com', 'http://i303.photobucket.com/albums/nn157/studentstuff/StudentStuff_tallbanner.jpg', 'http://i303.photobucket.com/albums/nn157/studentstuff/StudentStuff_tallbanner.jpg','12/21/2021');

side3_banners[0] = new banner('Visa_side', 'http://www.kqzyfj.com/click-3403858-10552083', 'http://www.awltovhc.com/image-3403858-10552083', 'http://www.awltovhc.com/image-3403858-10552083','12/21/2021');

side1_banners[0] = new banner('Cheapo_side', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=148890.10000104&type=4&subid=0', 'http://www.cheapoair.com/travel/affiliate/banners/Spring-brk-flight-banners/images/300x250.gif', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=148890.10000104&type=4&subid=0','12/21/2021');

side1_banners[1] = new banner('Cheap_tickets_side', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=130340.10000282&subid=0&type=4', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=130340.10000282&subid=0&type=4&gridnum=13', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=130340.10000282&subid=0&type=4&gridnum=13','12/21/2021');

side1_banners[2] = new banner('Cheap_tickets2_side', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=130340.10000328&subid=0&type=4', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=130340.10000328&subid=0&type=4&gridnum=13', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=130340.10000328&subid=0&type=4&gridnum=13','12/21/2021');

side1_banners[3] = new banner('STA_travel_side', 'http://www.anrdoezrs.net/click-3301544-10472662', 'http://www.tqlkg.com/image-3301544-10472662', 'http://www.tqlkg.com/image-3301544-10472662','12/21/2021');

side2_banners[0] = new banner('Batman_side', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=146261.10003868&type=4&subid=0', 'http://images.apple.com/itunesaffiliates/US/2008/12/02/DarkKnight_300x300.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=146261.10003868&type=4&subid=0','12/21/2021');

side2_banners[1] = new banner('Itunes_side', 'http://click.linksynergy.com/fs-bin/click?id=tlgifN7w5QQ&offerid=146261.10003880&type=4&subid=0', 'http://images.apple.com/itunesaffiliates/US/2008/12/02/iTunes2008_300x300.jpg', 'http://ad.linksynergy.com/fs-bin/show?id=tlgifN7w5QQ&bids=146261.10003880&type=4&subid=0','12/21/2021');
///////////////////////////////////////////////////////////////////////////////////
//
//         						END EDITS HERE
//
///////////////////////////////////////////////////////////////////////////////////

function show_header_banners()
{
	var am		= header_banners.length;
	var rand	= Math.floor(Math.random()*am);	
	var bn 		= header_banners[rand];
	
	var image_size 	= (force_size == 1) ? ' width="' + img_width + '" height="' + img_height + '"' : '';
	var html 		= '<a href="' + bn.url + '" title="' + bn.name + '" target="_blank"><img border="0" src="' + bn.image + '"' + image_size + ' alt="' + bn.name+ '" /></a><IMG border="0" width="1" height="1" src="' + bn.image2 + '">';
	
	// get current date string
	var now = new Date(); 

    var input = bn.date;
    input = input.split('/', 3);
    var end_date = new Date();
    end_date = end_date.setFullYear(parseFloat(input[2]), parseFloat(input[1]), parseFloat(input[0]));
	
	(now < end_date) ? document.write(html) : show_header_banners();
}

function show_right_footer_banners()
{
	var am		= right_footer_banners.length;
	var rand	= Math.floor(Math.random()*am);	
	var bn 		= right_footer_banners[rand];
	
	var image_size 	= (force_size == 1) ? ' width="' + img_width + '" height="' + img_height + '"' : '';
	var html 		= '<a href="' + bn.url + '" title="' + bn.name + '" target="_blank"><img border="0" src="' + bn.image + '"' + image_size + ' alt="' + bn.name+ '" /></a><IMG border="0" width="1" height="1" src="' + bn.image2 + '">';
	
	// get current date string
	var now = new Date(); 

    var input = bn.date;
    input = input.split('/', 3);
    var end_date = new Date();
    end_date = end_date.setFullYear(parseFloat(input[2]), parseFloat(input[1]), parseFloat(input[0]));
	
	(now < end_date) ? document.write(html) : show_right_footer_banners();
}

function show_left_footer_banners()
{
	var am		= left_footer_banners.length;
	var rand	= Math.floor(Math.random()*am);	
	var bn 		= left_footer_banners[rand];
	
	var image_size 	= (force_size == 1) ? ' width="' + img_width + '" height="' + img_height + '"' : '';
	var html 		= '<a href="' + bn.url + '" title="' + bn.name + '" target="_blank"><img border="0" src="' + bn.image + '"' + image_size + ' alt="' + bn.name+ '" /></a><IMG border="0" width="1" height="1" src="' + bn.image2 + '">';
	
	// get current date string
	var now = new Date(); 

    var input = bn.date;
    input = input.split('/', 3);
    var end_date = new Date();
    end_date = end_date.setFullYear(parseFloat(input[2]), parseFloat(input[1]), parseFloat(input[0]));
	
	(now < end_date) ? document.write(html) : show_left_footer_banners();
}

function show_home_side_banners()
{
	var am		= home_side_banners.length;
	var rand	= Math.floor(Math.random()*am);	
	var bn 		= home_side_banners[rand];
	
	var image_size 	= (force_size == 1) ? ' width="' + home_img_width + '" height="' + home_img_height + '"' : '';
	var html 		= '<a href="' + bn.url + '" title="' + bn.name + '" target="_blank"><img border="0" src="' + bn.image + '"' + image_size + ' alt="' + bn.name+ '" /></a><IMG border="0" width="1" height="1" src="' + bn.image2 + '">';
	
	// get current date string
	var now = new Date(); 

    var input = bn.date;
    input = input.split('/', 3);
    var end_date = new Date();
    end_date = end_date.setFullYear(parseFloat(input[2]), parseFloat(input[1]), parseFloat(input[0]));
	
	(now < end_date) ? document.write(html) : show_home_side_banners();
}

function show_side1_banners()
{
	var am		= side1_banners.length;
	var rand	= Math.floor(Math.random()*am);	
	var bn 		= side1_banners[rand];
	
	var image_size 	= (force_size == 1) ? ' width="' + side1_img_width + '" height="' + side1_img_height + '"' : '';
	var html 		= '<a href="' + bn.url + '" title="' + bn.name + '" target="_blank"><img border="0" src="' + bn.image + '"' + image_size + ' alt="' + bn.name+ '" /></a><IMG border="0" width="1" height="1" src="' + bn.image2 + '">';
	
	// get current date string
	var now = new Date(); 

    var input = bn.date;
    input = input.split('/', 3);
    var end_date = new Date();
    end_date = end_date.setFullYear(parseFloat(input[2]), parseFloat(input[1]), parseFloat(input[0]));
	
	(now < end_date) ? document.write(html) : show_side1_banners();
}

function show_side2_banners()
{
	var am		= side2_banners.length;
	var rand	= Math.floor(Math.random()*am);	
	var bn 		= side2_banners[rand];
	
	var image_size 	= (force_size == 1) ? ' width="' + side2_img_width + '" height="' + side2_img_height + '"' : '';
	var html 		= '<a href="' + bn.url + '" title="' + bn.name + '" target="_blank"><img border="0" src="' + bn.image + '"' + image_size + ' alt="' + bn.name+ '" /></a><IMG border="0" width="1" height="1" src="' + bn.image2 + '">';
	
	// get current date string
	var now = new Date(); 

    var input = bn.date;
    input = input.split('/', 3);
    var end_date = new Date();
    end_date = end_date.setFullYear(parseFloat(input[2]), parseFloat(input[1]), parseFloat(input[0]));
	
	(now < end_date) ? document.write(html) : show_side2_banners();
}

function show_side3_banners()
{
	var am		= side3_banners.length;
	var rand	= Math.floor(Math.random()*am);	
	var bn 		= side3_banners[rand];
	
	var image_size 	= (force_size == 1) ? ' width="' + side1_img_width + '" height="' + side1_img_height + '"' : '';
	var html 		= '<a href="' + bn.url + '" title="' + bn.name + '" target="_blank"><img border="0" src="' + bn.image + '"' + image_size + ' alt="' + bn.name+ '" /></a><IMG border="0" width="1" height="1" src="' + bn.image2 + '">';
	
	// get current date string
	var now = new Date(); 

    var input = bn.date;
    input = input.split('/', 3);
    var end_date = new Date();
    end_date = end_date.setFullYear(parseFloat(input[2]), parseFloat(input[1]), parseFloat(input[0]));
	
	(now < end_date) ? document.write(html) : show_side3_banners();
}