//-------------------------------------------------------------------------

// Sponsor Images and Links

//

// This javascript is used to randomly display a sponsor logo on each

// Cinequest webpage.  Whenever a page is loaded a random logo is

// displayed.  The splink array contains the HTML text that is placed

// into the page by the javascript whenever a page is loaded.  There is

// one entry in the array for each sponsor.  A corresponding image file

// should also be present.  For those sponsors that have webpages we also

// link to their website.

//

// To add a sponsor:

//  1. Create an image file with the following design -

//      a. gif format, should be no larger than 51x32 (width x height) pixels

//      b. grayscale

//      c. no background, or grey background (#414040)

//  2. Store the logo in the wwwimgs/logos directory

//  3. Add a splink[number++] line that is similar to the other ones.

//     The value of the splink[number++] is the html code that will be

//     added to the webpage.  It will contain the image and if a website

//     is available a link to the website

//     Also notice the target='spon' attribute in the href.  We bring up the sponsor webpage

//     in a separate window, but all the sponsor pages come up in the same window.

//

//

//-------------------------------------------------------------------------



function splink() {

};



splink = new splink();

number = 0;





// splinkArray

//splink[number++] ="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"300\" height=\"125\" id=\"2010_SanDisk_300x125\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"imgs/banners/2010_SanDisk_300x125.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"imgs/banners/2010_SanDisk_300x125.swf\" quality=\"high\" bgcolor=\"#ffffff\" wmode=\"transparent\" width=\"300\" height=\"125\" name=\"imgs/banners/2010_SanDisk_300x125\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>"

//splink[number++] ="<a href=\"isch.php\"><img src=\"imgs/banners/CQ20_IntSchAdSm.gif\" alt=\"\" width=\"300\" height=\"125\" /></a>"

//splink[number++] ="<a href=\"event_view.php?eid=1576\"><img src=\"imgs/banners/cq21_pages_encore.gif\" alt=\"\" width=\"300\" height=\"125\" /></a>"

//splink[number++] ="<a href=\"notify_me.php\"><img src=\"imgs/banners/CQ22_PagesFestAd.gif\" alt=\"\" width=\"300\" height=\"125\" /></a>"

splink[number++] ="<a href=\"http://www.intel.com\" target=\"_blank\"><img src=\"imgs/banners/CQ22_IntelAd.gif\" alt=\"Intel\" width=\"300\" height=\"125\" /></a>"
splink[number++] ="<a href=\"http://www.intel.com\" target=\"_blank\"><img src=\"imgs/banners/CQ22_IntelAd.gif\" alt=\"Intel\" width=\"300\" height=\"125\" /></a>"

splink[number++] ="<a href=\"http://www.adobe.com\" target=\"_blank\"><img src=\"imgs/banners/CQ22_AdobeAd.gif\" alt=\"Adobe\" width=\"300\" height=\"125\" /></a>"

splink[number++] ="<a href=\"http://www.hp.com\" target=\"_blank\"><img src=\"imgs/banners/CQ22_HPAd.gif\" alt=\"HP\" width=\"300\" height=\"125\" /></a>"

splink[number++] ="<a href=\"http://www.metroactive.com\" target=\"_blank\"><img src=\"imgs/banners/CQ22_MetroAd.gif\" alt=\"Metro\" width=\"300\" height=\"125\" /></a>"

splink[number++] ="<a href=\"http://www.nokia.com\" target=\"_blank\"><img src=\"imgs/banners/CQ22_NokiaAd.gif\" alt=\"Nokia\" width=\"300\" height=\"125\" /></a>"

increment = Math.floor(Math.random() * number);



document.write(splink[increment]);


