/* This script and many more are available free online at The JavaScript Source :: http://javascript.internet.com Updated by: Mike Weiner :: http://www.wearebent.com  Original author: Eric King (eric_andrew_king@hotmail.com) Last Updated: May 2006

Notes: Some parameters are not cross-browser capable (e.g. fullscreen).
Browsers that do not support these abilities will ignore them.

Usage: The link is written as follows: 
onclick="newWindow(this.href, 'popup', 600, 500, 1, 1, 0, 0, 0, 1, 0);

Usage Description:
"this.href" refers to the URL given in the "a" tag; "'popup'" is the name of the popup window;
600 is the width of the popup window; 500 is the height of the popup window; the numbers that
follow designate whether a property is turned on ("1") or off ("0"), in this order:
scrollbars, resizable, menubar, toolbar, addressbar, statusbar, fullscreen
*/
<!--Popup Window code -->
function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}
function printHeader(){
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr valign="top" height="220"><td><img src="images/web-head.jpg" alt="" width="535" height="235" border="0" align="left"><br><br><span class="date">July 27-29, 2009<br>San Diego, California</span><img src="images/Qualcomm-logo.jpg" alt="" width="200" height="55" hspace="30" vspace="30" border="0" align="left"></td></tr></table>');
}
function printFooter(){
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0" class="footer"><tr height="60"><td><img src="images/spacer.gif" alt="" width="70" height="70" border="0"></td></tr></table><span class="smalltext">&nbsp;&nbsp;&nbsp;© 2009 QUALCOMM Incorporated. All Rights Reserved.</span>');
}
function printIntro(){
document.write('<br>');
}
function print2009Academic(){
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="1"><tr><td bgcolor="#FFFF00"><h2 align="center">2009 Academic Affiliate</h2></td></tr></table><table width="100%" cellspacing="0" cellpadding="0" border="1"><tr><th bgcolor="#FFFFFF"><img src="images/ASUWPC_4CP.jpg" width="200" height="86" hspace="4" vspace="4"></th></tr></table><table width="100%" cellspacing="0" cellpadding="0" border="1"><tr><td bgcolor="#FFFF00"><h2 align="center">Affiliates</h2></td></tr></table><table width="100%" cellspacing="0" cellpadding="0" border="1"><tr><th bgcolor="#FFFFFF"><img src="images/Continua.jpg" width="90" height="63" hspace="4" vspace="4"> <img src="images/WirelessAlliance.jpg" width="200" height="166" hspace="4" vspace="4"> </th></tr></table>');
}
function print2009part(){
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="1"><tr><td bgcolor="#FFFF00"><h2 align="center">2009 Participants</h2></td></tr></table><table width="100%" cellspacing="0" cellpadding="0" border="1"><tr><th bgcolor="#FFFFFF"><img src="images/ABB.jpg" width="50" height="19" hspace="4" vspace="4"> <img src="images/amazon.jpg" width="100" height="35" hspace="4" vspace="4"> <img src="images/AndrewSeyboldlogo.jpg" width="140" height="33" hspace="4" vspace="4"> <img src="images/BestBuy.jpg" width="70" height="53" hspace="4" vspace="4"> <img src="images/Brainlike.jpg" width="89" height="50" hspace="4" vspace="4"> <img src="images/BusinessCouncil.jpg" width="125" height="36" hspace="4" vspace="4"> <img src="images/CardioNet.jpg" width="100" height="26" hspace="4" vspace="4"> <img src="images/Elster.jpg" width="100" height="63" hspace="4" vspace="4"> <img src="images/GSMA.jpg" width="50" height="42" hspace="4" vspace="4" /> <img src="images/HR-smaller.jpg" width="90" height="23" hspace="4" vspace="4"> <img src="images/inCode-logo.jpg" width="90" height="23" hspace="4" vspace="4"> <img src="images/MultiTech.jpg" width="100" height="28" hspace="4" vspace="4"> <img src="images/Omnilink.jpg" width="100" height="53" hspace="4" vspace="4"> <img src="images/onasset.jpg" width="140" height="35" hspace="4" vspace="4"> <img src="images/Qualcomm-sm.jpg" width="110" height="30" hspace="4" vspace="4" /> <img src="images/Sempra.jpg" width="80" height="47" hspace="4" vspace="4" /> <img src="images/Toyota.jpg" width="50" height="42" hspace="4" vspace="4" /> <img src="images/VerizonWireless.jpg" width="83" height="42" hspace="4" vspace="4" /> <img src="images/WestWirelessHealth.jpg" width="100" height="42" hspace="4" vspace="4" /> <img src="images/WinMec.jpg" width="100" height="31" hspace="4" vspace="4" /> <img src="images/zipcar.jpg" width="100" height="52" hspace="4" vspace="4" /></th></tr></table>');
}
function print2008part(){
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="1"><tr><td bgcolor="#FFFF00"><h2 align="center">Media Sponsors</h2></td></tr></table><table width="100%" cellspacing="0" cellpadding="0" border="1"><tr><th bgcolor="#FFFFFF"><a href="http://www.FierceWireless.com" target="_blank"><img src="images/fiercewireless.gif" border="0" width="180" height="42" hspace="4" vspace="4"></a> <a href="http://www.healthmgttech.com/" target="_blank"><img src="images/hmt.gif" border="0" width="180" height="46" hspace="4" vspace="4"></a> <a href="http://www.isminfo.com" target="_blank"><img src="images/IntegratedSolutions.jpg" border="0" width="109" height="52" hspace="4" vspace="4"></a> <a href="http://www.mobihealthnews.com" target="_blank"><img src="images/mobihealthnews.jpg" border="0" width="180" height="36" hspace="4" vspace="4"></a> <a href="SmartGridToday.htm" target="_blank"><img src="images/ST_Logo_150px.gif" border="0" width="150" height="52" hspace="4" vspace="4"></a> <a href="http://www.wirelessweek.com" target="_blank"><img src="images/wirelessweek.jpg" border="0" width="180" height="39" hspace="4" vspace="4"></a></th></tr></table>');
}
function printKeyNote(){
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="set3" nowrap><img src="images/PaulJacobs.jpg" alt="" width="112" height="112" border="0" align="right">Keynote:<br>Paul Jacobs<br>CEO,<br>Qualcomm</td></tr></table>');
}
function printQPrize(){
document.write('<div align="center"><table width="100%" cellspacing="0" cellpadding="0" border="0" class="press"><tr><th><br><a href="QPrize/qprize.htm" target="_blank"><img src="QPrize/Qventure.gif" width="125" height="125" border="0"></a><br><br></th></tr></table></div>');
}
function printLinkedIn(){
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0" class="press"><tr><th><br>Connect with us at:<br><a href="http://www.linkedin.com/osview/canvas?_ch_page_id=1&_ch_panel_id=1&_ch_app_id=7083120&_applicationId=2000&_ownerId=0&appParams=%7B%22go_to%22:%22events/68758%22,%22referrer%22:%22public%22%7D"><img src="images/LinkedIn.png" alt="LinkedIn" border="0" vspace="10" hspace-"10" width="119" height="32"></a></th></tr></table>');
}
function printPress(){
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0" class="press"><tr><td bgcolor="#ccffff"><img src="images/Press.gif" alt="" width="128" height="27" hspace="4" vspace="4" border="0"></td></tr><tr><td class="set4">For press inquiries, please contact Carol Bardia<br>Email: c_cbardi@qualcomm.com<br>Phone: 858-651-8825<br><br><b>2009 Summit</b> <a href="press.htm">Press Policy and Credential Form</a><br><br><b>Press Releases:</b><table cellspacing="2" cellpadding="2" border="0"><tr valign="top"><td>07/06/09</td><td><a href="http://www.qualcomm.com/news/releases/2009/090706_Visionary_Business_Leaders_Will_Take.html" target="_blank" title="Industry Leaders Converge to Explore the Future of the Internet of Things ">Visionary Business Leaders Will Take Center Stage at Qualcomm’s 5th Annual Smart Services Leadership Summit</a></td></tr><tr valign="top"><td>02/25/09</td><td><a href="http://www.qualcomm.com/news/releases/2009/090225_Qualcomm_Announces_the_Fifth.html" target="_blank" title="Industry Leaders Converge to Explore the Future of the Internet of Things ">Qualcomm Announces the Fifth Annual Smart Services Leadership Summit</a></td></tr></table></td></tr></table>');
}
function print2008pics(){
document.write('<br><div align="center"><a href="../ssls08/ssls_photos.htm" title="Pictures from the 2008 Smart Services Leadership Summit in San Diego California"><img src="images/Steve.jpg" alt="" width="210" height="160" border="0"></a><br><br></div>');
}
function printCheckBack(){
document.write('<div align="center"><table width="100%" cellspacing="0" cellpadding="0" border="0" class="press"><tr><th><br><a href="SSLS09-Program.pdf" target="_blank" title="Download a Brochure"><img src="images/download.gif" alt="" width="198" height="47" border="0"><a></a><br><br></th></tr></table></div>');
}

var toScroll=new Array()
var ie=document.all
var dom=document.getElementById
var firstNews_obj;
var secondNews_obj;

function newsScroll(name){
  var c=this; c.name=name; c.mc=0; c.i=2;
  return this;
}

newsScroll.prototype.addItem = function(text,link,font,fontSize,fontStyle){
  var c = this;
  if (link !=''){
    if (font != '')
      toScroll[c.mc]="<a href='"+link+"'><font face='"+font+"' size='"+fontSize+"' Class='"+fontStyle+"'>"+text+"</font></a>";
    else
      toScroll[c.mc]="<a href='"+link+"'><font Class='"+fontStyle+"'>"+text+"</font></a>";
  }
  else { 
    if (font != '')
      toScroll[c.mc]="<font face='"+font+"' size='"+fontSize+"' Class='"+fontStyle+"'>"+text+"</font>";
    else
      toScroll[c.mc]="<font Class='"+fontStyle+"'>"+text+"</font>";
  }
  c.mc++;
}

newsScroll.prototype.construct = function(){
  var c = this; theWidth = c.scrollerwidth; theHeight=c.scrollerheight; thebgColor = c.scrollerbgcolor; theBackground =c.scrollerbackground; theDelay=c.scrollerdelay;
  scroll_obj=eval(c.name);        
  if (ie||dom){
    document.writeln('<div id="main2" style="position:relative;width:'+theWidth+';height:'+theHeight+';overflow:hidden;background-color:'+thebgColor+' ;background-image:url('+theBackground+')">')
    document.writeln('<div style="position:absolute;width:'+theWidth+';height:'+theHeight+';clip:rect(0 '+theWidth+' '+theHeight+' 0);left:0;top:0">')
    document.writeln('<div id="firstNews" style="position:absolute;width:'+theWidth+';left:0;top:1">')
    document.write(toScroll[0])
    document.writeln('</div>')
    document.writeln('<div id="secondNews" style="position:absolute;width:'+theWidth+';left:0;top:0;visibility:hidden">')
    document.write(toScroll[dyndetermine=(toScroll.length==1)? 0 : 1])
    document.writeln('</div>')
    document.writeln('</div>')
    document.writeln('</div>')
  }
}

newsScroll.prototype.move = function(whichdiv){
  var c = this; theDelay = c.scrollerdelay; theHeight = c.scrollerheight; 
  scroll_obj=eval(c.name);
  tdiv=eval(whichdiv)

  if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
    tdiv.style.top=0+"px"
    setTimeout("scroll_obj.move(tdiv)",theDelay)
    setTimeout("scroll_obj.move2(secondNews_obj)",theDelay)
    //document.write('Got Milk?')
  return
  }
  if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
    tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
    setTimeout("scroll_obj.move(tdiv)",50)
  }
  else {
    tdiv.style.top=parseInt(theHeight)+"px"
    tdiv.innerHTML=toScroll[c.i]
    if (c.i==toScroll.length-1)
      c.i=0
    else
      c.i++
  }
}

newsScroll.prototype.move2 = function(whichdiv){
  var c = this; theDelay = c.scrollerdelay; theHeight= c.scrollerheight;
  scroll_obj=eval(c.name);
  tdiv2=eval(whichdiv)

  if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
    tdiv2.style.top=0+"px"
    setTimeout("scroll_obj.move2(tdiv2)",theDelay)
    setTimeout("scroll_obj.move(firstNews_obj)",theDelay)
    return
  }
  if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
    tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
    setTimeout("scroll_obj.move2(secondNews_obj)",50)
  }
  else {
    tdiv2.style.top=parseInt(theHeight)+"px"
    tdiv2.innerHTML=toScroll[c.i]
    if (c.i==toScroll.length-1)
      c.i=0
    else
      c.i++
  }
}

newsScroll.prototype.startScroll = function(){
  var c = this;
  scroll_obj=eval(c.name);        
  
  if (toScroll.length >2)
    c.i = 2;
  else
    c.i = 0;
  
  firstNews_obj=ie? firstNews : document.getElementById("firstNews")
  secondNews_obj=ie? secondNews : document.getElementById("secondNews")
  setTimeout("scroll_obj.move(firstNews_obj)",c.scrollerDelay);
  secondNews_obj.style.top=theHeight;
  secondNews_obj.style.visibility='visible'
}

