/* 
Methods for resizing the flash stage at runtime.

setFlashWidth(divid, newW)
divid: id of the div containing the flash movie.
newW: new width for flash movie

setFlashWidth(divid, newH)
divid: id of the div containing the flash movie.
newH: new height for flash movie

setFlashSize(divid, newW, newH)
divid: id of the div containing the flash movie.
newW: new width for flash movie
newH: new height for flash movie

canResizeFlash()
returns true if browser supports resizing flash, false if not. 
*/

function EmbedEvents()
	{ 
			//alert('We Are Here');
			//iidpp = document.pp.iidpp.value;
		// alert('ddate:'+ddate);
		//e = canResizeFlash();
		  document.write('<object data="http://tigerweekly.com/eventcalendar.swf" width="554" height="145" align="center" type="application/x-shockwave-flash" id="events">');
		  document.write('  <param name="movie" value="http://campusalive.com/eventcalendar.swf" />');
		  document.write('  <param name="FlashVars" value="ddate='+ddate+'&iidcat='+iidcat+'" />');
		    document.write('  <param name="wmode" value="transparent" />');
		  document.write('</object>');
		 // document.write('<object data="http://campusalive.com/singledate.swf" width="554" height="145" type="application/x-shockwave-flash" id="eventssingle">');
		 // document.write('  <param name="movie" value="http://campusalive.com/singledate.swf" />');
		 // document.write('  <param name="FlashVars" value="ddate='+ddate+'" />');
		  //document.write('  Flash Movie With Resizing Content');
		  //document.write('</object>');
	}

function EmbedSingle(date2,date3,date4)
	{ 
		 var singledate;
		  for(var x=2; x < 5; x++){
			 targ = 'kodi_'+(x-1);
			 switch(x) {
      			case 2: singledate = date2; break
      			case 3: singledate = date3; break
			  	case 4: singledate = date4; break
     			default:   
   			 }

			 $diver =  document.getElementById(targ);
			 //alert('<param name="FlashVars" value="ddate='+singledate+'" />');
			 $diver.innerHTML = '<object data="http://campusalive.com/singledate.swf" width="30" height="30" type="application/x-shockwave-flash" id="eventssingle'+x+'">';
				   $diver.innerHTML += '<param name="FlashVars" value="ddate='+singledate+'" />';
				  $diver.innerHTML += '<param name="movie" value="http://campusalive.com/singledate.swf" />';
				   $diver.innerHTML += '</object>';
		 }
	}



function EmbedNew(singledate,size)
	{ 
		 		//alert('YES! '+singledate);
				  document.write('<object data="http://campusalive.com/singledate.swf" width="'+size+'" height="'+size+'" type="application/x-shockwave-flash" id="eventssingle">');
				  document.write('<param name="movie" value="http://campusalive.com/singledate.swf" />');
				  document.write('<param name="FlashVars" value="ddate='+singledate+'" />');
				  document.write('</object>');
		
	}

