// Use googletag.defineSlot() to create ad slots. 
// Specify size and ad_type for the companion ad you want. 
// Attach the slot to the companion ads service.
// Currently, "image" and "flash" are supported values for ad_type. Other values will be ignored.
// Currently, AdSense only supports companions with ad_type "image" and size 300x250
//To resolve size conflict between two or more slots, the order in which a slot is declared has to be the same as the order in which the slot is being displayed. 

adSlot728x90 = googletag.defineSlot('/%network%/%site%/%zone%', [728, 90]);
adSlot728x90.set("ad_type", "flash");
adSlot728x90.addService(googletag.companionAds());

adSlot299x59 = googletag.defineSlot('/%network%/%site%/%zone%', [299, 59]);
adSlot299x59.set("ad_type", "flash");
adSlot299x59.addService(googletag.companionAds());

adSlot300x250 = googletag.defineSlot('/%network%/%site%/%zone%', [300, 250]);
adSlot300x250.set("ad_type", "flash");
adSlot300x250.addService(googletag.companionAds());

// Enable companion ads service
googletag.enableServices();

function hide300x60()
{
	var sponsorAd = document.getElementById("sponsor");
	sponsorAd.style.height = "0px";
	sponsorAd.style.margin = "0px";
}
